[Tutor] Install BTrees
Wanbo Li
li.wanbo.ulg at gmail.com
Wed Jun 26 11:56:16 CEST 2013
Dear all,
I am trying to install BTrees package on Mac OS X 10.7.5. And my python version is 2.7.3
So I used 'easy_install ZODB' and 'easy_install BTrees' to install the packages.
Then when I import modules from the package, I encounter the following error:
>>> from BTrees.OOBTree import OOBTree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/wanbo/Library/Python/2.7/lib/python/site-packages/BTrees-4.0.8-py2.7-macosx-10.6-intel.egg/BTrees/__init__.py", line 16, in <module>
import BTrees.Interfaces
File "/Users/wanbo/Library/Python/2.7/lib/python/site-packages/BTrees-4.0.8-py2.7-macosx-10.6-intel.egg/BTrees/Interfaces.py", line 511, in <module>
from ZODB.POSException import BTreesConflictError
File "/Users/wanbo/Library/Python/2.7/lib/python/site-packages/ZODB-4.0.0b3-py2.7.egg/ZODB/__init__.py", line 28, in <module>
from ZODB.DB import DB, connection
File "/Users/wanbo/Library/Python/2.7/lib/python/site-packages/ZODB-4.0.0b3-py2.7.egg/ZODB/DB.py", line 23, in <module>
from ZODB.broken import find_global
File "/Users/wanbo/Library/Python/2.7/lib/python/site-packages/ZODB-4.0.0b3-py2.7.egg/ZODB/broken.py", line 30, in <module>
class Broken(object):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/zope/interface/declarations.py", line 495, in __call__
raise TypeError("Can't use implementer with classes. Use one of "
TypeError: Can't use implementer with classes. Use one of the class-declaration functions instead.
Anyone has experience with BTrees?
Best regards,
Wanbo
More information about the Tutor
mailing list