Python Web2py:运行时出现内部错误
我得到这个错误 已发出内部错误通知单:不可恢复 尝试从运行web2py时 我正在使用Ubuntu12.04,并且已经有了Web2Py1.99.4。但我想检查一下新版本。正如repo的自述文件中所述,我应该只运行pythonweb2py.py 但是,当我启动服务器时,我发现了内部错误 下面是我从shell中得到的信息:Python Web2py:运行时出现内部错误,python,web2py,Python,Web2py,我得到这个错误 已发出内部错误通知单:不可恢复 尝试从运行web2py时 我正在使用Ubuntu12.04,并且已经有了Web2Py1.99.4。但我想检查一下新版本。正如repo的自述文件中所述,我应该只运行pythonweb2py.py 但是,当我启动服务器时,我发现了内部错误 下面是我从shell中得到的信息: gofrendi@arcaneSanctum:~/Documents/web2py-web2py-e1bb2b4$ python web2py.py -M web2py Web F
gofrendi@arcaneSanctum:~/Documents/web2py-web2py-e1bb2b4$ python web2py.py -M
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2012
Version 2.0.9 (2012-10-07 01:10:05) dev
Database drivers available: SQLite(sqlite2), SQLite(sqlite3), MySQL(pymysql), MySQL(MySQLdb), PostgreSQL(psycopg2), PostgreSQL(pg8000), CouchDB(couchdb), IMAP(imaplib)
please visit:
http://127.0.0.1:8000
starting browser...
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
Created new window in existing browser session.
ERROR:web2py:Traceback (most recent call last):
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/main.py", line 614, in wsgibase
BaseAdapter.close_all_instances('rollback')
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/dal.py", line 525, in close_all_instances
for db_uid, db_group in dbs:
NameError: global name 'dbs' is not defined
ERROR:web2py:Traceback (most recent call last):
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/main.py", line 614, in wsgibase
BaseAdapter.close_all_instances('rollback')
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/dal.py", line 525, in close_all_instances
for db_uid, db_group in dbs:
NameError: global name 'dbs' is not defined
ERROR:web2py:Traceback (most recent call last):
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/main.py", line 614, in wsgibase
BaseAdapter.close_all_instances('rollback')
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/dal.py", line 525, in close_all_instances
for db_uid, db_group in dbs:
NameError: global name 'dbs' is not defined
ERROR:web2py:Traceback (most recent call last):
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/main.py", line 614, in wsgibase
BaseAdapter.close_all_instances('rollback')
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/dal.py", line 525, in close_all_instances
for db_uid, db_group in dbs:
NameError: global name 'dbs' is not defined
ERROR:web2py:Traceback (most recent call last):
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/main.py", line 614, in wsgibase
BaseAdapter.close_all_instances('rollback')
File "/home/gofrendi/Documents/web2py-web2py-e1bb2b4/gluon/dal.py", line 525, in close_all_instances
for db_uid, db_group in dbs:
NameError: global name 'dbs' is not defined
那么,这里出了什么问题?提交刚刚中断。如果查看代码,dbs变量永远不会被定义,因此close_all_instances函数总是会失败。有一个关于它的错误报告:
你可以在自己上面应用补丁,或者使用我的分支,我已经应用了补丁并发送了一个请求,或者你可以在代码被破坏之前使用提交,或者只是等待它在master中得到修复,我认为这很快就会发生。提交刚刚被破坏。如果查看代码,dbs变量永远不会被定义,因此close_all_instances函数总是会失败。有一个关于它的错误报告: 你可以在自己上面应用补丁,或者使用我的分支,我已经应用了补丁并发送了一个拉请求,或者你可以在代码被破坏之前使用提交,或者只是等待它在master中得到修复,我认为这很快就会发生