Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mencoder tests fail #2678

Closed
tacaswell opened this issue Dec 12, 2013 · 3 comments · Fixed by #4005
Closed

mencoder tests fail #2678

tacaswell opened this issue Dec 12, 2013 · 3 comments · Fixed by #4005
Assignees
Milestone

Comments

@tacaswell
Copy link
Member

With the following message:

...E..E.
======================================================================
ERROR: matplotlib.tests.test_animation.test_save_animation_smoketest('mencoder', u'mp4')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/tests/test_animation.py", line 53, in check_save_animation
    anim.save(F.name, fps=30, writer=writer)
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 719, in save
    with writer.saving(self._fig, filename, dpi):
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 175, in saving
    self.setup(*args)
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 165, in setup
    self._run()
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 192, in _run
    stdin=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

======================================================================
ERROR: matplotlib.tests.test_animation.test_save_animation_smoketest('mencoder_file', u'mp4')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/tests/test_animation.py", line 53, in check_save_animation
    anim.save(F.name, fps=30, writer=writer)
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 725, in save
    writer.grab_frame(**savefig_kwargs)
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 177, in saving
    self.finish()
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 332, in finish
    self._run()
  File "/home/tcaswell/local_installs/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/animation.py", line 192, in _run
    stdin=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

----------------------------------------------------------------------
Ran 8 tests in 6.116s

FAILED (errors=2)
@WeatherGod
Copy link
Member

Could this simply just be that mencoder wasn't installed? There should be logic already, though, to detect this and choose ffmpeg instead, I think.

@tacaswell
Copy link
Member Author

It could be that, but then there is something wrong with the logic that registers the writers.

@dopplershift
Copy link
Contributor

I think I've fixed this in #4005.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants