Python with igraph

Hi ,

I am using
Python 3.8
igraph 0.8.2
OS: Windows 10
Code:

import igraph as ig
           print(ig.__version__)
print("read")
ig=Graph()
movie = Graph.Read_GraphML(<FolderPath>//movies.GraphML")
print("read")
summary(movie)

Output:

PS C:\Users\intou\OneDrive\Desktop\igraph> & C:/Python3.8/python.exe c:/Users/intou/OneDrive/Desktop/igraph/abc.py
0.8.2
read
Traceback (most recent call last):
  File "c:/Users/intou/OneDrive/Desktop/igraph/abc.py", line 11, in <module>
    movie = ig.Graph.Read_GraphML("<Folder Path>\\movies.GraphML")
NotImplementedError: Error at d:\build\igraph\igraph-0.8.2-msvc\src\foreign-graphml.c:1446: GraphML support is disabled, Unimplemented function call
PS C:\Users\intou\OneDrive\Desktop\igraph>       

Please let me know what wrong i am doing?

Regards
Vivek

The error message says it all:

GraphML support is disabled

Your igraph version was built without GraphML support as this requires extra libraries on Windows. Please let us know how you installed python-igraph and then we can advise how you can get GraphML support with your version.

Hi Tamas,

I installed python_igraph-0.8.2-cp38-cp38-win_amd64.whl along with
lxml-4.5.2-cp38-cp38-win_amd64.whl and pycairo-1.19.1-cp38-cp38-win_amd64.whl

Please see here:

Sorry, I did not understand.
I feel it will be really nice if we have clear steps to setup the environment .

1 Like