Skip to content

Error occurs when I try to run PyGameofLife #2

@asherhe

Description

@asherhe

When I try to run PyGameofLife with python life.py, I get this error message:

C:\Path\To\File\Ommited\For\Privacy\PyGameofLife>python life.py
MovieWriter imagemagick unavailable. Trying to use ffmpeg instead.
Traceback (most recent call last):
  File "C:\Python37\lib\site-packages\matplotlib\animation.py", line 376, in grab_frame
    dpi=self.dpi, **savefig_kwargs)
  File "C:\Python37\lib\site-packages\matplotlib\figure.py", line 2094, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "C:\Python37\lib\site-packages\matplotlib\backend_bases.py", line 2075, in print_figure
    **kwargs)
  File "C:\Python37\lib\site-packages\matplotlib\backends\backend_agg.py", line 465, in print_raw
    fh.write(renderer._renderer.buffer_rgba())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "life.py", line 176, in <module>
    save=True,
  File "life.py", line 126, in animate_life
    im_ani.save((str(seed) + ".gif"), writer="imagemagick")
  File "C:\Python37\lib\site-packages\matplotlib\animation.py", line 1174, in save
    writer.grab_frame(**savefig_kwargs)
  File "C:\Python37\lib\site-packages\matplotlib\animation.py", line 383, in grab_frame
    'DEBUG.'.format(e, out, err))
OSError: Error saving animation to file (cause: [Errno 32] Broken pipe) Stdout: b'' StdError: b''. It may help to re-run with logging level set to DEBUG.

I'm running on a Windows 10, on Python 3.7.2, with Numpy 1.15.4 and Matplotlib 3.0.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions