You do not have the mysqldb module in the production machine.
You need to install it separately.

Massimo

On Aug 23, 10:15 am, "mr.freeze" <nat...@freezable.com> wrote:
> 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:myp...@mysql.mydomain.com: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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to