Re: [Plone-Users] ImportError: No module named ImplPython

1 message Options
Embed this post
Permalink
Morten W. Petersen

Re: [Plone-Users] ImportError: No module named ImplPython

Reply Threaded More More options
Print post
Permalink
Hendrik,

Mm, yep.  I'm one step further in this and got this traceback after
adding a raise statement
to the ImplC.py file:

[...]
  File
"/home/vela/zope/buildout/parts/zope2/lib/python/ZPublisher/HTTPRequest.py",
line 18, in ?
    from BaseRequest import BaseRequest, quote
  File
"/home/vela/zope/buildout/parts/zope2/lib/python/ZPublisher/BaseRequest.py",
line 28, in ?
    from zope.app.publisher.browser import queryDefaultViewName
  File
"/home/vela/zope/buildout/parts/zope2/lib/python/zope/app/publisher/browser/__init__.py",
line 18, in ?
    from zope.component.interfaces import ComponentLookupError,
IDefaultViewName
ImportError: cannot import name IDefaultViewName

 From what I can tell, the zope.app.publisher module relies on
zope.component which is < 3.6.0
according to this:

http://svn.zope.org/zope.component/trunk/CHANGES.txt?rev=102216&view=markup

Where it states that IDefaultViewName was moved in 3.6.0.  I've tried
pinning down
zope.component to 3.5.1 but that doesn't help much (as there is some
interdependency
hell going on).  :)

This is as mentioned on a standard buildout, where the procedure was

PYTHONPATH=. /opt/python245-dsa1667/bin/easy_install --install-dir=. -U
ZopeSkel
PYTHONPATH=. ./paster create -t plone3_buildout buildout
/opt/python.../python bootstrap.py
./bin/buildout
./bin/instance fg

-Morten

Hendrik Bunke skrev:

> Hi Morten,
>
> that's documented here:
> http://plone.org/documentation/error/importerror-no-module-named-implpython
>
> regards
> hendrik
>
> --On Wed, 30 Sep 2009 00:08, Morten W. Petersen wrote:
>
>  
>> Hi,
>>
>> I'm getting a strange error when running 'instance fg' on a freshly setup
>> buildout-based Zope/Plone instance:
>>
>> [...]
>>   File
>> "/home/vela/zope/buildout/parts/zope2/lib/python/AccessControl/Implementation.py",
>> line 51, in setImplementation
>>     from AccessControl import ImplC as impl
>>   File
>> "/home/vela/zope/buildout/parts/zope2/lib/python/AccessControl/ImplC.py",
>> line 30, in ?
>>     from ImplPython import RestrictedDTML, SecurityManager,
>> ZopeSecurityPolicy
>> ImportError: No module named ImplPython
>>
>> Has anyone got ideas of what's going on here?  The entire setup was done
>> using
>> /opt/python245-dsa1667/bin/{python,easy_install}
>>
>> The buildout.cfg looks like this:
>>
>> [...]
>> find-links =
>>     http://dist.plone.org/release/3.2.2
>> [...]
>> eggs =
>>     Plone
>>     ${buildout:eggs}
>>     Products.FCKeditor
>>     Products.PloneKeywordManager
>>     Products.QuillsEnabled
>>     Products.basesyndication
>>     Products.PloneFormGen
>> [...]
>>
>> Any ideas?
>>
>> TIA,
>>
>> Morten
>>
>>
>>    
>
>  


--
Morten W. Petersen
Manager
Nidelven IT Ltd

Phone: +47 45 44 00 69
Email: [hidden email]


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-developers