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 <[email protected]> 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:
> 
> _PyExc_WarningÄ8ê@_PyFile_TypeÄ4ê@_PyFloat_TypeÄ厎ˇˇˇˇˇˇ ê@_PyList_TypeÄxê@
> 
> ...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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to