[Zope-Coders] Problem with importing ZCatalog in 2.7
Andreas Jung
Andreas Jung <andreas@andreas-jung.com>
Fri, 18 Apr 2003 12:00:01 +0200
Hi,
while trying to import the ZCatalog Zope 2.7 raised an ImportError for
"Factory".
Any ideas what's going on here since this worked in the past?
yetix@/develop/DC/sandboxes/txng/trunk(95)% python2.2
utilities/testrunner.py -f lib/python/Products/TextIndexNG/tests/t1.py
Adding /home/develop/DC/sandboxes/txng/trunk/lib/python to sys.path.
Running: lib/python/Products/TextIndexNG/tests/t1.py
Module t1.py failed to load
exceptions.ImportError: cannot import name Factory
File "utilities/testrunner.py", line 67, in getSuiteFromFile
File "t1.py", line 12, in ?
from Products.TextIndexNG import TextIndexNG
File
"/home/develop/DC/sandboxes/txng/trunk/lib/python/Products/TextIndexNG/Text
IndexNG.py", line 26, in ?
from Products.ZCatalog.ZCatalog import ZCatalog
File
"/home/develop/DC/sandboxes/txng/trunk/lib/python/Products/ZCatalog/__init_
_.py", line 16, in ?
import ZCatalog, Catalog, CatalogAwareness, CatalogPathAwareness,
ZClasses
File
"/home/develop/DC/sandboxes/txng/trunk/lib/python/ZClasses/__init__.py",
line 20, in ?
import ZClass
File
"/home/develop/DC/sandboxes/txng/trunk/lib/python/ZClasses/ZClass.py", line
16, in ?
import Method, Basic, Property, AccessControl.Role, re
File
"/home/develop/DC/sandboxes/txng/trunk/lib/python/ZClasses/Method.py", line
18, in ?
import App.Dialogs, ZClasses, App.Factory, App.Product,
App.ProductRegistry
File "/home/develop/DC/sandboxes/txng/trunk/lib/python/App/Factory.py",
line 19, in ?
import Products, Product
File "/home/develop/DC/sandboxes/txng/trunk/lib/python/App/Product.py",
line 44, in ?
from Factory import Factory
Andreas