Ola,

  Verifique se na pasta do seu python do Plone tem uma pasta bin e
dentro dela um binário chamado easyinstall. Ele é tipo um apt para
programas em Python... Não tenho nenhum exemplo em mãos, mas eu o usei
para instalar dependências de produtos...
   Depois vejo se tenho o exemplo para mandar-lhe.

Abraços


Rodrigo Ristow escreveu:
>
> Ola,
>
> Estou usando um produto novo que imagino ter dependencia com o
> TextIndexNG3/libxml2, devido ao erro abaixo.
> O problema eh como instalar isso no Python localizado dentro do
> diretorio plone.
> Eh possivel fazer? Com o comando atp-get ele coloca no Python raiz no
> linux...
>
> Obrigado
>
> Rodrigo
>
> -------------
>
> ./bin/instance fg
>
> /opt/Plone-3.1/optilux/parts/instance/bin/runzope -X debug-mode=on
> 2008-11-30 23:42:18 INFO ZServer HTTP server started at Sun Nov 30
> 23:42:18 2008
> Hostname: 0.0.0.0
> Port: 8080
> 2008-11-30 23:42:21 INFO Marshall libxml2-python not available. Unable
> to register libxml2 based marshallers.
> 2008-11-30 23:42:26 ERROR Application Could not import
> Products.TextIndexNG3
> Traceback (most recent call last):
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/OFS/Application.py", line
> 709, in import_product
> product=__import__(pname, global_dict, global_dict, silly)
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/__init__.py",
> line 25, in ?
> import TextIndexNG3
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/TextIndexNG3.py",
> line 24, in ?
> from textindexng.index import Index
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/src/textindexng/index.py",
> line 20, in ?
> from evaluator import Evaluator
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/src/textindexng/evaluator.py",
> line 18, in ?
> from stemmer import getStemmer
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/src/textindexng/stemmer.py",
> line 11, in ?
> from zopyx.txng3 import stemmer
> File "build/bdist.linux-x86_64/egg/zopyx/txng3/stemmer.py", line 7,
> in ?
> File "build/bdist.linux-x86_64/egg/zopyx/txng3/stemmer.py", line 6, in
> __bootstrap__
> ImportError:
> /home/rodrigo/.python-eggs/zopyx.textindexng3-4.0.1-py2.4-linux-x86_64.egg-tmp/zopyx/txng3/stemmer.so:
> undefined symbol: PyUnicodeUCS4_AsEncodedString
> Traceback (most recent call last):
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/Zope2/Startup/run.py",
> line 56, in ?
> run()
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/Zope2/Startup/run.py",
> line 21, in run
> starter.prepare()
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/Zope2/Startup/__init__.py",
> line 102, in prepare
> self.startZope()
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/Zope2/Startup/__init__.py",
> line 278, in startZope
> Zope2.startup()
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/Zope2/__init__.py", line
> 47, in startup
> _startup()
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/Zope2/App/startup.py",
> line 45, in startup
> OFS.Application.import_products()
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/OFS/Application.py", line
> 686, in import_products
> import_product(product_dir, product_name, raise_exc=debug_mode)
> File
> "/opt/Plone-3.1/optilux/parts/zope2/lib/python/OFS/Application.py", line
> 709, in import_product
> product=__import__(pname, global_dict, global_dict, silly)
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/__init__.py",
> line 25, in ?
> import TextIndexNG3
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/TextIndexNG3.py",
> line 24, in ?
> from textindexng.index import Index
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/src/textindexng/index.py",
> line 20, in ?
> from evaluator import Evaluator
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/src/textindexng/evaluator.py",
> line 18, in ?
> from stemmer import getStemmer
> File
> "/opt/Plone-3.1/optilux/eggs/Products.TextIndexNG3-3.2.13-py2.4.egg/Products/TextIndexNG3/src/textindexng/stemmer.py",
> line 11, in ?
> from zopyx.txng3 import stemmer
> File "build/bdist.linux-x86_64/egg/zopyx/txng3/stemmer.py", line 7,
> in ?
> File "build/bdist.linux-x86_64/egg/zopyx/txng3/stemmer.py", line 6, in
> __bootstrap__
> ImportError:
> /home/rodrigo/.python-eggs/zopyx.textindexng3-4.0.1-py2.4-linux-x86_64.egg-tmp/zopyx/txng3/stemmer.so:
> undefined symbol: PyUnicodeUCS4_AsEncodedString
>
>  

Responder a