ImportError: DBTab.ClassFactories.autoClassFactory
Hi, I installed Python 2.3.4 and Zope 2.7.2 on a Suse system. When trying to launch ./bin/runzope, I keep getting this error: Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be imported (line 865 in file:///var/local/lib/zope2.7/instances/mysite/etc/zope.conf) For help, use /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h Zope is installed from source and the Python installation come from: rpmbuild --rebuild python2.3-2.3.4-3pydotorg.src.rpm Here is the etc/zope.conf section that appear to cause the problem: <zodb_db main> # Main FileStorage database <filestorage> path $INSTANCE/var/Data.fs </filestorage> mount-point / </zodb_db> <zodb_db temporary> # Temporary storage database (for sessions) <temporarystorage> name temporary storage for sessioning </temporarystorage> mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer </zodb_db> When I follow what the error message asks me: python /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h I get this: Traceback (most recent call last): File "/usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py", line 17, in run from Zope.Startup import start_zope ImportError: No module named Zope.Startup I don't have a clue on what's going on. Can someone help me ? -- Olivier Laurent. P3B : Club Python(-Zope) Belge ---------- http://www.p3b.org OS3B : Club Open-Software(-Linux) Carolo http://www.os3b.org Aragne : Python-Zope Solutions & Formations http://www.aragne.com
Olivier Laurent wrote:
Hi,
I installed Python 2.3.4 and Zope 2.7.2 on a Suse system.
When trying to launch ./bin/runzope, I keep getting this error:
Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be imported (line 865 in file:///var/local/lib/zope2.7/instances/mysite/etc/zope.conf) For help, use /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h
The DBTab product was an early cut at mounting multiple ZODB storages within a single database. It has been supplanted by the support for mounting within the core. You will need to remove the product from your appserver and change your zope.conf to create the equivalent mounting configuration. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
On mer, 20 oct 2004, at 10:55, Tres Seaver wrote:
Olivier Laurent wrote:
Hi,
I installed Python 2.3.4 and Zope 2.7.2 on a Suse system.
When trying to launch ./bin/runzope, I keep getting this error:
Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be imported (line 865 in file:///var/local/lib/zope2.7/instances/mysite/etc/zope.conf) For help, use /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h
The DBTab product was an early cut at mounting multiple ZODB storages within a single database. It has been supplanted by the support for mounting within the core. You will need to remove the product from your appserver and change your zope.conf to create the equivalent mounting configuration.
I think the error is somewhere else. If I remove 'lib/python/DBTab' and remove that section in 'zopeschema.xml', I have this error: Error: The object named by "Products.TemporaryFolder.TemporaryContainer" could not be imported (line 874 in file:///var/local/lib/zope2.7/instances/mysite/etc/zope.conf) For help, use /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h I think the main problem come from this: %> python /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h Traceback (most recent call last): File "/usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py", line 17, in run from Zope.Startup import start_zope ImportError: No module named Zope.Startup -- Olivier Laurent. P3B : Club Python(-Zope) Belge ---------- http://www.p3b.org OS3B : Club Open-Software(-Linux) Carolo http://www.os3b.org Aragne : Python-Zope Solutions & Formations http://www.aragne.com
On mer, 20 oct 2004, at 18:05, Olivier Laurent wrote:
I think the main problem come from this:
%> python /usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py -h
Traceback (most recent call last): File "/usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/usr/local/lib/zope2.7/lib/python/Zope/Startup/run.py", line 17, in run from Zope.Startup import start_zope ImportError: No module named Zope.Startup
If I write: import Zope just after the docstring in 'lib/python/Zope/Startup/run.py' I get an 'ImportError: no module named Zope' -- Olivier Laurent. P3B : Club Python(-Zope) Belge ---------- http://www.p3b.org OS3B : Club Open-Software(-Linux) Carolo http://www.os3b.org Aragne : Python-Zope Solutions & Formations http://www.aragne.com
Olivier Laurent wrote at 2004-10-20 11:51 +0200:
I installed Python 2.3.4 and Zope 2.7.2 on a Suse system.
When trying to launch ./bin/runzope, I keep getting this error:
Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be imported (line 865 in file:///var/local/lib/zope2.7/instances/mysite/etc/zope.conf)
I have seen this problem once. When I remember right, it has been caused by a cyclic import and it went away when I removed the cyclic import. Unfortunately, my memory is no longer able to retrieve the details. -- Dieter
participants (3)
-
Dieter Maurer -
Olivier Laurent -
Tres Seaver