Error ticket for "admin"

Ticket ID

45.79.206.182.2017-07-09.20-33-45.3ad3d1bf-a1b9-42f8-af81-00423fa67ad2

<type 'exceptions.AttributeError'> 'SQLFORM' object has no attribute 'error'

Version

web2py™ Version 2.15.0-beta+timestamp.2017.07.05.01.48.14
Python Python 2.7.13: /home/schemelab/install/miniconda/bin/python (prefix: /home/schemelab/install/miniconda)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Traceback (most recent call last):
File "/home/schemelab/domains/org/metaperl/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py", line 609, in <module>
File "/home/schemelab/domains/org/metaperl/web2py/gluon/globals.py", line 406, in <lambda>
self._caller = lambda f: f()
File "/home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py", line 148, in step2
T('invalid table names (auth_* tables already defined)')
AttributeError: 'SQLFORM' object has no attribute 'error'

Error snapshot help Detailed traceback description

<type 'exceptions.AttributeError'>('SQLFORM' object has no attribute 'error')

inspect attributes

Exception instance attributes

__getslice__ <method-wrapper '__getslice__' of exceptions.AttributeError object>
__str__ <method-wrapper '__str__' of exceptions.AttributeError object>
__getattribute__ <method-wrapper '__getattribute__' of exceptions.AttributeError object>
__dict__ {}
__sizeof__ <built-in method __sizeof__ of exceptions.AttributeError object>
message "'SQLFORM' object has no attribute 'error'"
__init__ <method-wrapper '__init__' of exceptions.AttributeError object>
__setattr__ <method-wrapper '__setattr__' of exceptions.AttributeError object>
__reduce_ex__ <built-in method __reduce_ex__ of exceptions.AttributeError object>
__new__ <built-in method __new__ of type object>
__format__ <built-in method __format__ of exceptions.AttributeError object>
__class__ <type 'exceptions.AttributeError'>
__doc__ 'Attribute not found.'
__getitem__ <method-wrapper '__getitem__' of exceptions.AttributeError object>
__setstate__ <built-in method __setstate__ of exceptions.AttributeError object>
__reduce__ <built-in method __reduce__ of exceptions.AttributeError object>
args ("'SQLFORM' object has no attribute 'error'",)
__subclasshook__ <built-in method __subclasshook__ of type object>
__unicode__ <built-in method __unicode__ of exceptions.AttributeError object>
__delattr__ <method-wrapper '__delattr__' of exceptions.AttributeError object>
__repr__ <method-wrapper '__repr__' of exceptions.AttributeError object>
__hash__ <method-wrapper '__hash__' of exceptions.AttributeError object>

Frames

  • File /home/schemelab/domains/org/metaperl/web2py/gluon/restricted.py in restricted at line 219 code arguments variables

    Function argument list

    (ccode=<code object <module> at 0x7fdce43bb330, file "/...pplications/admin/controllers/wizard.py", line 3>, environment={'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'gluon.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'A_button': <function A_button>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, 'CAT': <class 'gluon.html.CAT'>, ...}, layer='/home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py')

    Code listing
    214.
    215.
    216.
    217.
    218.
    219.

    220.
    221.
    222.
    223.
        if environment is None:
    environment = {}
    environment['__file__'] = layer
    environment['__name__'] = '__restricted__'
    try:
    exec(ccode, environment)

    except HTTP:
    raise
    except
    RestrictedError:
    # do not encapsulate (obfuscate) the original RestrictedError
    Variables
    environment {'A': <class 'gluon.html.A'>, 'ANY_OF': <class 'gluon.validators.ANY_OF'>, 'ASSIGNJS': <function ASSIGNJS>, 'A_button': <function A_button>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'BUTTON': <class 'gluon.html.BUTTON'>, 'CAT': <class 'gluon.html.CAT'>, ...}
    ccode <code object <module> at 0x7fdce43bb330, file "/...pplications/admin/controllers/wizard.py", line 3>
  • File /home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py in <module> at line 609 code arguments variables

    Function argument list

    ()

    Code listing
    598.
    599.
    600.
    601.
    602.
    603.
    604.
    605.
    606.
    607.
                try:
    file.write(
    make_view(page, session.app.get('page_' + page, '')))
    finally:
    file.close()

    if options.erase_database:
    path = os.path.join(request.folder, '..', app, 'databases', '*')
    for file in glob.glob(path):
    os.unlink(file)
    Variables
  • File /home/schemelab/domains/org/metaperl/web2py/gluon/globals.py in <lambda> at line 406 code arguments variables

    Function argument list

    (f=<function step2>)

    Code listing
    401.
    402.
    403.
    404.
    405.
    406.

    407.
    408.
    409.
    410.
            self.flash = ''            # used by the default view layout
    self.meta = Storage() # used by web2py_ajax.html
    self.menu = [] # used by the default view layout
    self.files = [] # used by web2py_ajax.html
    self._vars = None
    self._caller = lambda f: f()

    self._view_environment = None
    self
    ._custom_commit = None
    self
    ._custom_rollback = None
    self
    .generic_patterns = ['*']
    Variables
    self undefined
    f <function step2>
  • File /home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py in step2 at line 148 code arguments variables

    Function argument list

    ()

    Code listing
    143.
    144.
    145.
    146.
    147.
    148.

    149.
    150.
    151.
    152.
            table_names = [clean(t) for t in listify(form.vars.table_names)
    if t.strip()]
    if [t for t in table_names if t.startswith('auth_') and
    not
    t == 'auth_user']:
    form.error.table_names = \
    T('invalid table names (auth_* tables already defined)')

    else:
    session.app['tables'] = table_names
    for table in session.app['tables']:
    if not 'table_' + table in session.app:
    Variables
    global T <gluon.languages.translator object>

