1.6 on Linux64: The rdbms API is not available because the MySQLdb library could not be loaded

110 views
Skip to first unread message

Robert Hancock

unread,
Nov 20, 2011, 3:33:34 PM11/20/11
to google-a...@googlegroups.com
I'm using version 1.6 on Ubuntu 64 with the Go version.

When I attempt to start  dev_appserver.py I receive the error below. 

 I have
/usr/share/pyshared/MySQLdb
/usr/lib/pymodules/python2.6/MySQLdb
/usr/lib/pymodules/python2.7/MySQLdb
in my path just to be sure.

What is causing this?

WARNING  2011-11-20 20:14:41,410 rdbms_mysqldb.py:90] The rdbms API is not available because the MySQLdb library could not be loaded.
INFO     2011-11-20 20:14:41,431 appengine_rpc.py:159] Server: appengine.google.com
INFO     2011-11-20 20:14:41,434 appcfg.py:520] Checking for updates to the SDK.
INFO     2011-11-20 20:14:41,619 appcfg.py:538] The SDK is up to date.
WARNING  2011-11-20 20:14:41,620 datastore_file_stub.py:512] Could not read datastore data from /tmp/dev_appserver.datastore
Traceback (most recent call last):
  File "/usr/local/google_appengine/dev_appserver.py", line 77, in <module>
    run_file(__file__, globals())
  File "/usr/local/google_appengine/dev_appserver.py", line 73, in run_file
    execfile(script_path, globals_)
  File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 682, in <module>
    sys.exit(main(sys.argv))
  File "/usr/local/google_appengine/google/appengine/tools/dev_appserver_main.py", line 646, in main
    default_partition=default_partition)
  File "/usr/local/google_appengine/google/appengine/tools/dev_appserver.py", line 3450, in CreateServer
    server = HTTPServerWithScheduler((serve_address, port), handler_class)
  File "/usr/local/google_appengine/google/appengine/tools/dev_appserver.py", line 3478, in __init__
    request_handler_class)
  File "/usr/local/lib/python2.7/SocketServer.py", line 408, in __init__
    self.server_bind()
  File "/usr/local/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/local/lib/python2.7/SocketServer.py", line 419, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/local/lib/python2.7/socket.py", line 222, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Anbarasan Gangadaran

unread,
Nov 20, 2011, 9:53:15 PM11/20/11
to google-a...@googlegroups.com
Bob,

Check if you are able to do `import MyQLdb` directly in python console without errors.

I too had the same problem,  but on windows.  When i got the error in dev_appserver.py, I went to check if MySQLdb is available in python.  I tried to do a `import MySQLdb` from python console & it threw errors.  (a DLL was not in the path)

Anbarasan

Robert Hancock

unread,
Nov 21, 2011, 10:55:23 AM11/21/11
to google-a...@googlegroups.com
It was an odd path problem that I resolved.  It was also a read herring since the rest of the tracback still occurs.  
Reply all
Reply to author
Forward
0 new messages