[Zope] MySQLdb outside zope

Ed Colmar ed@greengraphics.net
Tue, 25 Feb 2003 00:29:11 -0800 (PST)


Hi all...

I've got the MySQLdb and ZMySQLDA all up and running on my zope install,
but I can't seem to import the library form my regular python
interpreter...

I have not had any luck compiling it.  I did install the latest rpm, but
still no import in python...

Even when launching the python in /usr/local/zope/bin/   it won't
import...

Is there some trick that I'm missing here?

I'm trying to follow the devshed Mysql python tutorial...

Thanks for any pointers!

-ed-

Here are the errors if that helps:


--- system python install ---
Python 2.2.1 (#1, Sep  9 2002, 09:26:21)
[GCC 3.2 (Mandrake Linux 9.0 3.2-1mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> import _mysql
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named _mysql
>>> import MySQLdb
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named MySQLdb


--- zope python install ---

Python 2.1.3 (#1, Sep 19 2002, 13:15:46)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import _mysql
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named _mysql
>>> import MySQLdb
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named MySQLdb
>>>

-- 
Green Graphics   :::   Print and Web Design   :::   510.923.0000