Loading

Paste #p1qdevgdt

  1. >>> g = pydot.graph_from_dot_file('test.dot')
  2. Traceback (most recent call last):
  3.   File "<stdin>", line 1, in <module>
  4.   File "/usr/lib/python3/dist-packages/pydot.py", line 235, in graph_from_dot_file
  5.     return graph_from_dot_data(data)
  6.   File "/usr/lib/python3/dist-packages/pydot.py", line 220, in graph_from_dot_data
  7.     return dot_parser.parse_dot_data(data)
  8.   File "/usr/lib/python3/dist-packages/dot_parser.py", line 520, in parse_dot_data
  9.     tokens = graphparser.parseString(data)
  10.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 1115, in parseString
  11.     loc, tokens = self._parse( instring, 0 )
  12.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 983, in _parseNoCache
  13.     preloc = self.preParse( instring, loc )
  14.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 940, in preParse
  15.     loc = self._skipIgnorables( instring, loc )
  16.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 932, in _skipIgnorables
  17.     loc,dummy = e._parse( instring, loc )
  18.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 989, in _parseNoCache
  19.     loc,tokens = self.parseImpl( instring, preloc, doActions )
  20.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 2624, in parseImpl
  21.     return self.expr._parse( instring, loc, doActions, callPreParse=False )
  22.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 989, in _parseNoCache
  23.     loc,tokens = self.parseImpl( instring, preloc, doActions )
  24.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 2483, in parseImpl
  25.     ret = e._parse( instring, loc, doActions )
  26.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 983, in _parseNoCache
  27.     preloc = self.preParse( instring, loc )
  28.   File "/usr/lib/python3/dist-packages/pyparsing.py", line 945, in preParse
  29.     while loc < instrlen and instring[loc] in wt:
  30. TypeError: 'in <string>' requires string as left operand, not int

Comments