Are you sure it installed to the right version of python?

Macs already come with python 2.3(or 2.4) installed, in a way that makes it
difficult for python applications to make use of it.



-Thadeus




On Thu, Nov 19, 2009 at 6:17 PM, Alexander Cabezas <i...@mantecao.com.ve>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 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