Re: zope 3.2 and imprt errors

2006-02-20 Thread zunbeltz
Hi Benji

Thanks, but i've solved installing zope from svn instead of tarball

Regars

Zunbeltz

-- 
http://mail.python.org/mailman/listinfo/python-list


zope 3.2 and imprt errors

2006-02-17 Thread zunbeltz
Hi,

I've installed zope3.2 froma tarball. It has been installed in
/usrlocal/Zope-3-2. I am developing a package under
~/zope3instance/lib/python/  (which is my instance directory). My
PYTHONPATH
is:

/home/zunbeltz/libs/python/:/usr/local/Zope-3.2.0/lib/python:/home/zunbeltz/zope3instance/lib/python:/home/zunbeltz/pycontrol

I have the following error

Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type help, copyright, credits or license for more information.
 from zope.app import container
 container.interfaces
Traceback (most recent call last):
  File stdin, line 1, in ?
AttributeError: 'module' object has no attribute 'interfaces'
 container.interfaces.IContained
Traceback (most recent call last):
  File stdin, line 1, in ?
AttributeError: 'module' object has no attribute 'interfaces'

the file whre zope.app.container is :

/usr/local/Zope-3.2.0/lib/python/zope/app/container/__init__.pyc

And in this directory there is a module named interfaces

I'm becoming crazy, I don't know where is the problem.
Any idea?
Thanks in advance

Zunbeltz

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: zope 3.2 and imprt errors

2006-02-17 Thread Benji York
[EMAIL PROTECTED] wrote:
 I have the following error
 
 Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
 [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
 Type help, copyright, credits or license for more information.
 
from zope.app import container
container.interfaces
 
 Traceback (most recent call last):
   File stdin, line 1, in ?
 AttributeError: 'module' object has no attribute 'interfaces'

Try this instead:

  from zope.app.container import interfaces
  interfaces.IContained
 InterfaceClass zope.app.container.interfaces.IContained

--
Benji York
-- 
http://mail.python.org/mailman/listinfo/python-list