Hallo,
ich habe frischen python2.6.2 und setuptools installiert.
Mit easy-install-2.6 zope2 habe ich zope2 aufgesetzt. Mit
easy-install-2.6 Products.TextIndexNG3 Textindex installiert.
Schon bei Start meckert Zope
....
ZopeXMLConfigurationError: File
"/home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/configure.zcml",
line 8.2-8.61
ZopeXMLConfigurationError: File
"/home/szope1/usr/lib/lib/python2.6/site-packages/zopyx.txng3.core-3.3.3-py2.6.egg/zopyx/txng3/core/configure.zcml",
line 101.2-104.8
ImportError: No module named component.vocabulary
Lässt sich lösen mit
easy-install-2.6 zope.app.component
Dann bei hinzufügen des Indexes
Module Products.TextIndexNG3, line 52, in get_splitters
ImportError: cannot import name zapi
easy-install-2.6 zope.app.zapi
Darauf müsste man aber erstmal kommen...
Frage 1: Sollten die Abhängigkeiten bei easy-installer nicht
automatisch mit installiert werden?
Nach dem der Textindex sich erfolgreich hinzugefügt ließ, bekommt man
beim Anklicken des TextindexesNG weitere Fehlermeldung:
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.TextIndexNG3.TextIndexNG3, line 165, in
manage_workspace
Module Products.Five.browser.metaconfigure, line 427, in __call__
Module Products.Five.browser.pagetemplatefile, line 126, in __call__
Module Products.Five.browser.pagetemplatefile, line 60, in __call__
Module zope.pagetemplate.pagetemplate, line 115, in pt_render
- Warning: Macro expansion failed
- Warning: <class 'zope.location.interfaces.LocationError'>:
(<Products.Five.metaclass.SimpleViewClass from
/home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/pt/txng_macros.pt
object at 0x3307a90>, 'macros')
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 867, in do_useMacro
Module zope.tales.tales, line 696, in evaluate
- URL: /home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/pt/manage.pt
- Line 79, Column 0
- Expression: <PathExpr standard:u'context/txng_macros/macros/footer'>
- Names:
{'args': (),
'container': <TextIndexNG3 at /das//PrincipiaSearchSource>,
'context': <TextIndexNG3 at /das//PrincipiaSearchSource>,
'default': <object object at 0x2ae4fa1ecb10>,
'here': <TextIndexNG3 at /das//PrincipiaSearchSource>,
'loop': {},
'nothing': None,
'options': {},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0x33e3680>,
'request': <HTTPRequest,
URL=
http://mymir.ru:38080/das/Indexes/PrincipiaSearchSource/manage_workspace>,
'root': <Application at >,
'template':
<Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at
0x300bbd0>,
'traverse_subpath': [],
'user': <User 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from
/home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/pt/manage.pt
object at 0x32f0a90>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper
object at 0x3302d90>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 127, in _eval
Module zope.tales.expressions, line 124, in _eval
Module Products.PageTemplates.Expressions, line 79, in boboAwareZopeTraverse
Module zope.traversing.adapters, line 139, in traversePathElement
- __traceback_info__: (<Products.Five.metaclass.SimpleViewClass
from /home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/pt/txng_macros.pt
object at 0x3307390>, 'macros')
Module zope.traversing.adapters, line 53, in traverse
- __traceback_info__: (<Products.Five.metaclass.SimpleViewClass
from /home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/pt/txng_macros.pt
object at 0x3307390>, 'macros', ['footer'])
LocationError: (<Products.Five.metaclass.SimpleViewClass from
/home/szope1/usr/lib/lib/python2.6/site-packages/Products.TextIndexNG3-3.3.0b1-py2.6.egg/Products/TextIndexNG3/pt/txng_macros.pt
object at 0x3307390>, 'macros')
Lässt sich da was machen?
Unter
http://pypi.python.org/pypi/Products.TextIndexNG3/3.3.0b1 finden
man keine Angaben über unterstützte Python Versionen mehr. Wird
Python2.6 überhaupt unterstützt?
PS: bei Python2.5 und der ähnlichen Vorgehensweise bekam ich etwas mit
no modul: interface schon beim hinzufügen des Indexes.
Viele Grüße
Vladislav
_______________________________________________
zope mailing list
[hidden email]
https://mail.dzug.org/mailman/listinfo/zope