Skip to content

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

Closed

Description

@TariniHardikar

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>
    class FFMpegWriter(MovieWriter, FFMpegBase):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py", line 49, in wrapper
    if 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 loads
    return 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_string
    raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

Activity

  1. 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
  2. tacaswell commented on Apr 29, 2016

    @tacaswell
    Member

    Also see

    #5386
    #5314

    Can you please provide a minimal example which causes thes error?

  3. tacaswell commented on Apr 29, 2016

    @tacaswell
    Member

    It also looks like this is a python2 only bug, if you can switch to python3

  4. TariniHardikar commented on Apr 29, 2016

    @TariniHardikar
    Author

    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?

  5. QuLogic commented on Oct 22, 2016

    @QuLogic
    Member

    This is a dupe of the two bugs @tacaswell noted above.

    2.0 will require subprocess32 to work around this bug (see #6576.)

  6. added this to the milestone on Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions