[Zope3-Users] Problems importing zalchemy

Catriona Johnson catriona.johnson at gmail.com
Thu Jul 26 21:18:27 EDT 2007


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

Thanks

Catriona


More information about the Zope3-users mailing list