#14594: Make dot2tex work with matplotlib 1.2.x (as well as older versions)
------------------------------------------+---------------------------------
       Reporter:  aschilling              |         Owner:  sage-combinat   
           Type:  defect                  |        Status:  needs_review    
       Priority:  critical                |     Milestone:  sage-5.10       
      Component:  packages: optional      |    Resolution:                  
       Keywords:  dot2tex spkg pyparsing  |   Work issues:                  
Report Upstream:  N/A                     |     Reviewers:  Travis Scrimshaw
        Authors:  Leif Leonhardy          |     Merged in:                  
   Dependencies:                          |      Stopgaps:                  
------------------------------------------+---------------------------------
Changes (by leif):

  * status:  needs_info => needs_review
  * work_issues:  Update `SPKG.txt`, add `src/` to `.hgignore`, probably
                  remove upstream history =>


Old description:

> Since sage-5.10.beta2 there is a problem with the detection of dot2tex.
> Even with dot2tex installed  via
> {{{
>     sage -f
> http://sage.math.washington.edu/home/nthiery/dot2tex-2.8.7-2.spkg
> }}}
> it is not detected any longer:
> {{{
>     sage: import dot2tex
>     ...
>     ImportError: No module named pyparsing
> }}}
> This is crucial though since in combinatorics we heavily rely on being
> able to draw pictures:
> {{{
>     sage: B = CrystalOfTableaux(['A',2],shape=[1])
>     sage: view(B)
>     dot2tex not available.  Install after running 'sage -sh'
> }}}
>
> dot2tex indeed needs pyparsing. And pyparsing used to ship with
> matplotlib, but apparently the new version of matplotlib does not
> include it anymore. So one need to install it somehow.
>
> Comment by Paul-Olivier: It should be pyparsing 1.5?.x and not 2.x as
> that's only in python 3.

New description:

 Since sage-5.10.beta2 there is a problem with the detection of dot2tex.
 Even with dot2tex installed  via
 {{{
     sage -f
 http://sage.math.washington.edu/home/nthiery/dot2tex-2.8.7-2.spkg
 }}}
 it is not detected any longer:
 {{{
     sage: import dot2tex
     ...
     ImportError: No module named pyparsing
 }}}
 This is crucial though since in combinatorics we heavily rely on being
 able to draw pictures:
 {{{
     sage: B = CrystalOfTableaux(['A',2],shape=[1])
     sage: view(B)
     dot2tex not available.  Install after running 'sage -sh'
 }}}

 dot2tex indeed needs pyparsing. And pyparsing used to ship with
 matplotlib, but apparently the new version of matplotlib does not
 include it anymore. So one need to install it somehow.

 Comment by Paul-Olivier: It should be pyparsing 1.5?.x and not 2.x as
 that's only in python 3.

 ----

 '''New spkg:'''
 [http://boxen.math.washington.edu/home/leif/Sage/spkgs/dot2tex-2.8.7.p2.spkg]

 '''md5sum:''' `d096c3eec2a2f3bdd74a3e31b5c6872d  dot2tex-2.8.7.p2.spkg`

 === dot2tex-2.8.7.p2 (Leif Leonhardy, May 20th 2013) ===
  * #14594: Make dot2tex work with matplotlib 1.2.x (as well as older
 versions)
    Update `patches/use-matplotlib-pyparsing.patch` to either import
    `matplotlib.pyparsing` or `matplotlib.pyparsing_py2`.
  * Clean up `spkg-install` and `spkg-check`.
    Apply patches from within `src/` (still with `-p1`).
    Let `spkg-check` exit with an error if *any* of the tests failed, not
 just
    the last one.
  * Update / fix `SPKG.txt`, also adding some entries in standard format
 for
    previous (now tagged) spkg versions.
  * Add patch to `tests/test_comparedotparsing.py` skipping comparisons to
    non-existent (i.e., missing) reference files.
  * Add patch to `tests/test_buildexamples.py` fixing the build order,
 since
    otherwise `graphofgraphs.tex`, which includes the output of other
 examples,
    fails to build.

--

Comment:

 Just for the record, the
 [http://boxen.math.washington.edu/home/leif/Sage/spkgs/dot2tex-2.8.7.p1.spkg
 .p1 spkg] is a remake of Nicolas' `dot2tex-2.8.7-2.spkg`, with all traces
 of upstream files removed from the Mercurial history (and `src/` now in
 `.hgignore`), and some tags added.

 For the
 [http://boxen.math.washington.edu/home/leif/Sage/spkgs/dot2tex-2.8.7.p2.spkg
 new .p2 spkg] with my fixes, based on the above-mentioned `.p1`, see the
 ticket's description; [attachment:dot2tex-2.8.7.p1-p2.diff diff for easier
 reviewing] also attached.  Please build, test, and report! ;-)

 (Supposed to work with older Sage / matplotlib versions as well.)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14594#comment:35>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to