Opened 2 years ago

Closed 2 years ago

#28332 closed defect (fixed)

dot2tex fails self-tests

Reported by: tmonteil Owned by:
Priority: major Milestone: sage-8.9
Component: packages: optional Keywords: sdl
Cc: tscrim Merged in:
Authors: Thierry Monteil Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: 0692449 (Commits, GitHub, GitLab) Commit: 0692449eeda9d5084022a9364f233ff80ec0d9f2
Dependencies: Stopgaps:

Status badges

Description

Probably due to #27684, dot2tex fails to pass self-tests, both on 32 and 64 bits archs, sage -f -c dot2tex leads to:

[dot2tex-2.11.3.p0] Running the test suite for dot2tex-2.11.3.p0...
[dot2tex-2.11.3.p0] ############################################################
[dot2tex-2.11.3.p0] spkg-check: Running test_dot2tex.py...
[dot2tex-2.11.3.p0] ############################################################
[dot2tex-2.11.3.p0] ...............EE....EE..................................
[dot2tex-2.11.3.p0] ======================================================================
[dot2tex-2.11.3.p0] ERROR: test_head_label_pstricks (__main__.HeadAndTailLabelTest)
[dot2tex-2.11.3.p0] ----------------------------------------------------------------------
[dot2tex-2.11.3.p0] Traceback (most recent call last):
[dot2tex-2.11.3.p0]   File "test_dot2tex.py", line 412, in test_head_label_pstricks
[dot2tex-2.11.3.p0]     source = dot2tex.dot2tex(self.test_graph, autosize=True, format="pstricks")
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/__init__.py", line 62, in dot2tex
[dot2tex-2.11.3.p0]     return d2t.convert_graph(dotsource, **kwargs)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3125, in convert_graph
[dot2tex-2.11.3.p0]     tex = main(True, dotsource, options)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3075, in main
[dot2tex-2.11.3.p0]     s = conv.convert(dotdata)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 800, in convert
[dot2tex-2.11.3.p0]     return self.do_preview_preproc()
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 1062, in do_preview_preproc
[dot2tex-2.11.3.p0]     sys.exit(1)
[dot2tex-2.11.3.p0] SystemExit: 1
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] ======================================================================
[dot2tex-2.11.3.p0] ERROR: test_head_label_pstricks_duplicate (__main__.HeadAndTailLabelTest)
[dot2tex-2.11.3.p0] ----------------------------------------------------------------------
[dot2tex-2.11.3.p0] Traceback (most recent call last):
[dot2tex-2.11.3.p0]   File "test_dot2tex.py", line 436, in test_head_label_pstricks_duplicate
[dot2tex-2.11.3.p0]     source = dot2tex.dot2tex(self.test_graph, autosize=True, format="pstricks", duplicate=True)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/__init__.py", line 62, in dot2tex
[dot2tex-2.11.3.p0]     return d2t.convert_graph(dotsource, **kwargs)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3125, in convert_graph
[dot2tex-2.11.3.p0]     tex = main(True, dotsource, options)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3075, in main
[dot2tex-2.11.3.p0]     s = conv.convert(dotdata)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 800, in convert
[dot2tex-2.11.3.p0]     return self.do_preview_preproc()
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 1062, in do_preview_preproc
[dot2tex-2.11.3.p0]     sys.exit(1)
[dot2tex-2.11.3.p0] SystemExit: 1
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] ======================================================================
[dot2tex-2.11.3.p0] ERROR: test_tail_label_pstricks (__main__.HeadAndTailLabelTest)
[dot2tex-2.11.3.p0] ----------------------------------------------------------------------
[dot2tex-2.11.3.p0] Traceback (most recent call last):
[dot2tex-2.11.3.p0]   File "test_dot2tex.py", line 424, in test_tail_label_pstricks
[dot2tex-2.11.3.p0]     source = dot2tex.dot2tex(self.test_graph, autosize=True, format="pstricks")
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/__init__.py", line 62, in dot2tex
[dot2tex-2.11.3.p0]     return d2t.convert_graph(dotsource, **kwargs)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3125, in convert_graph
[dot2tex-2.11.3.p0]     tex = main(True, dotsource, options)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3075, in main
[dot2tex-2.11.3.p0]     s = conv.convert(dotdata)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 800, in convert
[dot2tex-2.11.3.p0]     return self.do_preview_preproc()
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 1062, in do_preview_preproc
[dot2tex-2.11.3.p0]     sys.exit(1)
[dot2tex-2.11.3.p0] SystemExit: 1
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] ======================================================================
[dot2tex-2.11.3.p0] ERROR: test_tail_label_pstricks_duplicate (__main__.HeadAndTailLabelTest)
[dot2tex-2.11.3.p0] ----------------------------------------------------------------------
[dot2tex-2.11.3.p0] Traceback (most recent call last):
[dot2tex-2.11.3.p0]   File "test_dot2tex.py", line 448, in test_tail_label_pstricks_duplicate
[dot2tex-2.11.3.p0]     source = dot2tex.dot2tex(self.test_graph, autosize=True, format="pstricks", duplicate=True)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/__init__.py", line 62, in dot2tex
[dot2tex-2.11.3.p0]     return d2t.convert_graph(dotsource, **kwargs)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3125, in convert_graph
[dot2tex-2.11.3.p0]     tex = main(True, dotsource, options)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 3075, in main
[dot2tex-2.11.3.p0]     s = conv.convert(dotdata)
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 800, in convert
[dot2tex-2.11.3.p0]     return self.do_preview_preproc()
[dot2tex-2.11.3.p0]   File "/opt/sagemath/sage-source/local/lib/python2.7/site-packages/dot2tex/dot2tex.py", line 1062, in do_preview_preproc
[dot2tex-2.11.3.p0]     sys.exit(1)
[dot2tex-2.11.3.p0] SystemExit: 1
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] ----------------------------------------------------------------------
[dot2tex-2.11.3.p0] Ran 57 tests in 5.814s
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] FAILED (errors=4)
[dot2tex-2.11.3.p0] ############################################################
[dot2tex-2.11.3.p0] spkg-check: Running test_dotparsing.py...
[dot2tex-2.11.3.p0] ############################################################
[dot2tex-2.11.3.p0] ................
[dot2tex-2.11.3.p0] ----------------------------------------------------------------------
[dot2tex-2.11.3.p0] Ran 16 tests in 0.001s
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] OK
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] Error(s) running dot2tex's test suite.
[dot2tex-2.11.3.p0] 
[dot2tex-2.11.3.p0] real	0m5.918s
[dot2tex-2.11.3.p0] user	0m5.581s
[dot2tex-2.11.3.p0] sys	0m0.347s
[dot2tex-2.11.3.p0] ************************************************************************
[dot2tex-2.11.3.p0] Error testing package dot2tex-2.11.3.p0
[dot2tex-2.11.3.p0] ************************************************************************

Change History (6)

comment:1 Changed 2 years ago by tmonteil

  • Authors set to Thierry Monteil
  • Keywords sdl added

OK, pstricks is a new depedency of dot2tex self-tests.

comment:2 Changed 2 years ago by tmonteil

  • Branch set to u/tmonteil/dot2tex_fails_self_tests

comment:3 Changed 2 years ago by tmonteil

  • Commit set to 0692449eeda9d5084022a9364f233ff80ec0d9f2
  • Status changed from new to needs_review

New commits:

0692449#28332: self-tests dependencies

comment:4 Changed 2 years ago by tscrim

  • Authors changed from Thierry Monteil to Travis Scrimshaw
  • Reviewers set to Travis Scrimshaw
  • Status changed from needs_review to positive_review

Okay, that would explain why I remember it passing all of its tests when I upgraded the spkg. I have a full texlive install on my computer because I need it for writing my papers. Thank you for figuring out what changed.

comment:5 Changed 2 years ago by tmonteil

  • Authors changed from Travis Scrimshaw to Thierry Monteil

comment:6 Changed 2 years ago by vbraun

  • Branch changed from u/tmonteil/dot2tex_fails_self_tests to 0692449eeda9d5084022a9364f233ff80ec0d9f2
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.