[Zope-dev] [Zope 2.12] ImportError: cannot import name aq_inContextOf

Andreas Jung lists at zopyx.com
Fri Jan 23 12:00:21 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am currently trying to fix the generation of the creation and
configuration of the startup scripts. I am getting this when running
zopectl:

Traceback (most recent call last):
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/src/Zope2/Startup/run.py",
line 56, in ?
    run()
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/src/Zope2/Startup/run.py",
line 21, in run
    starter.prepare()
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/Zope2/Startup/__init__.py",
line 98, in prepare
    self.setupSecurityOptions()
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/Zope2/Startup/__init__.py",
line 180, in setupSecurityOptions
    import AccessControl
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/AccessControl/__init__.py",
line 16, in ?
    from AccessControl.Implementation import setImplementation
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/AccessControl/Implementation.py",
line 98, in ?
    setImplementation("C")
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/AccessControl/Implementation.py",
line 51, in setImplementation
    from AccessControl import ImplC as impl
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/AccessControl/ImplC.py",
line 35, in ?
    from AccessControl.ImplPython import RestrictedDTML
  File
"/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Zope2-2.12.dev-py2.4-linux-x86_64.egg/AccessControl/ImplPython.py",
line 23, in ?
    from Acquisition import aq_inContextOf
ImportError: cannot import name aq_inContextOf

The debugger output isn't much helpful:

>
/home/develop/sandboxes/Zope2.buildout/trunk/lib/python2.4/site-packages/Acquisition-2.11.1-py2.4-linux-x86_64.egg/Acquisition/__init__.py(4)?()
- -> from interfaces import IAcquirer
(Pdb) dir(_Acquisition)
['Acquired', 'Acquirer', 'AcquisitionCAPI', 'Explicit',
'ExplicitAcquirer', 'ExplicitAcquisitionWrapper', 'Implicit',
'ImplicitAcquisitionWrapper', '__doc__', '__file__', '__name__',
'aq_acquire', 'aq_base', 'aq_chain', 'aq_get', 'aq_inner', 'aq_parent',
'aq_self']


Any bells ringing?

Andreas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkl596UACgkQCJIWIbr9KYz5AACgti6xi0RU0XzwvBQfFlG89KfF
h4EAniWUKiHzS/EoI7eroyRIextoOrfA
=bdiz
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090123/2d6d899b/attachment.vcf 


More information about the Zope-Dev mailing list