Repository navigation
Closed
Description
I'm building the matplotlib 1.5 package for Anaconda on Windows. This is using the split structure with matplotlib and matplotlib-tests introduced by @mdboom. Tests run, but seem to hang. I killed it after several hours:
import: matplotlib
....EC:\aroot\stage\lib\site-packages\matplotlib\_pylab_helpers.py:96: ResourceWarning: unclosed file <_io.BufferedWriter name=5>
gc.collect(1)
C:\aroot\stage\lib\site-packages\matplotlib\_pylab_helpers.py:96: ResourceWarning: unclosed file <_io.BufferedReader name=7>
gc.collect(1)
C:\aroot\stage\lib\site-packages\matplotlib\_pylab_helpers.py:96: ResourceWarning: unclosed file <_io.BufferedReader name=6>
gc.collect(1)
KEKKKKK...KK.KK.....KK...KK.KK.KK.KK.....KK.KK.KK.KK...KK..........................KK.KK.KK.KK...KK.KK.KK.KK.KK.KK.KK.KK...KKC:\aroot\stage\lib\site-packages\dateutil\rrule.py:833: DeprecationWarning: fractions.gcd() is deprecated. Use math.gcd() instead.
i_gcd = gcd(self._interval, base)
..KK.KK.KK.KK.KK.KK.....KK.KK.KK..KK.KK.KK.KK.KK.KK.KK.KK.KK......KK........KK.KK.KK.KK.....KK...KK.KK.KK.KK.KK.KK..KK.KK.KK...KK...........KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.....KK...KK..KK.KK.KK.KK.............KK.KK.KK.KK.KK.KK.KK.KK.KK....KK......................................................KK....'gs' is not recognized as an internal or external command,
operable program or batch file.
'gs' is not recognized as an internal or external command,
operable program or batch file.
'latex' is not recognized as an internal or external command,
operable program or batch file.
'latex' is not recognized as an internal or external command,
operable program or batch file.
SSSSSSKKK....C:\aroot\stage\lib\site-packages\matplotlib\font_manager.py:1287: UserWarning: findfont: Font family ['Bitstream Vera Sans'] not found. Falling back to Helvetica
(prop.get_family(), self.defaultFamily[fontext]))
.............KKKKKKKKKKKKKKK.KK....K..KK.KK.KK.KK........................S
======================================================================
ERROR: matplotlib.tests.test_animation.test_save_animation_smoketest('imagemagick', 'gif')
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\aroot\stage\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\aroot\stage\lib\site-packages\matplotlib\testing\decorators.py", line 118, in wrapped_function
func(*args, **kwargs)
File "C:\aroot\stage\lib\site-packages\matplotlib\tests\test_animation.py", line 57, in check_save_animation
anim.save(F.name, fps=30, writer=writer, bitrate=500)
File "C:\aroot\stage\lib\site-packages\matplotlib\animation.py", line 780, in save
writer.grab_frame(**savefig_kwargs)
File "C:\aroot\stage\lib\site-packages\matplotlib\animation.py", line 225, in grab_frame
dpi=self.dpi, **savefig_kwargs)
File "C:\aroot\stage\lib\site-packages\matplotlib\figure.py", line 1539, in savefig
self.canvas.print_figure(*args, **kwargs)
File "C:\aroot\stage\lib\site-packages\matplotlib\backend_bases.py", line 2230, in print_figure
**kwargs)
File "C:\aroot\stage\lib\site-packages\matplotlib\backends\backend_agg.py", line 519, in print_raw
fileobj.write(renderer._renderer.buffer_rgba())
OSError: [Errno 22] Invalid argument
======================================================================
ERROR: matplotlib.tests.test_animation.test_save_animation_smoketest('imagemagick_file', 'gif')
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\aroot\stage\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\aroot\stage\lib\site-packages\matplotlib\testing\decorators.py", line 118, in wrapped_function
func(*args, **kwargs)
File "C:\aroot\stage\lib\site-packages\matplotlib\tests\test_animation.py", line 57, in check_save_animation
anim.save(F.name, fps=30, writer=writer, bitrate=500)
File "C:\aroot\stage\lib\site-packages\matplotlib\animation.py", line 780, in save
writer.grab_frame(**savefig_kwargs)
File "C:\aroot\stage\lib\contextlib.py", line 66, in __exit__
next(self.gen)
File "C:\aroot\stage\lib\site-packages\matplotlib\animation.py", line 191, in saving
self.finish()
File "C:\aroot\stage\lib\site-packages\matplotlib\animation.py", line 382, in finish
+ ' Try running with --verbose-debug')
RuntimeError: Error creating movie, return code: 4 Try running with --verbose-debug
----------------------------------------------------------------------
Ran 517 tests in 6983.421s
FAILED (KNOWNFAIL=207, SKIP=7, errors=2)
C:\aroot\stage\lib\site-packages\matplotlib\__init__.py:1350: UserWarning: This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
warnings.warn(_use_error_msg)
===== matplotlib-1.5.0 OK =====
Traceback (most recent call last):
File "C:\Users\builder\Miniconda2\Scripts\build-script.py", line 9, in <module>
load_entry_point('abts==0.0.0', 'console_scripts', 'build')()
File "z:\documents\code\anaconda\bt\build.py", line 428, in main
build(pkg, only_build = opts.only_build)
File "z:\documents\code\anaconda\bt\build.py", line 327, in build
test(pkg)
File "z:\documents\code\anaconda\bt\build.py", line 372, in test
env=env, cwd=tmp_dir)
File "C:\Users\builder\Miniconda2\lib\subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Users\builder\Miniconda2\lib\subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Users\builder\Miniconda2\lib\subprocess.py", line 1007, in wait
_subprocess.INFINITE)
KeyboardInterrupt
Metadata
Metadata
Assignees
Labels
No labels
Activity
mdboom commentedon Nov 9, 2015
Is ImageMagick installed? Perhaps it's not correctly detecting that it isn't...?
Cc: @cgohlke as our Windows expert. Have you ever seen this test fail in this way?
cgohlke commentedon Nov 9, 2015
As for Imagemagick, see https://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template#L509
I have to disable PEP8 tests for the tests to finish.
mdboom commentedon Nov 9, 2015
Do you have any thoughts about how we might detect that
convertis the system tool? Then we could update our ImageMagick detect function to return False in that case...WeatherGod commentedon Nov 9, 2015
We had to do something special for convert for animations at one point.
@dopplershift, do you recall that?
On Mon, Nov 9, 2015 at 11:56 AM, Michael Droettboom <
notifications@github.com> wrote:
dopplershift commentedon Nov 9, 2015
Only thing I can find is a mention on #1337. The solution was to force the path to imagemagick convert in matplotlibrc.
Would be nice to blacklist the system version, but the only way I can think of is to pass a new
%PATH%to subprocess on windows, modifying the environment one to remove system dirs....which sounds terrible.msarahan commentedon Nov 9, 2015
Test suite does not run for me specifying --omit-pep8 as outlined in docs at http://matplotlib.org/devel/testing.html:
Side note: it would be really nice to have these options pass-able to your matplotlib.test() function, not just as command-line flags.
jenshnielsen commentedon Nov 9, 2015
Try running it via
python tests.pythesetup.py testentry point have issues (#5315) and we are likely to get rid of it again (#5434)jenshnielsen commentedon Nov 9, 2015
Confusingly you need to add
--no-pep8rather than--omit-pep8totests.pymsarahan commentedon Nov 10, 2015
Just a little background info: @mdboom tried to split up tests from the Matplotlib package for Continuum. This complicated the situation a fair bit. The easiest solution for me ended up being to patch
matplotlib/__init__.pyand kill test_coding_standards directly there. I now just import matplotlib, and call matplotlib.tests()Closing this issue. @cgohlke thanks for the pep8 hint.
mdboom commentedon Nov 10, 2015
Just for the sake of clarity: The matplotlib tests were never run as part of the anaconda build before -- just a little import smoke test. So this is the first time tests have been running as part of anaconda builds as far as I know.
As far as an upstream fix (so the patch is no longer necessary), we could mark the pep8 test as knownfail on Windows.
So the ImageMagick problem was just a red herring that removing the PEP8 test resolved? Or are we still having issues with ImageMagick on Windows?
msarahan commentedon Nov 10, 2015
Good question. I installed imagemagick before I tried the pep8 stuff. It
didn't fix things, but I didn't remove it. There are still several errors
in testing, 2-3 of which mention imagemagick animations, but the build
system doesn't seem to care.
On Tue, Nov 10, 2015 at 12:43 PM Michael Droettboom <
notifications@github.com> wrote:
cgohlke commentedon Nov 10, 2015
Imagemagick convert works on Windows if
animation.convert_pathis set to the full path inmatplotlibrc, for example toX:\ImageMagick\convert(without quotes!).