[Zope] ZopeTestCase.installProduct('TextIndexNG3') trouble
Peter Bengtsson
peter at fry-it.com
Thu Aug 30 05:04:14 EDT 2007
I'm having trouble installing TextIndexNG 3.1.6 in my zope unit test.
Here's the output:
peterbe at trillian:~/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.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/__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'
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Zope
mailing list