[Zope] ImportError: No module named cPersistence

Michael Long mlong at datalong.com
Thu Jan 29 11:03:39 EST 2004


> Ah. uhm.. sorry. This traceback can only occur when cPersistence.so

No problem ;)

> wasnt compiled yet, has been deleted, is for the wrong python version
> or is otherwise unavailable.
> It is usually generated thru installation/compilation.
>
> I'd check paths for INSTANCE_HOME, SOFTWARE_HOME etc;
> which python version is used (and if its different to
> the version you installed with)

INSTANCE_HOME and SOFTWARE_HOME are set correctly.

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.

edev:/opt/zopeInstance/bin # ./runzope
Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be
imported
(line 821 in file:///opt/zopeInstance/etc/zope.conf)
For help, use /opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py -h

This is the relevant piece of zope.conf:

    814
    815 <zodb_db main>
    816     # Main FileStorage database
    817     <filestorage>
    818       path $INSTANCE/var/Data.fs
    819     </filestorage>
    820     mount-point /
    821 </zodb_db>
    822
    823 <zodb_db temporary>
    824     # Temporary storage database (for sessions)
    825     <temporarystorage>
    826       name temporary storage for sessioning
    827     </temporarystorage>
    828     mount-point /temp_folder
    829     container-class Products.TemporaryFolder.TemporaryContainer
    830 </zodb_db>
    831

and when I run "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py -h" I get the
following:

Traceback (most recent call last):
  File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 49, in ?
    run()
  File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 17, in run
    from Zope.Startup import start_zope
ImportError: No module named Zope.Startup

When I do a listing on /opt/Zope-2.7.0-rc1/lib/python/Zope/Startup I get:

drwxr-xr-x    5 zadmin   root         4096 2004-01-29 10:40 .
drwxr-xr-x    4 zadmin   root           40 2004-01-28 23:40 ..
-rw-r--r--    1 zadmin   root        12578 2004-01-08 18:34 __init__.py
-rw-r--r--    1 zadmin   root        12625 2004-01-28 23:40 __init__.pyc
-rw-r--r--    1 zadmin   root         5738 2003-03-18 16:37 cmdline.py
-rw-r--r--    1 zadmin   root         7922 2003-12-20 12:47 datatypes.py
-rw-r--r--    1 zadmin   root         9515 2004-01-28 23:40 datatypes.pyc
-rw-r--r--    1 zadmin   root         4895 2004-01-08 18:34 handlers.py
-rw-r--r--    1 zadmin   root         8787 2004-01-28 23:40 handlers.pyc
drwxr-xr-x    2 zadmin   root           32 2004-01-19 16:12 misc
drwxr-xr-x    2 zadmin   root           16 2004-01-19 16:12 nt
-rw-r--r--    1 zadmin   root          858 2003-03-18 16:37 options.py
-rw-r--r--    1 zadmin   root          686 2004-01-28 23:40 options.pyc
-rw-r--r--    1 zadmin   root         1902 2003-12-21 19:24 run.py
-rw-r--r--    1 zadmin   root         2069 2004-01-28 23:40 run.pyc
drwxr-xr-x    2 zadmin   root           32 2004-01-19 16:12 tests
-rw-r--r--    1 zadmin   root         2015 2003-12-21 21:33 warnfilter.py
-rw-r--r--    1 zadmin   root         2031 2004-01-29 10:40 warnfilter.pyc
-rw-r--r--    1 zadmin   root          422 2003-12-21 21:33 warnfilter.xml
-rw-r--r--    1 zadmin   root         7649 2003-12-21 19:24 zopectl.py
-rw-r--r--    1 zadmin   root        27415 2004-01-08 18:34 zopeschema.xml

What should I look for next?



More information about the Zope mailing list