I am a noob to web2py. I am working on a previously installed system
at a client site (not installed by me).
I upgraded the system from Ubuntu server 9.10 (karmic) to 10.04
(lucid). After reboot, I'm getting the following traceback from the
web2py server:
Error traceback
1.Traceback (most recent call last):
2. File "/web2py/web2py/gluon/restricted.py", line 173, in restricted
3. exec ccode in environment
4. File "/web2py/web2py/applications/MyAppName/models/db.py", line 9,
in <module>
5. db = DAL('mysql://user:password@localhost/DBname')
6. File "/web2py/web2py/gluon/sql.py", line 3783, in DAL
7. db_codec=db_codec, check_reserved=check_reserved)
8. File "/web2py/web2py/gluon/sql.py", line 919, in __init__
9. self._pool_connection(lambda : MySQLdb.Connection(
10. File "/web2py/web2py/gluon/sql.py", line 829, in _pool_connection
11. self._connection = f()
12. File "/web2py/web2py/gluon/sql.py", line 919, in <lambda>
13. self._pool_connection(lambda : MySQLdb.Connection(
14.NameError: global name 'MySQLdb' is not defined
15.
The mysql daemon is running. The username, password, and DBname are
correct. Any ideas on where to look?