[ZODB-Dev] Mysterious traceback ...
Stephen Waterbury
golux at comcast.net
Sat Jan 8 01:19:44 EST 2005
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
/usr/lib/python2.3/site-packages/Persistence/__init__.py:25:
UserWarning: Couldn't import the ExtensionClass-based base class
There are two possibilities:
1. You don't care about ExtensionClass. You are importing
Persistence because that's what you imported in the past.
In this case, you should really use the persistent package
instead:
>>> from persistent import Persistent
>>> from persistent.list import PersistentList
>>> from persistent.mapping import PersistentMapping
2. You want your classes to be ExtensionClasses. In this case,
you need to install the ExtensionClass package
separately. ExtensionClass is no-longer included with ZODB3.
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!
Steve
More information about the ZODB-Dev
mailing list