You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When I run a file that uses matplolib animation, I keep getting this error. Using OS X, Python 2.7, installed Python from python.org then used homebrew. Matplotlib install from pip. #6348
To help us understand and resolve your issue please check that you have provided
the information below.
Matplotlib version, Python version and Platform (Windows, OSX, Linux ...)
How did you install Matplotlib and Python (pip, anaconda, from source ...)
If possible please supply a Short, Self Contained, Correct, Example
that demonstrates the issue i.e a small piece of code which reproduces the issue
and can be run with out any other (or as few as possible) external dependencies.
If this is an image generation bug attach a screenshot demonstrating the issue.
If this is a regression (Used to work in an earlier version of Matplotlib), please
note where it used to work.
Error:
Traceback (most recent call last):
File "HOstates.py", line 20, in <module>import matplotlib.animation as animation
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py", line 365, in <module>classFFMpegWriter(MovieWriter, FFMpegBase):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py", line 49, in wrapperif writerClass.isAvailable():
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py", line 239, in isAvailable
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1334, in _execute_child
child_exception = pickle.loads(data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1388, in loadsreturn Unpickler(file).load()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 972, in load_stringraiseValueError, "insecure string pickle"ValueError: insecure string pickle
changed the title [-]When I run a file that uses matplolib animation, I keep getting this error:[/-][+]When I run a file that uses matplolib animation, I keep getting this error. Using OS X, Python 2.7, installed Python from python.org then used homebrew. Matplotlib install from pip. [/+]on Apr 29, 2016
import numpy as np
import matplotlib ##To get blit working
matplotlib.use('TkAgg') ##
from matplotlib import pyplot as pl
from matplotlib import animation
I'm not sure why, but there is some error with matplotlib animation. Everything else works fine. Is it a version issue?
Activity
[-]When I run a file that uses matplolib animation, I keep getting this error:[/-][+]When I run a file that uses matplolib animation, I keep getting this error. Using OS X, Python 2.7, installed Python from python.org then used homebrew. Matplotlib install from pip. [/+]tacaswell commentedon Apr 29, 2016
Also see
#5386
#5314
Can you please provide a minimal example which causes thes error?
tacaswell commentedon Apr 29, 2016
It also looks like this is a python2 only bug, if you can switch to python3
TariniHardikar commentedon Apr 29, 2016
import numpy as np
import matplotlib ##To get blit working
matplotlib.use('TkAgg') ##
from matplotlib import pyplot as pl
from matplotlib import animation
I'm not sure why, but there is some error with matplotlib animation. Everything else works fine. Is it a version issue?
QuLogic commentedon Oct 22, 2016
This is a dupe of the two bugs @tacaswell noted above.
2.0 will require
subprocess32to work around this bug (see #6576.)