[Zope3-Users] Problems importing zalchemy

Christian Theune ct at gocept.com
Fri Aug 10 02:28:24 EDT 2007


Hey,

Am Freitag, den 27.07.2007, 11:18 +1000 schrieb Catriona Johnson:
> Hello
> 
> I am a novice zope 3 user and would appreciate any help on this.
> 
> I am trying to follow a few examples using zalchemy but am unable to
> progress beyond importing zalchemy. My python script so far contains
> 
> import sqlalchemy
> import z3c.zalchemy
> 
> and I get the following error when trying to import zalchemy
> 
> AttributeError: __path__
> 
> Traceback (innermost last):
> 
> File "C:\Projects\TestZalchemyOracleConnection.py", line 1, in ?
> File "C:\Projects\TestZalchemyOracleConnection.py", line 3, in ?
>   import z3c.zalchemy
> File "C:\Python24\Lib\site-packages\z3c.zalchemy-0.2-py2.4.egg\z3c\zalchemy\__init__.py",
> line 15, in ?
>   from datamanager import (
> File "C:\Python24\Lib\site-packages\z3c.zalchemy-0.2-py2.4.egg\z3c\zalchemy\datamanager.py",
> line 20, in ?
>   from zope.component import queryUtility, getUtility, getUtilitiesFor
> File "C:\Python24\Lib\site-packages\zope\component\__init__.py", line 24, in ?
>   from zope.component.interfaces import IComponentArchitecture
> File "C:\Python24\Lib\site-packages\zope\deferredimport\deferredmodule.py",
> line 71, in __getattr__
>   raise AttributeError, name
> 
> 
> I am running  this in the Wing IDE on Windows XP with Python 2.4, Zope
> 3.3, SQLalchemy 0.3.8 and zalchemy 0.2

Zope 3.3 might be too old in the sense that zalchemy probably depends on
some other packages (via egg dependencies) that are not satisfied in
Zope 3.3 yet.

I can't directly make sense out of the error message though. How did you
install this version of zalchemy?

Christian



More information about the Zope3-users mailing list