[ZODB-Dev] Mysterious traceback ...
Tim Peters
tim at zope.com
Sat Jan 8 01:59:38 EST 2005
[Stephen Waterbury]
> I just installed ZODB 3.3 (from ZODB3-3.3.tgz) on my machine (Debian
> Sarge, Linux bigboote 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686
> GNU/Linux), and when I try to import ZODB I get:
>
> Python 2.3.4 (#2, Dec 3 2004, 13:53:17)
> [GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import ZODB
...
> warn("""Couldn't import the ExtensionClass-based base class
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.3/site-packages/ZODB/__init__.py", line 46, in ?
> from DB import DB
> File "/usr/lib/python2.3/site-packages/ZODB/DB.py", line 25, in ?
> from ZODB.Connection import Connection
> File "/usr/lib/python2.3/site-packages/ZODB/Connection.py", line 36, in
?
> from ZODB.utils import oid_repr, z64, positive_id
> ImportError: cannot import name positive_id
> >>>
> help help!
Nobody else has reported this, so the problem must lie in something you
haven't told us. For example, *exactly* what did you that got summarized by
"I just installed ZODB 3.3". For example, did you have an older version of
ZODB installed in the same place?
If you simply look inside ZODB3-3.3.tgz, you'll quickly see that utils.py
does indeed define a positive_id() function, so whatever it is that you did,
you're not actually importing the ZODB.utils from the tarball.
More information about the ZODB-Dev
mailing list