[Zope] Issues with instance migration and TextIndexNG2->TextIndexNG3
Jonas Meurer
jonas at freesources.org
Fri Sep 5 09:48:28 EDT 2008
On 05/09/2008 Andreas Jung wrote:
> --On 5. September 2008 13:48:21 +0200 Jonas Meurer
> <jonas at freesources.org> wrote:
>> ------
>> 2008-09-05T13:35:12 ERROR Application Couldn't install TextIndexNG3
>> Traceback (most recent call last):
>> File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 758, in
>> install_product global_dict, global_dict, silly)
>> File
>> "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py",
>> line 25, in ? import TextIndexNG3
>> File
>> "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py",
>> line 24, in ? from textindexng.index import Index
>> ImportError: No module named textindexng.index
>> ------
>
> Start Zope using "zopectl fg" and trible check if all your TXNG3
> dependencies are installed.
Hello,
First thanks for your fast response. I tried starting the instance with
zopectl fg, and got a similar Traceback with more verbose information.
See the exact output below.
But I have have to admit that I was wrong in my first mail with the
assertion that the TextIndexNG3 ImportError was unique for the migrated
instance in question. I discovered in the meantime that every zope2.10
instance on the new server - either new created or migrated from an old
server - has this error at startup time in event.log.
I use debian/lenny and the debian packages zope-textindexng3 and
zope-textindexng3-lib on the new server, thus I believe that all
dependencies are installed. But indeed it seems like the bug is in the
installation of the TextIndexNG3 product, not in the instances.
Yet I still don't know where to start debugging. Thanks for you help
anyway.
Here's the output of 'dzhandle zopectl donau fg':
# dzhandle zopectl donau fg
/var/lib/zope2.10/instance/donau/bin/runzope -X debug-mode=on
2008-09-05 15:20:42 INFO ZServer HTTP server started at Fri Sep 5 15:20:42 2008
Hostname: localhost
Port: 9580
2008-09-05 15:20:42 INFO Zope Set effective user to "z-donau"
2008-09-05 15:20:43 INFO ReplaceSupport Applied patch version 1.0.3.
2008-09-05 15:20:43 ERROR Application Could not import Products.TextIndexNG3
Traceback (most recent call last):
File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 709, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ?
import TextIndexNG3
File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ?
from textindexng.index import Index
ImportError: No module named textindexng.index
Traceback (most recent call last):
File "/usr/lib/zope2.10/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/usr/lib/zope2.10/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
File "/usr/lib/zope2.10/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
self.startZope()
File "/usr/lib/zope2.10/lib/python/Zope2/Startup/__init__.py", line 278, in startZope
Zope2.startup()
File "/usr/lib/zope2.10/lib/python/Zope2/__init__.py", line 47, in startup
_startup()
File "/usr/lib/zope2.10/lib/python/Zope2/App/startup.py", line 45, in startup
OFS.Application.import_products()
File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 686, in import_products
import_product(product_dir, product_name, raise_exc=debug_mode)
File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 709, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ?
import TextIndexNG3
File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ?
from textindexng.index import Index
ImportError: No module named textindexng.index
greetings,
jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope/attachments/20080905/584cd480/attachment.bin
More information about the Zope
mailing list