zope 3.2 and imprt errors
Benji York
benji at benjiyork.com
Fri Feb 17 21:57:04 EST 2006
zunbeltz at gmail.com wrote:
> I have the following error
>
> Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
> [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>from zope.app import container
>>>>container.interfaces
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'interfaces'
Try this instead:
>>> from zope.app.container import interfaces
>>> interfaces.IContained
<InterfaceClass zope.app.container.interfaces.IContained>
--
Benji York
More information about the Python-list
mailing list