Ask Your Question
1

dot2tex missing python module?

asked 2014-11-27 01:50:08 -0600

alfC gravatar image

I recently needed to run dot2texhttps://dot2tex.readthedocs.org , which I installed via yum install dot2tex in Fedora 20. To my surprise it didn't work. Apparently there is a module missing (noncomma). i think this is a bug but how can I install this module in Fedora 20?

Traceback (most recent call last):
  File "/usr/bin/dot2tex", line 2, in <module>
    from dot2tex.dot2tex import main
  File "/usr/lib/python2.7/site-packages/dot2tex/__init__.py", line 36, in <module>
    import dot2tex as d2t
  File "/usr/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 47, in <module>
    import dotparsing
  File "/usr/lib/python2.7/site-packages/dot2tex/dotparsing.py", line 26, in <module>
    from pyparsing import  (Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
ImportError: cannot import name _noncomma
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-11-27 07:37:49 -0600

FranciscoD_ gravatar image

updated 2014-11-27 07:39:28 -0600

Looks similar to this issue and would therefore probably be an upstream bug https://github.com/nlhepler/pydot-py3/issues/1

edit flag offensive delete link more

Comments

The fedora package may need an update or something. please file a bug so that the maintainer can check and figure out what is required.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-11-27 07:38:41 -0600 )edit
1

same problem with fc21

baoboa gravatar imagebaoboa ( 2014-11-27 16:01:09 -0600 )edit
1

pyparsing does'nt provide _noncomma (anymore ?) , removing it from dot2tex/dotparsing.py solve it , it look unused by dot2tex

baoboa gravatar imagebaoboa ( 2014-11-27 16:10:13 -0600 )edit
2

Yes, that solved the problem. I found the solution here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725066 , basically you have to change one line in ./lib/python2.7/site-packages/dot2tex/dotparsing.py

alfC gravatar imagealfC ( 2014-11-27 16:13:13 -0600 )edit

Did you file a bug? Please do if you didn't - it'll help all the other fedora users :)

FranciscoD_ gravatar imageFranciscoD_ ( 2014-11-28 17:22:47 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-11-27 01:50:08 -0600

Seen: 385 times

Last updated: Nov 27 '14