I added a installProduct('Five') first and got a little further. Now a different traceback:


[EMAIL PROTECTED]:~/GreenBible/tests $ ./run_testSearch.sh
SOFTWARE_HOME: /home/peterbe/zope/zope289/lib/python
INSTANCE_HOME: /home/peterbe/zope/zope289
Loading Zope, please stand by ... done (0.369s)
Installing ZPsycopgDA ... done (0.019s)
Installing GreenBible ... done (0.325s)
Installing MailHost ... done (0.008s)
Installing ZTinyMCE ... done (0.018s)
Installing ZCatalog ... done (0.005s)
Installing ZCTextIndex ... done (0.006s)
Installing Five ... done (0.284s)
E
======================================================================
ERROR: test private method _splitSearchterm() which will
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/peterbe/zope/zope289/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
    testMethod()
  File "testSearch.py", line 29, in test_splitSearchTerm
    site = self._setUpSite()
  File "classes.py", line 82, in _setUpSite
    dispatcher.manage_addSite('gb', initialize=bool(initialize))
File "/home/peterbe/zope/zope289/Products/GreenBible/Site.py", line 68, in manage_addSite
    object._init()
File "/home/peterbe/zope/zope289/Products/GreenBible/Management.py", line 89, in _init
    self._setupZCatalog()
File "/home/peterbe/zope/zope289/Products/GreenBible/Management.py", line 173, in _setupZCatalog
    adder(idx, extras)
File "/home/peterbe/zope/zope289/Products/TextIndexNG3/TextIndexNG3.py", line 164, in manage_addTextIndexNG3
    REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3)
File "/home/peterbe/zope/zope289/lib/python/Products/ZCatalog/ZCatalog.py", line 413, in manage_addIndex
    self.addIndex(name, type,extra)
File "/home/peterbe/zope/zope289/lib/python/Products/ZCatalog/ZCatalog.py", line 1007, in addIndex
    index = base(name, extra=extra, caller=self)
File "/home/peterbe/zope/zope289/Products/TextIndexNG3/TextIndexNG3.py", line 78, in __init__
    ranking=bool(get(extra, 'ranking')),
File "/home/peterbe/zope/zope289/Products/TextIndexNG3/src/textindexng/index.py", line 48, in __init__
    self.clear()
File "/home/peterbe/zope/zope289/Products/TextIndexNG3/src/textindexng/index.py", line 54, in clear
    self._lexicon = zapi.createObject(None, self.lexicon, self.languages)
File "/home/peterbe/zope/zope289/lib/python/zope/component/__init__.py", line 184, in createObject
    return getUtility(IFactory, name, context)(*args, **kwargs)
File "/home/peterbe/zope/zope289/lib/python/zope/component/__init__.py", line 76, in getUtility return getService(Utilities, context=context).getUtility(interface, name) File "/home/peterbe/zope/zope289/lib/python/zope/component/utility.py", line 44, in getUtility
    raise ComponentLookupError(interface, name)
ComponentLookupError: (<InterfaceClass zope.component.interfaces.IFactory>, 'txng.lexicons.default')




Andreas Jung wrote:


--On 30. August 2007 10:04:14 +0100 Peter Bengtsson <[EMAIL PROTECTED]> wrote:

I'm having trouble installing TextIndexNG 3.1.6 in my zope unit test.
Here's the output:

[EMAIL PROTECTED]:~/GreenBible/tests $ ./run_testSearch.sh
SOFTWARE_HOME: /home/peterbe/zope/zope289/lib/python
INSTANCE_HOME: /home/peterbe/zope/zope289
Loading Zope, please stand by ... done (0.395s)
Installing ZPsycopgDA ... done (0.020s)
Installing GreenBible ... done (0.331s)
Installing MailHost ... done (0.009s)
Installing ZTinyMCE ... done (0.018s)
Installing ZCatalog ... done (0.006s)
Installing ZCTextIndex ... done (0.005s)
E
======================================================================
ERROR: test private method _splitSearchterm() which will
----------------------------------------------------------------------
Traceback (most recent call last):
   File
"/home/peterbe/zope/zope289/lib/python/Testing/ZopeTestCase/profiler.py",
line 98, in __call__
     testMethod()
   File "testSearch.py", line 29, in test_splitSearchTerm
     site = self._setUpSite()
   File "classes.py", line 81, in _setUpSite
     dispatcher.manage_addSite('gb', initialize=bool(initialize))
   File "/home/peterbe/zope/zope289/Products/GreenBible/Site.py", line
68, in manage_addSite
     object._init()
   File "/home/peterbe/zope/zope289/Products/GreenBible/Management.py",
line 89, in _init
     self._setupZCatalog()
   File "/home/peterbe/zope/zope289/Products/GreenBible/Management.py",
line 173, in _setupZCatalog
     adder(idx, extras)
   File
"/home/peterbe/zope/zope289/Products/TextIndexNG3/TextIndexNG3.py", line
164, in manage_addTextIndexNG3
     REQUEST=REQUEST, RESPONSE=RESPONSE, URL1=URL3)
   File
"/home/peterbe/zope/zope289/lib/python/Products/ZCatalog/ZCatalog.py",
line 413, in manage_addIndex
     self.addIndex(name, type,extra)
   File
"/home/peterbe/zope/zope289/lib/python/Products/ZCatalog/ZCatalog.py",
line 1007, in addIndex
     index = base(name, extra=extra, caller=self)
   File
"/home/peterbe/zope/zope289/Products/TextIndexNG3/TextIndexNG3.py", line
78, in __init__
     ranking=bool(get(extra, 'ranking')),
   File
"/home/peterbe/zope/zope289/Products/TextIndexNG3/src/textindexng/index.p
y", line 48, in __init__
     self.clear()
   File
"/home/peterbe/zope/zope289/Products/TextIndexNG3/src/textindexng/index.p
y", line 54, in clear
self._lexicon = zapi.createObject(None, self.lexicon, self.languages)
   File
"/home/peterbe/zope/zope289/lib/python/zope/component/__init__.py", line
184, in createObject
     return getUtility(IFactory, name, context)(*args, **kwargs)
   File
"/home/peterbe/zope/zope289/lib/python/zope/component/__init__.py", line
76, in getUtility
     return getService(Utilities, context=context).getUtility(interface,
name)
   File
"/home/peterbe/zope/zope289/lib/python/zope/component/__init__.py", line
68, in getService
     return getServices(context).getService(name)
   File
"/home/peterbe/zope/zope289/lib/python/zope/component/service.py", line
109, in getService
     raise ComponentLookupError(name)
ComponentLookupError: 'Utilities'



You might check how the TXNG 3 tests for Plone were written (TextIndexNG3/tests/..*plone*. Looks as if the ZCML configuration did not work or something like that.

Andreas


------------------------------------------------------------------------

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to