Saturday, March 3, 2012

Re: The rdbms API is not available because the MySQLdb library could not be loaded.

I'm also on 10.7.3 with Python 2.7.1 and an install of MySQLdb into the standard system location. Using App Engine 1.6.3.

Adding "import MySQLdb" to the top of dev_appserver.py also fixed the problem for me. 

I still see errors like

WARNING  2012-03-03 17:29:47,709 py_zipimport.py:139] Can't open zipfile /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg: IOError: [Errno 13] file not accessible: '/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg'

but 1) that is where the file is and it's readable and 2) my app engine app does actually work. So not sure what that error is all about.

No comments:

Post a Comment