[Zope] ImportError: No module named cPersistence

Casey Duncan casey at zope.com
Thu Jan 29 18:28:36 EST 2004


On Thu, 29 Jan 2004 17:54:47 -0500 (EST)
"Michael Long" <mlong at datalong.com> wrote:

> > On Thu, 29 Jan 2004 11:03:39 -0500 (EST)
> >> Something went horribly wrong when installing MySQL-python-0.9.3b1.
> >> Many of the*.so files were deleted. I replaced them from source and
> >> now get the following error.
> >
> > Please explain how you can replace .so files from source, these are
> > compiled object files!
> 
> The reality is that I don't understand how zope/python works at this
> level, although I am trying to learn. The fact that I can build zope
> from a tarball is a small miracle :-)
> 
> I found the .so files at
> /Zope-2.7.0-rc1/build-base/python-2.3/build-lib/
> 
> >
> > Sounds like you need to recompile your C extensions. This is easily
> > done from your SOFTWARE_HOME directory:
> >
> > % python setup.py build_ext -if
> 
> This worked perfectly, I actually ran it from the ZOPE_HOME.
> 
[..]
> ImportError: No module named _mysql

Looks like you need to install mysql-python, which ZMySQLDA depends on.
This gets installed into your python site-packages by default. Download
it and do:

python setup.py install

hth,

-Casey 



More information about the Zope mailing list