Make sure you using the source version of web2py and the same python you used to install mysqldb.
On Nov 19, 6:17 pm, Alexander Cabezas <[email protected]> wrote: > I have installed the mysql-python on a Leopard 10.5 and when i have > tryed to run my application, after mody the db.py > > db = DAL('mysql://r...@localhost/database') > > web2py generated a ticket with the following error: > > Traceback (most recent call last): > File "gluon/restricted.py", line 184, in restricted > File "/Users/acabezas/Sites/web2py/web2py.app/Contents/Resources/ > applications/core/models/db.py", line 15, in <module> > File "gluon/sql.py", line 3580, in DAL > File "gluon/sql.py", line 870, in __init__ > File "gluon/sql.py", line 781, in _pool_connection > File "gluon/sql.py", line 870, in <lambda> > NameError: global name 'MySQLdb' is not defined > > thank you very much for helping me --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

