OperationalError: table "auth_user" already exists
AttributeError: 'Rows' object has no attribute 'fields'
db.define_table('contact',
Field('user_id', 'reference auth_user', default=auth.user_id),
Field('name'),
Field('address'),
Field('city'),
Field('province'),
Field('zip'),
Field('country'),
Field('status', default='new'),
Field('tax_id'),
Field('phone'),
Field('entity'),
Field('business_type'),
Field('bank_name'),
Field('bank_id'),
Field('bank_account_id'),
Field('bank_currency'),
auth.signature)
I'm a long time web2py user running into some problems I haven't seen before and cannot resolve.First, I am getting this error a lot even when I create a brand new project from scratch:OperationalError: table "auth_user" already existsAnother error I am getting consistently is:AttributeError: 'Rows' object has no attribute 'fields'
All I am doing is going to /appadmin and trying to view a simple table:
db.define_table('contact',
Field('user_id', 'reference auth_user', default=auth.user_id),
Field('name'),
Field('address'),
Field('city'),
Field('province'),
Field('zip'),
Field('country'),
Field('status', default='new'),
Field('tax_id'),
Field('phone'),
Field('entity'),
Field('business_type'),
Field('bank_name'),
Field('bank_id'),
Field('bank_account_id'),
Field('bank_currency'),
auth.signature)
Sqlite. These are fresh installs with just a table defined and no other edits.I've noticed that I can get it to work if I quickcreate the new app, call it up in a browser so the initial tables get created, add my own models and the call it up again.
Similar problem here i have downloaded the latest version.
enable username = true
add 1 user thru the webapp
then go appadmin click db.auth_user [to view my newly created user]
then the error occurs <type 'exceptions.AttributeError'> 'Rows' object has no attribute 'fields'
Also i view the database and confirmed that it already added 1 user also update the group, event, membership table
Hi Dave,
Thanks for the quick response..
Yes i am using Windows also downloaded from GIT repository
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/EILfDStMCEw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
OperationalError: table "auth_user" already exists
AttributeError: 'Rows' object has no attribute 'fields'
ERROR:Rocket.Errors.Port8000:Socket 127.0.0.1:8000 in use by other process
I reinstalled Mac OS Sierra which appears to have fixed the problems.
ValueError: Field student_record.request_tenant is already bound to a table The latest pydal as db._common_fields don't seem to get along. db._common_fields.append(auth.signature) |