unable to load pgp.xml
hi all, i am new to graph tool, and i encounter a problem i got the performance test files from http://graph-tool.skewed.de/performance when i run gt_bench.py, it shows [zhaojun@fedora performance]$ python gt_bench.py Traceback (most recent call last): File "gt_bench.py", line 6, in <module> g = load_graph("pgp.xml") File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 2352, in load_graph g.load(file_name, fmt, ignore_vp, ignore_ep, ignore_gp) File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 1989, in load ignore_ep, ignore_gp)IOError: error reading from file 'pgp.xml':parse error: on line 1, column 0: not well-formed (invalid token) i have no idea whether it is something related with the formate of xml file or with the graph tool API i installed thanks Zhao Jun
i solved it i have to gunzip the file twice! first you should download the file pgp.xml.gz from the link mentioned before -gunzip pgp.xml.gz to pgp.xml-rename pgp.xml to pgp.xml.gz-gunzip pgp.xml.gz to pgp.xmlafter finishing above 3 steps, you can run gt_bench.py to test performance thanks Zhao Jun From: zhaojun12@outlook.com To: graph-tool@skewed.de Date: Mon, 13 Apr 2015 10:31:04 +0800 Subject: [graph-tool] unable to load pgp.xml hi all, i am new to graph tool, and i encounter a problem i got the performance test files from http://graph-tool.skewed.de/performance when i run gt_bench.py, it shows [zhaojun@fedora performance]$ python gt_bench.py Traceback (most recent call last): File "gt_bench.py", line 6, in <module> g = load_graph("pgp.xml") File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 2352, in load_graph g.load(file_name, fmt, ignore_vp, ignore_ep, ignore_gp) File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 1989, in load ignore_ep, ignore_gp)IOError: error reading from file 'pgp.xml':parse error: on line 1, column 0: not well-formed (invalid token) i have no idea whether it is something related with the formate of xml file or with the graph tool API i installed thanks Zhao Jun _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 13.04.2015 09:57, 俊 赵 wrote:
i solved it
i have to gunzip the file twice!
first you should download the file pgp.xml.gz from the link mentioned before
-gunzip pgp.xml.gz to pgp.xml -rename pgp.xml to pgp.xml.gz -gunzip pgp.xml.gz to pgp.xml
after finishing above 3 steps, you can run gt_bench.py to test performance
Do you use firefox? This might be due to a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=610679 The file is downloaded correctly if I use wget. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
yes, using wget can download the file correctly when i tried just now i am using fedora 21, firefox 37.0.1 and chrome 41.0.2272.101, both of whick have the problem i mentioned above thanks Zhao Jun Date: Mon, 13 Apr 2015 18:20:12 +0300 From: tiago@skewed.de To: graph-tool@skewed.de Subject: Re: [graph-tool] unable to load pgp.xml On 13.04.2015 09:57, 俊 赵 wrote:
i solved it
i have to gunzip the file twice!
first you should download the file pgp.xml.gz from the link mentioned before
-gunzip pgp.xml.gz to pgp.xml -rename pgp.xml to pgp.xml.gz -gunzip pgp.xml.gz to pgp.xml
after finishing above 3 steps, you can run gt_bench.py to test performance
Do you use firefox? This might be due to a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=610679 The file is downloaded correctly if I use wget. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
participants (2)
-
Tiago de Paula Peixoto -
俊 赵