python_igraph problem

Bug #700979 reported by Keith Briggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Invalid
Undecided
Tamás Nepusz

Bug Description

I installed python igraph on a Fedora 14 machine. I get this:

kbriggs@localhost:~/Downloads> python
Python 2.7 (r27:82500, Sep 16 2010, 18:03:06)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import igraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-linux-i686.egg/igraph/__init__.py", line 30, in <module>
    from igraph.core import *
ImportError: /usr/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-linux-i686.egg/igraph/core.so: undefined symbol: PyUnicodeUCS2_AsEncodedString

Keith

Revision history for this message
Tamás Nepusz (ntamas) wrote :

Dear Keith,

How did you install python-igraph? Did you compile it from source or have you used a pre-compiled package?

Revision history for this message
Tamás Nepusz (ntamas) wrote :

A bit of googling reveals that it is likely to be caused by an incompatibility between the compiled extension and the Python interpreter you are trying to use it with. It seems like the Python interpreter is compiled with UCS4 (i.e. one character in a Unicode string is stored on 4 bytes) while the extension was compiled and linked to a Python interpreter which uses UCS2 (one Unicode character is stored on 2 bytes).

More info here:

http://bugs.python.org/setuptools/issue78
http://markmail.org/message/bla5vrwlv3kn3n7e

Changed in igraph:
assignee: nobody → Tamás Nepusz (ntamas)
Revision history for this message
Keith Briggs (keith-briggs) wrote : RE: [Bug 700979] Re: python_igraph problem

I compiled it from source. However, I just tried reinstalling python, and now the problem has gone away. Not sure why!
Thanks for the reply.
Keith

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Tamás Nepusz
Sent: 10 January 2011 11:29
To: Briggs,KM,Keith,DES8 R
Subject: [Bug 700979] Re: python_igraph problem

Dear Keith,

How did you install python-igraph? Did you compile it from source or have you used a pre-compiled package?

** Bug watch added: setuptools Roundup #78
   http://bugs.python.org/setuptools/issue78

--
You received this bug notification because you are a direct subscriber of the bug.
https://bugs.launchpad.net/bugs/700979

Title:
  python_igraph problem

Status in The igraph library:
  New

Bug description:
  I installed python igraph on a Fedora 14 machine. I get this:

kbriggs@localhost:~/Downloads> python
Python 2.7 (r27:82500, Sep 16 2010, 18:03:06) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import igraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-linux-i686.egg/igraph/__init__.py", line 30, in <module>
    from igraph.core import *
ImportError: /usr/lib/python2.7/site-packages/python_igraph-0.5.4-py2.7-linux-i686.egg/igraph/core.so: undefined symbol: PyUnicodeUCS2_AsEncodedString

Keith

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/igraph/+bug/700979/+subscribe

Tamás Nepusz (ntamas)
Changed in igraph:
status: New → Invalid
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/422

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.