467,907 Members | 1,624 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

MySQLdb ImportError

Hello!

When I try to import the MySQLdb lib python generates an error:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import MySQLdb
File "C:\Python25\lib\site-packages\MySQLdb\__init__.py", line 19,
in <module>
import _mysql
ImportError: DLL load failed with error code 193

This is on a AMD64 bit machine, when I import it on a 32 bit machine
it works fine.
Is there anyway to fix this? Is there a build for AMD64 bit machines
or is there simply no way
that I can get MySQLdb working on it?

Thanks in advance,
Sjoerd

Aug 31 '07 #1
  • viewed: 2354
Share:
1 Reply
Sjoerd wrote:
Hello!

When I try to import the MySQLdb lib python generates an error:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import MySQLdb
File "C:\Python25\lib\site-packages\MySQLdb\__init__.py", line 19,
in <module>
import _mysql
ImportError: DLL load failed with error code 193

This is on a AMD64 bit machine, when I import it on a 32 bit machine
it works fine.
Is there anyway to fix this? Is there a build for AMD64 bit machines
or is there simply no way
that I can get MySQLdb working on it?

Thanks in advance,
Sjoerd
I'm not aware of a current build for that architecture (and your
assumption that the load fails because of the architecture mismatch is
correct).

It is possible to build the module yourself if it's important enough. I
remember doing this some time ago with the Microsoft free compiler kit,
for example.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Alan Little | last post: by
4 posts views Thread by Perflubron | last post: by
reply views Thread by praba kar | last post: by
11 posts views Thread by Fred | last post: by
reply views Thread by Michael Boldin via alt email | last post: by
1 post views Thread by Gerard M | last post: by
1 post views Thread by Aljosa Mohorovic | last post: by
8 posts views Thread by martinnorth | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.