[Zope] Re: ImportError: cannot import name base_hasattr

Maciej Wisniowski maciej.wisniowski at coig.katowice.pl
Wed Feb 28 15:29:43 EST 2007


>     from Products.CMFPlone.utils import base_hasattr
> ImportError: cannot import name base_hasattr
> 
> CMFPlone/utils.py has a class named base_hasattr, so what's the problem?
You might try this (I'm not sure if this works with Zope 2.7):

run /usr/local/zope/instance1/bin/zopectl

on zopectl prompt enter:

zopectl> debug

and when you'll see python prompt write:

>>> import Products.CMFPlone
>>> print Products.CMFPlone
<module 'Products.CMFPlone' from
'/opt/Zope/instancje/Zope296/Products/CMFPlone/__init__.pyc'>

and check what path you have there.

-- 
Maciej Wisniowski


More information about the Zope mailing list