igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Igraph won't import on Python 3.3, OS X


From: Fintan Nagle
Subject: Re: [igraph] Igraph won't import on Python 3.3, OS X
Date: Wed, 13 Nov 2013 16:20:27 +0000

Aha! Awesome idea. I will try and find out how to do this.

Does anyone want to help me make a Mac OS Python 3 installer for iGraph once I have got it working?

Thanks,

Fintan


On 13 November 2013 16:15, Tamás Nepusz <address@hidden> wrote:
Hello,

Extensions compiled for Python 2.x are binary-incompatible with Python 3.x and vice versa, so it's no surpruse that python-igraph compiled for Python 2.x does not work in Python 3. Have you tried compiling the Python interface from source with Python 3?

T. 

On 13 Nov 2013, at 13:10, Fintan Nagle <address@hidden> wrote:

Hello all,

When I try from igraph import * on Python 3.3, OS X, I get the following error:

>>> from igraph import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/igraph/__init__.py", line 34, in <module>
    from igraph._igraph import *
ImportError: dlopen(/Library/Python/2.7/site-packages/igraph/_igraph.so, 2): Symbol not found: _PyFile_Type
  Referenced from: /Library/Python/2.7/site-packages/igraph/_igraph.so
  Expected in: flat namespace
 in /Library/Python/2.7/site-packages/igraph/_igraph.so

The string _PyFile_Type appears in the igraph.so file on the line:

address@hidden@_PyFloat_TypeÄåˇˇˇˇˇˇˇˇ address@hidden@

...but I can't work out how to find its definition so that igraph can be imported.

The library works fine in Python 2.7.

Can anyone help? :)

Thanks,

Fintan
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]