<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31416</bug_id>
          
          <creation_ts>2015-10-29 17:14:35 +0300</creation_ts>
          <short_desc>ImportError: cannot import name _noncomma (from pyparsing)</short_desc>
          <delta_ts>2017-11-04 13:37:23 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Autoimports (Sisyphus)</product>
          <component>dot2tex</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>31414</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="viy">viy</assigned_to>
          <cc>george</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="viy">viy</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>153338</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-10-29 17:14:35 +0300</bug_when>
    <thetext>dot2tex-2.8.7-alt1_11
python-module-pyparsing-2.0.3-alt1

dot2tex fails to run because of an unsatisfied import from python-module-pyparsing .

(Of course, this problem could be prevented if RPM&apos;s automatic reqs/provs for python modules were more fine-grained: listing all the individual imported and exported names;  but this is heavy, it&apos;s like set-versions for C libraries. I don&apos;t know whether some minimal required versions of python-modules can be automatically extracted from the code. Can&apos;t this be checked when re-compiling the broken package. E.g., when re-compiling dot2tex in Sisyphus, shouldn&apos;t this error be detected?)

For example, when doing &quot;make&quot; in https://github.com/rominf/latex-g7-32 (which calls dot2tex; mentioned in https://bugzilla.altlinux.org/show_bug.cgi?id=31414 ), the following errors happen:

make -k 
mkdir -p tex/inc/dia
dia -e tex/inc/dia/rpz-idef0.eps -t eps-pango graphics/dia/rpz-idef0.dia
graphics/dia/rpz-idef0.dia --&gt; tex/inc/dia/rpz-idef0.eps
epstopdf --outfile tex/inc/dia/rpz-idef0.pdf tex/inc/dia/rpz-idef0.eps
mkdir -p tex/inc/dot
dot2tex -f pgf --crop --docpreamble &quot;\usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english, russian]{babel}&quot; --preproc graphics/dot/cow2.dot | dot2tex -f pgf --crop --docpreamble &quot;\usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english, russian]{babel}&quot;  &gt; tex/inc/dot/cow2.tex
Traceback (most recent call last):
  File &quot;/usr/bin/dot2tex&quot;, line 2, in &lt;module&gt;
    from dot2tex.dot2tex import main
  File &quot;/usr/lib/python2.7/site-packages/dot2tex/__init__.py&quot;, line 36, in &lt;module&gt;
    import dot2tex as d2t
  File &quot;/usr/lib/python2.7/site-packages/dot2tex/dot2tex.py&quot;, line 47, in &lt;module&gt;
    import dotparsing
  File &quot;/usr/lib/python2.7/site-packages/dot2tex/dotparsing.py&quot;, line 26, in &lt;module&gt;
    from pyparsing import  (Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
ImportError: cannot import name _noncomma
Traceback (most recent call last):
  File &quot;/usr/bin/dot2tex&quot;, line 2, in &lt;module&gt;
    from dot2tex.dot2tex import main
  File &quot;/usr/lib/python2.7/site-packages/dot2tex/__init__.py&quot;, line 36, in &lt;module&gt;
    import dot2tex as d2t
  File &quot;/usr/lib/python2.7/site-packages/dot2tex/dot2tex.py&quot;, line 47, in &lt;module&gt;
    import dotparsing
  File &quot;/usr/lib/python2.7/site-packages/dot2tex/dotparsing.py&quot;, line 26, in &lt;module&gt;
    from pyparsing import  (Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
ImportError: cannot import name _noncomma
make: *** [tex/inc/dot/cow2.tex] Error 1
make: Target `all&apos; not remade because of errors.
rm tex/inc/dot/cow2.tex tex/inc/dia/rpz-idef0.eps</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153369</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-10-30 11:04:52 +0300</bug_when>
    <thetext>О, а вот и π-баг с символичными фигурантами :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153390</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-10-31 14:18:25 +0300</bug_when>
    <thetext>dot2tex does not use _noncomma anywhere, the import should be removed. See attached patch. -- http://code.google.com/p/dot2tex/issues/detail?id=38

https://ask.fedoraproject.org/en/question/58772/dot2tex-missing-python-module/
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725066
https://bugs.launchpad.net/ubuntu/+source/dot2tex/+bug/1255883</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153392</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-10-31 14:33:43 +0300</bug_when>
    <thetext>A quick workaround: install python-module-pyparsing=1.5.7-alt1 from t7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166945</commentid>
    <comment_count>4</comment_count>
    <who name="viy">viy</who>
    <bug_when>2017-11-04 13:36:48 +0300</bug_when>
    <thetext>dot2tex перемещен в autoimports, в текущей версии проблема решена</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166946</commentid>
    <comment_count>5</comment_count>
    <who name="viy">viy</who>
    <bug_when>2017-11-04 13:37:23 +0300</bug_when>
    <thetext>dot2tex-2.8.7-alt1_15.src.rpm</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>