[ZODB-Dev] No module named TimeStamp
Guido van Rossum
guido@python.org
Fri, 08 Nov 2002 10:54:10 -0500
> Every time I try to load cPersistence I get an error "No module named
> TimeStamp" - this also happens when I try to run start.py to run ZEO.
> I am however able to import TimeStamp.
>
> Can anyone tell me how to clear this up?
>
> Thanks,
>
> John Holland
>
> >>> import cPersistence
> ['',
> '/export/home/jholland/ZODB3-3.1/build/lib.solaris-2.9-sun4u-2.1/ZODB',
> '/usr/local/lib/python2.1', '/usr/local/lib/python2.1/plat-sunos5',
> '/usr/local/lib/python2.1/lib-tk', '/usr/local/lib/python2.1/lib-dynload',
> '/usr/local/lib/python2.1/site-packages',
> '/usr/local/lib/python2.1/site-packages']
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/export/home/jholland/ZODB3-3.1/ZODB/__init__.py", line 21, in ?
> import cPersistence
> ImportError: No module named TimeStamp
Note how you're getting ZODB from the source directory rather than the
build directory. I'm guessing that your current directory is
/export/home/jholland/ZODB3-3.1/. I also think that
/export/home/jholland/ZODB3-3.1/build/lib.solaris-2.9-sun4u-2.1/ZODB
has no business being on sys.path.
--Guido van Rossum (home page: http://www.python.org/~guido/)