[Pkg-zope-developers] TextIndexNG2 problem (Was: TXNGSplitter error message)

Andreas Tille tillea@rki.de
Sun, 8 Aug 2004 16:05:03 +0200 (CEST)


On Fri, 6 Aug 2004, Tim Knapp wrote:

> Hello Andreas,
> Thanks very much for Debianizing TextIndexNG2. I'm getting a error
> message saying that the product can't find TXNGSplitter. Are you able to
> help with this? I had a look in the splitter directory & there was an
> import command for TXNGSplitter but there was no TXNGSplitter module in
> the directory? The traceback is below. Thanks.
Thanks for the explicite traceback which enables debugging and is left
here for the reference of the readers of the Zope packaging list.  The
problem is that you are using Zope 2.7 (which uses Python 2.3) but Debians
default Zope version is 2.6.4 (which uses Python 2.2).  We are in the process
of enabling two different Zope versions working nicely together but I guess
we are not finished yet (I was offline for three weeks but I doubt something
essential has changed since this.

Your problem is casued because Zope 2.7 is searching for modules under
     /usr/lib/python2.3/site-packages
but the package does install the packages under
     /usr/lib/python2.2/site-packages

Unfortunately I have no clean solution for you.  Your mileage may vary if
you try to do some symlinking of the modules between Python 2.2 and Python 2.3
site-packages directories but currently I do not have time to handle this
problem in an other clean way than just making it conflicting to zope2.7.

Perhaps some people on this list have a better idea what to do.

Kind regards

           Andreas.

>
> 2004-08-06T17:36:23 ERROR(200) Zope Couldn't install TextIndexNG2
> Traceback (most recent call last):
>   File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 732, in
> install_product
>     initmethod(context)
>   File "/usr/lib/zope2.7/lib/python/Products/TextIndexNG2/__init__.py",
> line 70, in initialize
>     from Products.TextIndexNG2 import TextIndexNG
>   File
> "/usr/lib/zope2.7/lib/python/Products/TextIndexNG2/TextIndexNG.py", line
> 37, in ?
>     from ParseTree import Evaluator
>   File "/usr/lib/zope2.7/lib/python/Products/TextIndexNG2/ParseTree.py",
> line 19, in ?
>     import TXNGSplitter
> ImportError: No module named TXNGSplitter
> Traceback (most recent call last):
>   File "/usr/lib/zope2.7/lib/python/Zope/Startup/run.py", line 49, in ?
>     run()
>   File "/usr/lib/zope2.7/lib/python/Zope/Startup/run.py", line 19, in
> run
>     start_zope(opts.configroot)
>   File "/usr/lib/zope2.7/lib/python/Zope/Startup/__init__.py", line 51,
> in start_zope
>     starter.startZope()
>   File "/usr/lib/zope2.7/lib/python/Zope/Startup/__init__.py", line 230,
> in startZope
>     Zope.startup()
>   File "/usr/lib/zope2.7/lib/python/Zope/__init__.py", line 46, in
> startup
>     _startup()
>   File "/usr/lib/zope2.7/lib/python/Zope/App/startup.py", line 93, in
> startup
>     OFS.Application.initialize(application)
>   File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 279, in
> initialize
>     initializer.initialize()
>   File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 306, in
> initialize
>     self.install_products()
>   File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 553, in
> install_products
>     return install_products(app)
>   File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 584, in
> install_products
>     folder_permissions, raise_exc=debug_mode)
>   File "/usr/lib/zope2.7/lib/python/OFS/Application.py", line 732, in
> install_product
>     initmethod(context)
>   File "/usr/lib/zope2.7/lib/python/Products/TextIndexNG2/__init__.py",
> line 70, in initialize
>     from Products.TextIndexNG2 import TextIndexNG
>   File
> "/usr/lib/zope2.7/lib/python/Products/TextIndexNG2/TextIndexNG.py", line
> 37, in ?
>     from ParseTree import Evaluator
>   File "/usr/lib/zope2.7/lib/python/Products/TextIndexNG2/ParseTree.py",
> line 19, in ?
>     import TXNGSplitter
> ImportError: No module named TXNGSplitter
>
>