ImportError: cannot import name _noncomma

Bug #1255883 reported by Matthias Grzeschik
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dot2tex (Debian)
Fix Released
Unknown
dot2tex (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Using the LaTeX package dot2texi I got the error message:

Opening dot2tex stream hierarchicalModels-dot2tex-fig1.dotTraceback (most recent call last):
  File "/usr/bin/dot2tex", line 2, in <module>
    from dot2tex.dot2tex import main
  File "/usr/lib/pymodules/python2.7/dot2tex/__init__.py", line 36, in <module>
    import dot2tex as d2t
  File "/usr/lib/pymodules/python2.7/dot2tex/dot2tex.py", line 47, in <module>
    import dotparsing
  File "/usr/lib/pymodules/python2.7/dot2tex/dotparsing.py", line 26, in <module>
    from pyparsing import (Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
ImportError: cannot import name _noncomma

The expected figure is missing in the resulting document.

Removing an unused import in /usr/lib/pymodules/python2.7/dot2tex/dotparsing.py solves this issue in my case:

--- /usr/lib/pymodules/python2.7/dot2tex/dotparsing.py_orig 2013-11-28 09:19:59.833881987 +0100
+++ /usr/lib/pymodules/python2.7/dot2tex/dotparsing.py 2013-11-28 10:01:18.633962941 +0100
@@ -26,7 +26,7 @@
 from pyparsing import (Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
     Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
     restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,
- ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement,
+ ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement,
     Suppress,Regex,removeQuotes)

 dot_keywords = ['graph', 'subgraph', 'digraph', 'node', 'edge', 'strict']

I'm using:

$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
$ apt-cache policy dot2tex
dot2tex:
  Installed: 2.8.7+repack-1
  Candidate: 2.8.7+repack-1
  Version table:
 *** 2.8.7+repack-1 0
        500 http://ftp5.gwdg.de/pub/linux/debian/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: dot2tex 2.8.7+repack-1 [modified: usr/share/pyshared/dot2tex/dotparsing.py]
ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
Uname: Linux 3.11.0-13-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Thu Nov 28 09:43:58 2013
MarkForUpload: True
PackageArchitecture: all
SourcePackage: dot2tex
UpgradeStatus: Upgraded to saucy on 2013-11-02 (26 days ago)

Revision history for this message
Matthias Grzeschik (s-schwampf) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I can confirm that dot2tex crash with the same error message on Ubuntu Trusty. I also found that this bug has been reported upstream to Debian, so I attached a bug watch)

Changed in dot2tex (Ubuntu):
status: New → Confirmed
tags: added: patch trusty
Changed in dot2tex (Debian):
status: Unknown → New
Changed in dot2tex (Debian):
status: New → Fix Released
Revision history for this message
Javier López (javier-lopez) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Trusty Thar.

If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

apt-cache policy dot2tex
dot2tex:
  Installed: 2.8.7+repack-1.1
  Candidate: 2.8.7+repack-1.1
  Version table:
 *** 2.8.7+repack-1.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in dot2tex (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.