468,133 Members | 1,586 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

can't import MySQldb on OS X

I can't import MySQLdb on OS X 10.2.6

Downloaded the package from sourceforge, got it to build after some
messing about with setup.py, and now I have _mysql.so and all its
little friends in /usr/lib/python2.2/site-packages

But still I get:

import MySQLdb

Traceback (most recent call last):
File "<input>", line 1, in ?
ImportError: No module named MySQLdb

.... is there some python path variable I need to set? Or should python
look in site-packages by default?

Ah. After further investigation I realise I have two pythons
installed, 2.2 and MacPython 2.3a2. But neither of them can see the
MySQLdb module.
Jul 18 '05 #1
0 2434

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by rdack | last post: by
4 posts views Thread by Olivier Noblanc ATOUSOFT | last post: by
11 posts views Thread by grumfish | last post: by
reply views Thread by David Mitchell | last post: by
1 post views Thread by Steve | last post: by
1 post views Thread by Yi Xing | last post: by
reply views Thread by Michael Boldin via alt email | last post: by
8 posts views Thread by martinnorth | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.