[Interface-dev] Interface-dev Digest, Vol 23, Issue 1

Jayarajan Jn jayarajan at musmo.com
Wed Dec 24 02:21:18 EST 2008


Hi,

I doubt your python is messed up. It happens at times if you have multiple
python  versions installed. anyways,
follow these instructions(i hope it will help)

1) Look in /usr/lib/python2.5/site-packages or
/usr/local/lib/python2.5/site-packages and verify you have a folder like
zope.interface-3.*.*-py2.5-linux-*.egg and Inside it you must have an
EGG-INFO and zope folders. if not, the installation is not proper.

2) Try  export
PYTHONPATH="/usr/lib/python2.5/site-packages/:/usr/lib/python2.5/site-packages/"
Note make sure that you echo the $PYTHONPATH and make sure that you append
all the paths in it to the new PYTHONPATH too.

3) Try to import zope.interface from python shell again.

4) Or try to reinstall the zope.interface after setting the PYTHONPATH as
above.

I belive the setting the PYTHONPATH will fix it. I personaly prefer to use
easy_install when its a python package. It will fix all dependencies and
settings. You may try it too. install setuptools for your python2.5 and,
     easy_install zope.interface
jayaraj
jayarajanjn at gmail.com
jayarajanjn at musmo.com
On Wed, Dec 24, 2008 at 10:50 AM, ASHWINI NAIDU <ashwini.naidu at gmail.com>wrote:

> hi,
>
> I tried what you said but it is giving the same error. i have attached the
> error.
>
> [root at localhost zpkgsetup]# python
> Python 2.5 (r25:51908, Dec 18 2008, 22:36:15)
> [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import zope.interface
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named zope.interface
> >>>
>
>
>
> The steps followed for installation were
> 1. saved zope.interface-3.3.1 in /usr/local/src
> 2. UnTared it
> 3. got into the directory
> 4. python setup.py build
> 5. python setup.py install
>
> Can u say me how i can correct this error.
>
>
>
>
> On Wed, Dec 24, 2008 at 12:38 AM, Jayarajan Jn <jayarajan at musmo.com>wrote:
>
>> Ashwini, I have never used OpenXCAP. But it seems like the zope.interface
>> is not properly installed. You may check this in an easy way. Open a python
>> interpreter shell and try importing it.
>>
>> $python
>>
>> >>>import zope.interface
>>
>> if it works with out any error message, that means python can access
>> zope.interface package.
>>
>> can you detail about the method you have used to install zope.interface ?
>>
>>
>> On Tue, Dec 23, 2008 at 10:30 PM, <interface-dev-request at zope.org> wrote:
>>
>>> Send Interface-dev mailing list submissions to
>>>        interface-dev at zope.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>        http://mail.zope.org/mailman/listinfo/interface-dev
>>> or, via email, send a message with subject or body 'help' to
>>>        interface-dev-request at zope.org
>>>
>>> You can reach the person managing the list at
>>>        interface-dev-owner at zope.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Interface-dev digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>   1. Regarding Zope.interface ERROR (ASHWINI NAIDU)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Tue, 23 Dec 2008 14:54:14 +0530
>>> From: "ASHWINI NAIDU" <ashwini.naidu at gmail.com>
>>> Subject: [Interface-dev] Regarding Zope.interface ERROR
>>> To: interface-dev at zope.org
>>> Message-ID:
>>>        <90df28ed0812230124l7322fedex7ae713e3bf2a67ef at mail.gmail.com>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>> hi all,
>>>   I am using centos5. i am trying to install openxcap on this machine.
>>> all
>>> the other dependencies have been installed. but when i run openxcap i get
>>> the following error related to zope.interface. the version of
>>> zope.interface
>>> needed for openxcap-1.0.6 is zope.interface-3.3.1
>>>
>>> Though i have installed zope.interface i get the following error
>>>
>>> 2008-12-19 04:18:46-0800 [-] Log opened.
>>> 2008-12-19 04:18:46-0800 [-] Starting OpenXCAP 1.0.6
>>> 2008-12-19 04:18:46-0800 [-] Traceback (most recent call last):
>>> 2008-12-19 04:18:46-0800 [-]   File "/usr/local/bin/openxcap", line 55,
>>> in
>>> <module>
>>> 2008-12-19 04:18:46-0800 [-]     from xcap.server import XCAPServer
>>> 2008-12-19 04:18:46-0800 [-]   File
>>> "/usr/local/lib/python2.5/site-packages/xcap/server.py", line 11, in
>>> <module>
>>> 2008-12-19 04:18:46-0800 [-]     from twisted.web2 import channel,
>>> resource,
>>> http, responsecode, http_headers, server
>>> 2008-12-19 04:18:46-0800 [-]   File
>>>
>>> "/usr/local/lib/python2.5/site-packages/twisted/web2/channel/__init__.py",
>>> line 7, in <module>
>>> 2008-12-19 04:18:46-0800 [-]     from twisted.web2.channel.cgi import
>>> startCGI
>>> 2008-12-19 04:18:46-0800 [-]   File
>>> "/usr/local/lib/python2.5/site-packages/twisted/web2/channel/cgi.py",
>>> line
>>> 4, in <module>
>>> 2008-12-19 04:18:46-0800 [-]     from zope.interface import implements
>>> 2008-12-19 04:18:46-0800 [-] ImportError: No module named zope.interface
>>>
>>> after i installed zope.interface-3.3.1 this file
>>> zope.interface-0.0.0-py2.5.egg-info was installed in
>>> /usr/local/lib/python2.5/site-packages
>>>
>>> Help needed in resolving this issue. thanks in advance
>>>
>>> --
>>> Thanking You,
>>> Ashwini BR Naidu
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL:
>>> http://mail.zope.org/pipermail/interface-dev/attachments/20081223/93fd2f3b/attachment-0001.html
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Interface-dev mailing list
>>> Interface-dev at zope.org
>>> http://mail.zope.org/mailman/listinfo/interface-dev
>>>
>>>
>>> End of Interface-dev Digest, Vol 23, Issue 1
>>> ********************************************
>>>
>>
>>
>
>
> --
> Thankin You,
> Ashwini BR Naidu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/interface-dev/attachments/20081224/9f26271f/attachment.html 


More information about the Interface-dev mailing list