Hello, I am trying to install web2py with apache & mysql. I checked all the scenarios with the "global name 'MySQLdb' is not defined" subject, but they didn't solve my problem.
I am using: CentOS 5.5 httpd-2.2.3 mysql 5.0.77 Python26 MySQL-python-1.2.3c1 web2py Version 1.81.5 Default CentOS 5 python version is 2.4, I installed 2.6. I can both "import MySQLdb" from python24 & python26 from console. When I run web2py from source like "python ./web2py.py" or with "python26 ./web2py.py" I can see "Database drivers available: MySQL" I think there is a configuration problem with the python libraries I installed. Do you have any idea? Here is the trace: --------------- Traceback (most recent call last): File "gluon/restricted.py", line 178, in restricted exec ccode in environment File "/var/www/web2py/applications/welcome/models/db.py", line 1, in <module> db=SQLDB('mysql://xxx:y...@zzz:3306/aaa') File "gluon/sql.py", line 921, in __init__ self._pool_connection(lambda : MySQLdb.Connection( File "gluon/sql.py", line 828, in _pool_connection self._connection = f() File "gluon/sql.py", line 921, in <lambda> self._pool_connection(lambda : MySQLdb.Connection( NameError: global name 'MySQLdb' is not defined ----------------