Context

locals request session response

locals

form:
<gluon.sqlhtml.SQLFORM object>
t:
'auth_user_role'
table_names:
['auth_user', 'auth_user_sponsor', 'product', 'purchase', 'payout', 'role', 'auth_user_role']

request

ajax:
False
application:
admin
args:
cid:
None
client:
45.79.206.182
controller:
wizard
cookies:
session_id_admin:
45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af
comment:
domain:
expires:
httponly:
max-age:
path:
secure:
version:
session_id_welcome:
45.79.206.182-aa19d5f7-d1f8-43f1-b37d-5c4a3f43fe8e
comment:
domain:
expires:
httponly:
max-age:
path:
secure:
version:
env:
CONTENT_LENGTH:
906
CONTENT_TYPE:
multipart/form-data; boundary=----WebKitFormBoundaryc5ZAyApKiwslUM8S
HTTP_ACCEPT:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_ACCEPT_ENCODING:
gzip, deflate
HTTP_ACCEPT_LANGUAGE:
en-US,en;q=0.8
HTTP_CACHE_CONTROL:
max-age=0
HTTP_CONNECTION:
keep-alive
HTTP_CONTENT_LENGTH:
906
HTTP_CONTENT_TYPE:
multipart/form-data; boundary=----WebKitFormBoundaryc5ZAyApKiwslUM8S
HTTP_COOKIE:
session_id_welcome=45.79.206.182-aa19d5f7-d1f8-43f1-b37d-5c4a3f43fe8e; session_id_admin=45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af
HTTP_HOST:
45.79.206.182:8000
HTTP_ORIGIN:
http://45.79.206.182:8000
HTTP_REFERER:
http://45.79.206.182:8000/admin/wizard/step2/
HTTP_UPGRADE_INSECURE_REQUESTS:
1
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36
PATH_INFO:
/admin/wizard/step2/
QUERY_STRING:
REMOTE_ADDR:
45.79.206.182
REMOTE_PORT:
48824
REQUEST_METHOD:
POST
SCRIPT_NAME:
SERVER_NAME:
metta
SERVER_PORT:
8000
SERVER_PROTOCOL:
HTTP/1.1
SERVER_SOFTWARE:
Rocket 1.2.6
app_folders:
set(['/home/schemelab/domains/org/metaperl/web2py/applications/welcome/', '/home/schemelab/domains/org/metaperl/web2py/applications/admin/'])
applications_parent:
/home/schemelab/domains/org/metaperl/web2py
cmd_args:
cmd_options:
<Values at 0x7fdcf73a43b0: {'verbose': False, 'ip': '127.0.0.1', 'debuglevel': 30, 'with_scheduler': False, 'shutdown_timeout': 5, 'taskbar': False, 'with_coverage': False, 'pid_filename': 'httpserver.pid', 'maxthreads': None, 'softcron': False, 'server_name': 'metta', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/home/schemelab/domains/org/metaperl/web2py', 'config': '', 'minthreads': None, 'shell': None, 'run': '', 'log_filename': 'httpserver.log', 'profiler_dir': None, 'args': [''], 'socket_timeout': 5, 'ssl_ca_certificate': None, 'scheduler': None, 'interfaces': None, 'ssl_private_key': '', 'gae': None, 'password': '******', 'request_queue_size': 5, 'ssl_certificate': '', 'cronjob': False, 'numthreads': None, 'quiet': False, 'import_models': False, 'timeout': 10, 'plain': False, 'nobanner': False}>
content_length:
906
content_type:
multipart/form-data; boundary=----WebKitFormBoundaryc5ZAyApKiwslUM8S
db_sessions:
set([])
debugging:
False
gluon_parent:
/home/schemelab/domains/org/metaperl/web2py
http_accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
http_accept_encoding:
gzip, deflate
http_accept_language:
en-US,en;q=0.8
http_cache_control:
max-age=0
http_connection:
keep-alive
http_content_length:
906
http_content_type:
multipart/form-data; boundary=----WebKitFormBoundaryc5ZAyApKiwslUM8S
http_cookie:
session_id_welcome=45.79.206.182-aa19d5f7-d1f8-43f1-b37d-5c4a3f43fe8e; session_id_admin=45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af
http_host:
45.79.206.182:8000
http_origin:
http://45.79.206.182:8000
http_referer:
http://45.79.206.182:8000/admin/wizard/step2/
http_upgrade_insecure_requests:
1
http_user_agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36
is_jython:
False
is_py2:
True
is_pypy:
False
is_source:
True
local_hosts:
::1
45.79.206.182
::ffff:127.0.0.1
127.0.0.1
metta
path_info:
/admin/wizard/step2/
query_string:
remote_addr:
45.79.206.182
remote_port:
48824
request_method:
POST
request_uri:
/admin/wizard/step2/
script_name:
server_name:
metta
server_port:
8000
server_protocol:
HTTP/1.1
server_software:
Rocket 1.2.6
web2py_path:
/home/schemelab/domains/org/metaperl/web2py
web2py_version:
2.15.0-beta+timestamp.2017.07.05.01.48.14
wsgi.errors:
<open file '<stderr>', mode 'w' at 0x7fdcff59e1e0>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x7fdcf73e64c8>
wsgi.input:
<socket._fileobject object at 0x7fdcc2610250>
wsgi.multiprocess:
False
wsgi.multithread:
True
wsgi.run_once:
False
wsgi.url_scheme:
http
wsgi.version:
1
0
wsgi_errors:
<open file '<stderr>', mode 'w' at 0x7fdcff59e1e0>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x7fdcf73e64c8>
wsgi_input:
<socket._fileobject object at 0x7fdcc2610250>
wsgi_multiprocess:
False
wsgi_multithread:
True
wsgi_run_once:
False
wsgi_url_scheme:
http
wsgi_version:
1
0
extension:
html
folder:
/home/schemelab/domains/org/metaperl/web2py/applications/admin/
function:
step2
global_settings:
app_folders:
set(['/home/schemelab/domains/org/metaperl/web2py/applications/welcome/', '/home/schemelab/domains/org/metaperl/web2py/applications/admin/'])
applications_parent:
/home/schemelab/domains/org/metaperl/web2py
cmd_args:
cmd_options:
<Values at 0x7fdcf73a43b0: {'verbose': False, 'ip': '127.0.0.1', 'debuglevel': 30, 'with_scheduler': False, 'shutdown_timeout': 5, 'taskbar': False, 'with_coverage': False, 'pid_filename': 'httpserver.pid', 'maxthreads': None, 'softcron': False, 'server_name': 'metta', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/home/schemelab/domains/org/metaperl/web2py', 'config': '', 'minthreads': None, 'shell': None, 'run': '', 'log_filename': 'httpserver.log', 'profiler_dir': None, 'args': [''], 'socket_timeout': 5, 'ssl_ca_certificate': None, 'scheduler': None, 'interfaces': None, 'ssl_private_key': '', 'gae': None, 'password': '******', 'request_queue_size': 5, 'ssl_certificate': '', 'cronjob': False, 'numthreads': None, 'quiet': False, 'import_models': False, 'timeout': 10, 'plain': False, 'nobanner': False}>
db_sessions:
set([])
debugging:
False
gluon_parent:
/home/schemelab/domains/org/metaperl/web2py
is_jython:
False
is_py2:
True
is_pypy:
False
is_source:
True
local_hosts:
::1
45.79.206.182
::ffff:127.0.0.1
127.0.0.1
metta
web2py_version:
2.15.0-beta+timestamp.2017.07.05.01.48.14
is_https:
False
is_local:
True
is_restful:
False
is_scheduler:
False
is_shell:
False
now:
datetime.datetime(2017, 7, 9, 20, 33, 45, 989703)
raw_args:
raw_extension:
None
url:
/admin/wizard/step2/
utcnow:
datetime.datetime(2017, 7, 10, 0, 33, 45, 989724)
wsgi:
<gluon.main.LazyWSGI object at 0x7fdce456fd90>

session

app:
name:
mlmhotrod
page_error:
# Error: the document does not exist
page_index:
# Welcome to my new app
pages:
index
error
params:
title
MLMHOTROD
subtitle
Streak to the finish line
author
you
author_email
you@example.com
keywords
description
layout_theme
Default
database_uri
mysql://root:m0ney123@localhost/mlmhotrod
security_key
b1e6bd25-c2c9-4ff6-a7e9-6620dcd81a3c
email_server
localhost
email_sender
schemelab@gmail.com
email_login
login_method
local
login_config
plugins
table_auth_user:
username
first_name
last_name
email
password
tables:
auth_user
authorized:
True
check_version:
False
hmac_key:
9b8413df-9e50-4a9c-8c8b-315588112189
is_mobile:
auto
last_time:
1499646825.991579
pam_user:
None
plugins:
themes:
Default
token:
4a24e5c8-031a-4b2a-9f64-3d3db50f9c8b

response

body:
<cStringIO.StringO object at 0x7fdcf40c86c0>
cookies:
session_id_admin:
45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af
comment:
domain:
expires:
httponly:
max-age:
path:
/
secure:
version:
delimiters:
{{
}}
files:
/admin/static/_2.15.0/plugin_multiselect/jquery.multi-select.js
/admin/static/_2.15.0/plugin_multiselect/multi-select.css
/admin/static/_2.15.0/plugin_multiselect/start.js
/admin/static/_2.15.0/plugin_statebutton/js/bootstrap-switch.js
/admin/static/_2.15.0/plugin_statebutton/css/bootstrap-switch.css
flash:
form_label_separator:
:
formstyle:
table3cols
generic_patterns:
*
headers:
X-Powered-By:
web2py
menu:
Site
False
/admin/default/site
Help
False
/examples/default/documentation
Logout
False
/admin/default/logout
Debug
False
/admin/debug/interact
meta:
models_to_run:
^\w+\.py$
^wizard/\w+\.py$
^wizard/step2/\w+\.py$
postprocessing:
session_client:
45.79.206.182
session_cookie_compression_level:
None
session_cookie_expires:
None
session_data_name:
session_data_admin
session_file:
<open file '/home/schemelab/domains/org/metaperl/web2py/applications/admin/sessions/026/033/45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af', mode 'rb+' at 0x7fdcc263fdb0>
session_filename:
/home/schemelab/domains/org/metaperl/web2py/applications/admin/sessions/45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af
session_hash:
acfe83b2cf62a5c54183f0312e296324
session_id:
45.79.206.182-6d1dce54-dfed-4437-a859-1b62a7a4e6af
session_id_name:
session_id_admin
session_locked:
True
session_masterapp:
admin
session_new:
False
session_storage_type:
file
static_version:
2.15.0
static_version_urls:
True
status:
200
subtitle:
admin
title:
step2
view:
wizard/step.html

In file: /home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py

1.
<code object <module> at 0x7fdce43bb330, file "/home/schemelab/domains/org/metaperl/web2py/applications/admin/controllers/wizard.py", line 3>