I'm getting a strange error when copying my application from my dev
box to production. Both machines are running the latest trunk. The
MySQL server is on a separate machine than both. The app works on my
dev box but generates this error when copied to production:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/home/myhome/mydomain.com/applications/main/models/db.py",
line 19, in <module>
db = SQLDB(\'mysql://myuser:[email protected]:3306/mydb\')
File "gluon/sql.py", line 730, in __init__
self._pool_connection(lambda : MySQLdb.Connection(
File "gluon/sql.py", line 642, in _pool_connection
self._connection = f()
File "gluon/sql.py", line 730, in <lambda>
self._pool_connection(lambda : MySQLdb.Connection(
NameError: global name \'MySQLdb\' is not defined'
Any help is appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---