Re: [Zope] Zope import error
From: "Subramanian S" <subu_s@hotmail.com>
Am still getting the same error.
If you made the change to the zope2test.py file and you are still getting the error:
"/var/opt/zope/default/Products/Ape/lib/apelib/tests/zope2testbase.py",
line
728, in test_btreefolder2 from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2 ImportError: No module named BTreeFolder2.BTreeFolder2
Then your change did not take effect. You need to do two things to get the changes recognized by zope: 1) delete zope2testbase.pyc if it exists 2) restart zope This should cause a new version of zope2testbase.pyc to be created (and used by zope). Jonathan
From: "Jonathan Hobbs" <toolkit@magma.ca> To: "Subramanian S" <subu_s@hotmail.com>, <zope@zope.org> Subject: Re: [Zope] Zope import error Date: Thu, 8 Jul 2004 13:18:45 -0400
From: "Subramanian S" <subu_s@hotmail.com>
I am trying to run the zope tests for APE, present in apelib/tests/ . I get the following error:- ERROR: test_btreefolder2 (__main__.PsycopgTests)
----------------------------------------------------------------------
Traceback (most recent call last): File
"/var/opt/zope/default/Products/Ape/lib/apelib/tests/zope2testbase.py", line
728, in test_btreefolder2 from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2 ImportError: No module named BTreeFolder2.BTreeFolder2
I had a quick look at the BTreeFolder2.py file and it looks like the line:
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2
in the routine zope2testbase.py has a bug in it, can you modify it to read:
from Products.BTreeFolder2 import BTreeFolder2
and try it? (Warning: I know nothing about APE or zope2testbase.py so I am just guessing!)
HTH
Jonathan
_________________________________________________________________ Earn without investing. http://go.msnserver.com/IN/52048.asp Sell anything under the sun.
participants (1)
-
Jonathan Hobbs