Wednesday, October 10, 2012

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

Tom, did you ever figure out what was causing the pesky:
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'

I'm getting the same thing, and while things appear to be working otherwise, it's unsettling...

On Saturday, March 3, 2012 9:34:21 AM UTC-8, Tom Pinckney wrote:
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.

On Tuesday, December 6, 2011 4:14:20 PM UTC-5, Philip wrote:
When I added MySQLdb to the PYTHONPATH and adding "import MySQLdb" to
dev_appserver.py rdbms was found and worked.

Note: I'm using a Mac and the PYTHONPATH I added in Eclipse to the
project External Libraries was:

/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-
intel.egg

On Dec 1, 12:38 pm, Timofey Koolin <timo...@koolin.ru> wrote:
> Try downloadhttp://sourceforge.net/projects/mysql-python/and install
> it/add to PYTHONPATH
>
> 2011/12/1 Philip <phili...@gmail.com>:
>
>
>
>
>
>
>
>
>
> > I have installed MySQL and the necessary support libraries / files
> > locally. It is accessible from MySQLWorkbench, Squirrel, and the
> > Python 2.7 command line (i.e. import MySQLdb succeeds without any
> > errors). I added the following line to my ./bash_profile file too:
>
> > export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/"
>
> > When I try to start dev_appserver in Eclipse or from a command line
> > using:
>
> > dev_appserver.py --debug --mysql_user=root myapp
>
> > I get the following warning and error:
>
> > WARNING  2011-11-30 21:07:54,891 rdbms_mysqldb.py:90] The rdbms API is
> > not available because the MySQLdb library could not be loaded.
>
> > ERROR    2011-11-30 21:08:19,042 dev_appserver_main.py:632] <type
> > 'exceptions.NotImplementedError'>: Unable to find the MySQLdb library.
> > Please see the SDK documentation for installation instructions.
>
> > DEBUG    2011-11-30 21:08:19,046 dev_appserver_main.py:634] Traceback
> > (most recent call last):
> >  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> > google/appengine/tools/dev_appserver_main.py", line 629, in main
> >    dev_appserver.SetupStubs(appinfo.application, **option_dict)
> >  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> > google/appengine/tools/dev_appserver.py", line 3183, in SetupStubs
> >    rdbms_mysqldb.connect(database='')
> >  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> > google/appengine/api/rdbms_mysqldb.py", line 96, in connect
> >    'Unable to find the MySQLdb library. Please see the SDK '
>
> > I have tried the hack of adding "import MySQLdb" to the
> > dev_appserver.py file, but that didn't help.
>
> > Any ideas?
>
> --
> Blog:www.rekby.ru

No comments:

Post a Comment