[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Unable to save graphml file
From: |
Stephen Ray |
Subject: |
Re: [igraph] Unable to save graphml file |
Date: |
Fri, 11 Jan 2013 23:57:45 +0000 |
Some more information.
I switched to Python 2.7 and I am now able to save graphml, ncol, and gml files.
The code you suggested that opens a file and then writes the graph back now
throws the following exception:
Traceback (most recent call last): File
"C:\Subversion\PythonGraphMetrics\PythonGraphMetrics\main.py", line 38, in
<module> sys.exit(_main())
File "C:\Subversion\PythonGraphMetrics\PythonGraphMetrics\main.py", line 29,
in _main execute()
File
"C:\Subversion\PythonGraphMetrics\PythonGraphMetrics\igraph_tutorial.py", line
232, in execute fg.write_graphml(f)
InternalError: Error at .\src\foreign-graphml.c:1089: Write failed, File
operation error
So this looks like something localized to Python 3.2.
The good news is I can continue in Python 2.7.
Steve R
-----Original Message-----
From: Stephen Ray
Sent: Friday, January 11, 2013 6:13 PM
To: Help for igraph users
Subject: RE: [igraph] Unable to save graphml file
Thanks for the quick response.
write_ncol, and write_gml both result in empty files. Opening the existing
empty file and writing the graph out results in an empty file still.
I am also seeing the python interpreter crash now. In the Windows application
error log the following event is being logged:
Faulting application name: python.exe, version: 0.0.0.0, time stamp: 0x4f851387
Faulting module name: MSVCR90.dll, version: 9.0.30729.6161, time stamp:
0x4dace5b9 Exception code: 0xc0000417 Fault offset: 0x00069cf1 Faulting process
id: 0x2fd4 Faulting application start time: 0x01cdf050590c1943 Faulting
application path: C:\Python32\python.exe Faulting module path:
C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
Report Id: a3f9b02b-5c43-11e2-b8e3-f0def17c2957
I am running on 64-bit windows by the way with Python 3.2 23-bit and igraph
installed from python-igraph-0.6.win32-py3.2.msi.
I've been working through the tutorial on the igraph site and everything worked
without a hitch up until trying to save graphs.
Steve R
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Tamás Nepusz
Sent: Friday, January 11, 2013 5:18 PM
To: Help for igraph users
Subject: Re: [igraph] Unable to save graphml file
Hi,
Could be a bug but I'm not sure and unfortunately we don't have any Windows 7
machines to test on. Can you please try it with other formats (e.g.,
write_ncol, write_gml and so on)? Does it work with them or do you get empty
files?
Also, can you please try this:
f = open("gf.graphml")
fg.write_graphml(f)
f.flush()
f.close()
Cheers,
Tamas
On 11 Jan 2013, at 23:13, Stephen Ray <address@hidden> wrote:
> My environment is Python 3.2, igraph 0.6, and Windows 7.
>
> The following code creates an empty file:
> fg = igraph.Graph.Full(10)
> fg.write_graphml("gf.graphml")
>
> I have tried opening a file directly but that has the same affect.
>
> Does anyone have any ideas of the reason for this?
>
> Stephen Ray
> Chief Technology Officer
> Cobb Systems Group, LLC
> Rockville Innovation Center
> 155 Gibbs Street
> Suite 514
> Rockville, MD 20850
> United States of America
>
> Office: 301-515-1230
> Cell: 240-888-6507
>
> _______________________________________________
> 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