Re: plone buildout: ImportError: No module named ImplPython
Raphael Ritz <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Andreas Jung wrote:
> Interessanterweise bekomme ich den gleichen Fehler aktuell bei mir mit
> einem Plone Buildout - reproduzierbar nach dem ich ein neues Package
> (z3c.unconfigure)
> unter 'eggs' und 'zcml' eingetragen habe. Nach Entfernen des Package aus
> der buildout.cfg
> verschwindet das Problem wieder - bizarr.
>
Versucht mal rauszufinden, ob das nicht vielleicht an was ganz anderem
liegt. Z.B. so wie von Mikko hier
http://plone.org/documentation/error/importerror-no-module-named-implpython
beschrieben:
This error may also mask other errors. Edit
parts/zope2/lib/python/AccessControl/ImplC.py:
try:
from cAccessControl import rolesForPermissionOn, \
PermissionRole, imPermissionRole, _what_not_even_god_should_do, \
RestrictedDTMLMixin, aq_validate, guarded_getattr, \
setDefaultBehaviors
from cAccessControl import ZopeSecurityPolicy as cZopeSecurityPolicy
from cAccessControl import SecurityManager as cSecurityManager
except ImportError:
raise # THIS LINE HAS BEEN ADDED TO SEE THE ACTUAL EXCEPTION
And restart instance. Now you should get a different exception.
Raphael
> Andreas
>
> On 14.05.09 08:30, Michael Graf wrote:
>> Hallo Liste,
>> schön langsam werde ich "warm" mit den Plone buildouts...
>>
>> Allerdings bekomme ich ungefähr seit vorgestern beim Starten der Instanz immer den gleichen Fehler:
>> Bin auch schon etwas leicht genervt, also sehe ich wahrscheinlich den Wald vor lauter Bäumen nicht mehr...
>>
>> ------------------------------------------------------------------------------
>>
>> C:\Server\instance\dev>bin\instance fg
>> C:\Server\instance\dev\parts\instance\bin\runzope -X debug-mode=on
>>
>> C:\Server\instance\dev>"C:\Server\Python24\python.exe" "C:\Server\instance\dev\parts\instance\bin\se
>> rvicewrapper.py" -C "C:\Server\instance\dev\parts\instance\etc\zope.conf" "-X" "debug-mode=on"
>>
>> Traceback (most recent call last):
>> File "C:\Server\instance\dev\parts\instance\bin\servicewrapper.py", line 97, in ?
>> run.run()
>> File "C:\Server\instance\dev\parts\zope2\lib\python\Zope2\Startup\run.py", line 19, in run
>> opts = _setconfig()
>> File "C:\Server\instance\dev\parts\zope2\lib\python\Zope2\Startup\run.py", line 48, in _setconfig
>> opts.realize(doc="Sorry, no option docs yet.")
>> File "C:\Server\instance\dev\parts\zope2\lib\python\zdaemon\zdoptions.py", line 273, in realize
>> self.load_schema()
>> File "C:\Server\instance\dev\parts\zope2\lib\python\zdaemon\zdoptions.py", line 321, in load_schem
>> a
>> self.schema = ZConfig.loadSchema(self.schemafile)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\loader.py", line 31, in loadSchema
>> return SchemaLoader().loadURL(url)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\loader.py", line 65, in loadURL
>> return self.loadResource(r)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\loader.py", line 159, in loadResource
>> schema = ZConfig.schema.parseResource(resource, self)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\schema.py", line 27, in parseResource
>> xml.sax.parse(resource.file, parser)
>> File "C:\Server\Python24\lib\xml\sax\__init__.py", line 33, in parse
>> parser.parse(source)
>> File "C:\Server\Python24\lib\xml\sax\expatreader.py", line 107, in parse
>> xmlreader.IncrementalParser.parse(self, source)
>> File "C:\Server\Python24\lib\xml\sax\xmlreader.py", line 123, in parse
>> self.feed(buffer)
>> File "C:\Server\Python24\lib\xml\sax\expatreader.py", line 207, in feed
>> self._parser.Parse(data, isFinal)
>> File "C:\Server\Python24\lib\xml\sax\expatreader.py", line 300, in start_element
>> self._cont_handler.startElement(name, AttributesImpl(attrs))
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\schema.py", line 99, in startElement
>> getattr(self, "start_" + name)(attrs)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\schema.py", line 475, in start_schema
>> keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\schema.py", line 201, in get_sect_type
>> info
>> datatype = self.get_datatype(attrs, "datatype", "null", base)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\schema.py", line 194, in get_datatype
>> return self._registry.get(dtname)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\datatypes.py", line 398, in get
>> t = self.search(name)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\ZConfig\datatypes.py", line 423, in search
>> package = __import__(n, g, g, component)
>> File "C:\Server\instance\dev\parts\zope2\lib\python\Zope2\Startup\datatypes.py", line 21, in ?
>> import OFS.Uninstalled
>> File "C:\Server\instance\dev\parts\zope2\lib\python\OFS\Uninstalled.py", line 16, in ?
>> import SimpleItem, Globals, Acquisition
>> File "C:\Server\instance\dev\parts\zope2\lib\python\OFS\SimpleItem.py", line 26, in ?
>> import AccessControl.Role, AccessControl.Owned, App.Common
>> File "C:\Server\instance\dev\parts\zope2\lib\python\AccessControl\__init__.py", line 17, in ?
>> from Implementation import setImplementation
>> File "C:\Server\instance\dev\parts\zope2\lib\python\AccessControl\Implementation.py", line 98, in
>> ?
>> setImplementation("C")
>> File "C:\Server\instance\dev\parts\zope2\lib\python\AccessControl\Implementation.py", line 51, in
>> setImplementation
>> from AccessControl import ImplC as impl
>> File "C:\Server\instance\dev\parts\zope2\lib\python\AccessControl\ImplC.py", line 30, in ?
>> from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy
>> ImportError: No module named ImplPython
>>
>> ------------------------------------------------------------------------------
>>
>>
>>
>> Dank Google hab ich theoretisch schon eine Lösung gefunden, allerdings funktioniert diese bei mir nicht - oder ich hab irgendwo einen Fehler gemacht. Mein buildout.cfg:
>>
>> [buildout]
>> parts =
>> zope2
>> productdistros
>> instance
>> zopepy
>>
>> newest = false
>>
>> extends = http://dist.plone.org/release/3.2.2/versions.cfg
>> versions = versions
>>
>> find-links =
>> http://dist.plone.org/release/3.2.2
>> http://download.zope.org/ppix/
>> http://download.zope.org/distribution/
>> http://effbot.org/downloads
>>
>> eggs =
>>
>> develop =
>>
>> [zope2]
>> recipe = plone.recipe.zope2install
>> fake-zope-eggs = true
>> additional-fake-eggs =
>> ZODB3
>> url = ${versions:zope2-url}
>>
>> [productdistros]
>> recipe = plone.recipe.distros
>> urls =
>> nested-packages =
>> version-suffix-packages =
>>
>> [instance]
>> recipe = plone.recipe.zope2instance
>> zope2-location = ${zope2:location}
>> user = admin:admin
>> http-address = 8080
>> debug-mode = on
>> verbose-security = on
>>
>> eggs =
>> Plone
>> ${buildout:eggs}
>>
>> zcml =
>>
>> products =
>> ${buildout:directory}/products
>> ${productdistros:location}
>>
>> [zopepy]
>> recipe = zc.recipe.egg
>> eggs = ${instance:eggs}
>> interpreter = zopepy
>> extra-paths = ${zope2:location}/lib/python
>> scripts = zopepy
>>
>> [versions]
>> zope.component=3.5.1
>>
>> -----------------------------------------------------------------------
>>
>>
>> Hoffe hier kann mir jemand helfen und Licht ins dunkel zu bringen :-)
>>
>> Danke, Michi
>>
>>
>>
>> Michael Graf
>> Webmaster
>>
>> IMC Fachhochschule Krems
>> University of Applied Sciences Krems
>> A-3500 Krems, Austria, Europe
>>
>> Office:
>> Campus Krems, Trakt G, Room 4.08
>> T: +43-(0)2732-802- ext. 519
>> F: +43-(0)2732-802-4
>> E-Mail: [email protected]
>>
>>
>> Diese Nachricht erhalten Sie von einem IMC Mitarbeiter.
>> Allfallige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verstandigen und die Information zu vernichten. Für Übermittlungsfehler oder sonstige Irrtumer bei Übermittlung besteht keine Haftung.
>>
>> This message is being transmitted by an IMC employee.
>> Any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.
>>
>> Informationspflicht nach §14 UGB:
>>
>> IMC Fachhochschule Krems GmbH
>> Piaristengasse 1, A-3500 Krems
>> Austria, Europe
>> ATU: 37552304
>> Firmenbuchnummer: 79297 p
>> Firmenbuchgericht: Landesgericht Krems an der Donau
>> DVR: 0798771
>> Fachgruppe Unternehmensberatung
>>
>>
>> _______________________________________________
>> zope mailing list
>> [email protected]
>> https://mail.dzug.org/mailman/listinfo/zope
>>
>
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope