[ZODB-Dev] ImportError: cannot import name Interface

Tim Peters tim at zope.com
Wed Aug 25 21:32:08 EDT 2004


[Tim]
>> Whatever that is, I would like a different workaround for the next ZODB
>> 3.3. I've never seen this before, so am ill-prepared to test it.

[Christian Robottom Reis]
> It's easy to understand:
>
>     .../python2.x/site-packages/PythonCAD.pth:
>         PythonCAD
>
>
>     .../python2.x/site-pachages/PythonCAD/
>         Interface
>         Application
>
> Having PythonCAD's Interface in the global namespace is naughty.

Right, what I *can't* tell without installing PythonCAD myself is whether
that's the *only* glitch.  Since Diez's example died so early, can't guess
whether more problems appear after that one is resolved.

>>     get BTrees/__init__.py into an editor
>>     delete the entire content

> Done here. It appears to work -- as far as
>
>     from BTrees import OOBTree
>
> works. Is that good enough?

It better be, because I checked that change in for the next 3.3 pre-release
<wink>.  I think it should be fine.  "intSet" went away a loooong time ago,
and BTrees/Interfaces.py currently has a documentation-only role in ZODB.
Thank you!



More information about the ZODB-Dev mailing list