[Python-modules-team] Bug#596071: Bug#596071: python-pygraphviz: weird behaviour when naming file to read 'graph.dot'
Sandro Tosi
morph at debian.org
Sat Sep 18 10:54:35 UTC 2010
forwarded 596071 https://networkx.lanl.gov/trac/ticket/428
thanks
Hello Alexander,
thanks for your report.
On Wed, Sep 8, 2010 at 15:57, Alexander Heinlein
<alexander.heinlein at web.de> wrote:
> Package: python-pygraphviz
> Version: 1.0-1
> Severity: normal
>
> Hi,
>
> When loading a graph from a file and using 'graph.dot' as the filename, the
> program acts very weird and always reports:
> Warning: syntax error in line 1 near '.'
> Although there is no syntax error. Renaming the file from 'graph.dot' so
> something other like "g.dot" doesn't issue the error and loads the file
> correctly.
>
> example file:
> graph s {
> a -- b
> }
>
> example script:
> #!/usr/bin/python
> import pygraphviz
> g = pygraphviz.AGraph("graph.dot")
> print sorted(g.edges())
Indeed I can replicate the problem, hence I've just forwarded the bug upstream.
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
More information about the Python-modules-team
mailing list