On 29.03.2014 20:49, leif wrote:
Ben Salisbury wrote:
Hi all,

It seems that my dot2tex no longer functions after upgrading to
6.2.beta5.

sage: C = crystals.Tableaux("B2",shape=[2,1])
sage: view(C)
dot2tex not available.  Install after running 'sage -sh'

I attempted to force a reinstallation of dot2tex via sage -i -f
dot2tex, which succeeded without any errors.  However, the same error
appears in Sage when trying to compile something with dot2tex.


Well, (re)try this with SAGE_CHECK=yes:

...
Successfully installed dot2tex-2.8.7.p2
Running the test suite for dot2tex-2.8.7.p2...
############################################################
spkg-check: Running test_buildexamples.py...
############################################################
Traceback (most recent call last):
   File "/Users/leif/Sage/sage-6.2.beta5/local/bin/dot2tex", line 2, in
<module>
     from dot2tex.dot2tex import main
   File
"/Users/leif/Sage/sage-6.2.beta5/local/lib/python2.7/site-packages/dot2tex/__init__.py",
line 36, in <module>
     import dot2tex as d2t
   File
"/Users/leif/Sage/sage-6.2.beta5/local/lib/python2.7/site-packages/dot2tex/dot2tex.py",
line 47, in <module>
     import dotparsing
   File
"/Users/leif/Sage/sage-6.2.beta5/local/lib/python2.7/site-packages/dot2tex/dotparsing.py",
line 26, in <module>
     import matplotlib.pyparsing as pyparsing
ImportError: No module named pyparsing
...


This is (once again ;-) ) due to #14993 [1] (matplotlib upgrade), merged
into beta5.

Matplotlib no longer ships pyparsing, so we presumably have to update
the dot2tex package accordingly.  And it would probably make sense to
add some tiny test to its spkg-install to avoid such issues in the
future (and/or slightly change the way dot2tex gets run from within
Sage, as the error message is misleading, not to say plain wrong).


-leif

[1] http://trac.sagemath.org/ticket/14993


P.S.: This is meanwhile http://trac.sagemath.org/ticket/16026 ("Upgrade dot2tex spkg and make it work with most recent matplotlib").


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to