[Zope] repozo.py problems
Jim Dibb
jimdibb at gmail.com
Wed Nov 7 11:06:56 EST 2007
I'm going to dig up something that's really troubling me today, and a
"Martin Koekenberg" in the past.
Martin first posted the following about repozo.py.
Traceback (most recent call last):
File "C:\Program Files\Plone 3\Zope\bin\repozo.py", line 76, in <module>
from ZODB.FileStorage import FileStorage
ImportError: No module named ZODB.FileStorage
Which, it was noted was a problem with PYTHONPATH not being set. One
question I have is why plone3 installlation does not set this variable
on installation?
So I set it and now have the following problem (note I slightly
modified repozo.py to print our sys.path before importing.)
C:\Program Files\Plone 3\Zope\bin>repozo.py
['C:\\Program Files\\Plone 3\\Zope\\bin', 'c:\\Program Files\\Plone 3\\Zope\\lib
\\python', 'C:\\WINNT\\system32\\python25.zip', 'c:\\Python25\\DLLs', 'c:\\Pytho
n25\\lib', 'c:\\Python25\\lib\\plat-win', 'c:\\Python25\\lib\\lib-tk', 'C:\\Pyth
on25', 'c:\\Python25\\lib\\site-packages', 'c:\\Python25\\lib\\site-packages\\wi
n32', 'c:\\Python25\\lib\\site-packages\\win32\\lib', 'c:\\Python25\\lib\\site-p
ackages\\Pythonwin']
Traceback (most recent call last):
File "C:\Program Files\Plone 3\Zope\bin\repozo.py", line 75, in <module>
from ZODB.FileStorage import FileStorage
File "c:\Program Files\Plone 3\Zope\lib\python\ZODB\__init__.py", line 20, in
<module>
from persistent import TimeStamp
File "c:\Program Files\Plone 3\Zope\lib\python\persistent\__init__.py", line 1
9, in <module>
from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: DLL load failed: The specified module could not be found.
>From the following, it's pretty clear that the cPersistence.pyd file is present.
C:\Program Files\Plone 3\Zope\lib\python\persistent>dir
Volume in drive C has no label.
Volume Serial Number is F07F-A1B8
Directory of C:\Program Files\Plone 3\Zope\lib\python\persistent
11/07/2007 10:26 AM <DIR> .
11/07/2007 10:26 AM <DIR> ..
08/17/2007 08:51 AM 15,872 cPersistence.pyd
08/17/2007 08:51 AM 12,288 cPickleCache.pyd
06/23/2007 02:06 AM 2,826 dict.py
08/23/2007 01:02 PM 2,559 dict.pyc
06/23/2007 02:06 AM 10,556 interfaces.py
08/23/2007 01:02 PM 10,685 interfaces.pyc
06/23/2007 02:06 AM 2,929 list.py
08/23/2007 01:02 PM 3,431 list.pyc
06/23/2007 02:06 AM 4,193 mapping.py
08/23/2007 01:02 PM 3,148 mapping.pyc
06/23/2007 02:06 AM 738 README.txt
08/23/2007 01:01 PM <DIR> tests
08/17/2007 08:51 AM 8,704 TimeStamp.pyd
06/23/2007 02:06 AM 8,258 wref.py
08/23/2007 01:02 PM 8,539 wref.pyc
06/23/2007 02:06 AM 1,211 __init__.py
11/07/2007 10:26 AM 793 __init__.pyc
16 File(s) 96,730 bytes
3 Dir(s) 8,482,267,136 bytes free
Is there a 'cPersistence.dll' file that is supposed to be somewhere,
and maybe I don't have that in my path?
Thanks a lot. This is really frustrating.
Jim
More information about the Zope
mailing list