Local-only matplotlib failure

38 views
Skip to first unread message

Joachim Durchholz

unread,
Jun 9, 2015, 9:44:45 AM6/9/15
to sy...@googlegroups.com
I'm getting a failure for matplotlib when running the test suite
locally, but not on Travis. I'm not sure whether that's a bug in
implicit_plot, or in the test suite, or whether I'm just missing an
installation dependency.

Here's the trace:

$ bin/test test_plot_implicit -k test_matplotlib
========================= test process starts ==========================
executable:
/home/jo/Projekte/sympy-workspace/python2.6.9/bin/python
(2.6.9-final-0) [CPython]
architecture: 64-bit
cache: yes
ground types: gmpy 2.0.5
random seed: 62402309
hash randomization: on (PYTHONHASHSEED=3575870938)

sympy/plotting/tests/test_plot_implicit.py[1] E [FAIL]

________________________________________________________________________
______ sympy/plotting/tests/test_plot_implicit.py:test_matplotlib ______
File
"/home/jo/Projekte/sympy-workspace/sympy-project/sympy/sympy/plotting/tests/test_plot_implicit.py",
line 70, in test_matplotlib
plot_and_save('test')
File
"/home/jo/Projekte/sympy-workspace/sympy-project/sympy/sympy/plotting/tests/test_plot_implicit.py",
line 22, in plot_and_save
plot_implicit(Eq(y, cos(x)), (x, -5, 5), (y, -2,
2)).save(tmp_file(name))
File "sympy/plotting/plot_implicit.py", line 375, in plot_implicit
p.show()
File "sympy/plotting/plot.py", line 185, in show
self._backend.show()
File "sympy/plotting/plot.py", line 1018, in show
self.process_series()
File "sympy/plotting/plot.py", line 921, in process_series
points = s.get_raster()
File "sympy/plotting/plot_implicit.py", line 81, in get_raster
temp = func(xinterval, yinterval)
File "<string>", line 1, in <lambda>
NameError: global name 'Eq' is not defined

===== tests finished: 0 passed, 1 exceptions, in 0.20 seconds ======
DO *NOT* COMMIT!

This is Python 2.6.9, with the following packages installed:

$ pip list
alabaster (0.7.2)
Babel (1.3)
docutils (0.12)
gmpy2 (2.0.5)
Jinja2 (2.7.3)
MarkupSafe (0.23)
matplotlib (1.4.3)
mock (1.0.1)
mpmath (0.19)
nose (1.3.6)
numpy (1.9.2)
pexpect (3.3)
pip (1.5.4)
Pygments (2.0.2)
pyparsing (2.0.3)
python-dateutil (2.4.2)
pytz (2014.10)
setuptools (2.2)
six (1.9.0)
snowballstemmer (1.2.0)
Sphinx (1.3)
sphinx-rtd-theme (0.1.7)
wsgiref (0.1.2)


Any thoughts?

Sudhanshu Mishra

unread,
Jun 9, 2015, 9:49:24 AM6/9/15
to sy...@googlegroups.com
Same here.

Sudhanshu Mishra



--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/5576EDC6.4060208%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

j.gont...@gmail.com

unread,
Jun 11, 2015, 2:32:00 PM6/11/15
to sy...@googlegroups.com
Yes, I also got this error. I think if matplotlib or something similar is not installed, the test is not run and that may be why this error does not appear on Travis (although I have no idea what Travis is).

j.gont...@gmail.com

unread,
Jun 11, 2015, 2:33:28 PM6/11/15
to sy...@googlegroups.com
I think this is actually the error we discussed about here:

https://groups.google.com/forum/#!searchin/sympy/gonthier/sympy/CxiRZWdW6KA/8pyTinsRWGgJ

Joachim Durchholz

unread,
Jun 11, 2015, 4:28:26 PM6/11/15
to sy...@googlegroups.com
Am 11.06.2015 um 20:33 schrieb j.gont...@gmail.com:
> I think this is actually the error we discussed about here:
>
> https://groups.google.com/forum/#!searchin/sympy/gonthier/sympy/CxiRZWdW6KA/8pyTinsRWGgJ

Bummer, you're right.

Did you open an Issue for this? It's really annoying.
Reply all
Reply to author
Forward
0 new messages