From: Morten W. P. <mo...@ni...> - 2009-09-30 16:09:05
|
Hi Martin, Martin Aspeli skrev: > Morten W. Petersen wrote: > >> 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 >> > > I don't think you should've cross-posted to plone-dev. > Ah, OK. Are there some simple rules to follow when it comes to when to post where? I thought it was a good idea to post to plone-dev too, as this was advanced stuff for me too even though I do have a lot of experience with Zope and Plone. And as you'll see below, I'm not adding any extra products. > It's clearly not a "standard" buildout. You've got other products in the > mix that are causing this via some dependency on a new zope.component. > Well, you can see my buildout.cfg attached. I have a ~/zope-test directory which is empty when this set of commands is run: 326 PYTHONPATH=. /opt/python245-dsa1667/bin/easy_install --install-dir=. -U ZopeSkel 327 ls 328 YTHONPATH=. ./paster create -t plone3_buildout buildout (above I just press enter on all questions) 329 cd buildout/ 330 ls 331 /opt/python245-dsa1667/bin/python bootstrap.py 332 less ./bin/buildout 333 ls 334 ./bin/buildout 335 ls 337 emacs parts/instance/etc/zope.conf (editing to set a different port) 338 ./bin/instance fg (which gives the following error) File "/home/vela/zope-test/buildout/parts/zope2/lib/python/OFS/SimpleItem.py", line 26, in ? import AccessControl.Role, AccessControl.Owned, App.Common File "/home/vela/zope-test/buildout/parts/zope2/lib/python/AccessControl/__init__.py", line 17, in ? from Implementation import setImplementation File "/home/vela/zope-test/buildout/parts/zope2/lib/python/AccessControl/Implementation.py", line 98, in ? setImplementation("C") File "/home/vela/zope-test/buildout/parts/zope2/lib/python/AccessControl/Implementation.py", line 51, in setImplementation from AccessControl import ImplC as impl File "/home/vela/zope-test/buildout/parts/zope2/lib/python/AccessControl/ImplC.py", line 30, in ? from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython Interestingly enough, when running the paster script and specifying Plone version 3.3.1 - everything works. -Morten -- Morten W. Petersen Manager Nidelven IT Ltd Phone: +47 45 44 00 69 Email: mo...@ni... |