Skip to content

Can't read Graphml files on Linux Mint 18 (works on mint 17.1) #95

@ntamas

Description

@ntamas

From @swayson on September 28, 2016 14:45

Hi there,

I have had issues reading graphml using python-igraph 7.1 via pip on Mint 18. I however, don't experience this issue on Mint 17.1.

Note I did install libxml2-dev in my attempts.

I get the following error on python 3.5

ig.read('test.graphml')

/home/username/miniconda3/lib/python3.5/site-packages/igraph/__init__.py in read(filename, *args, **kwds)
   4061     @param filename: the name of the file to be loaded
   4062     """
-> 4063     return Graph.Read(filename, *args, **kwds)
   4064 load=read
   4065 

/home/username/miniconda3/lib/python3.5/site-packages/igraph/__init__.py in Read(klass, f, format, *args, **kwds)
   2221             raise IOError("no reader method for file format: %s" % str(format))
   2222         reader = getattr(klass, reader)
-> 2223         return reader(f, *args, **kwds)
   2224     Load = Read
   2225 

SystemError: <built-in method Read_GraphML of type object at 0x14c2758> returned NULL without setting an error

On Python 2.7 I had different errors when running the same command.

NotImplementedError: Error at foreign-graphml.c:1211: GraphML support is disabled, Unimplemented function call

Any ideas?

Copied from original issue: igraph/igraph#965

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions