can't import MySQldb on OS X

A

Alan Little

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:

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top