pbfy0 / visvis

Automatically exported from code.google.com/p/visvis
Other
0 stars 0 forks source link

Patch for /vvmovie/images2gif.py #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Python 3 string->byte encoding fix for use in writing animated gifs
-Numpy stuff still broken.

Original issue reported on code.google.com by Blacken...@gmail.com on 29 Jun 2013 at 9:35

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch, but this breaks the code for Python 2.x. I think it would 
be better to make sure that header et al. are bytes in the first place. 

Original comment by almar.klein@gmail.com on 1 Jul 2013 at 3:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry, not aware your project is on python 2.x. Somewhat new to python - 
thought print() (print statement as a function instead of keyword) was python 3 
only.

Was just hacking it together for teaching purpose

Original comment by Blacken...@gmail.com on 1 Jul 2013 at 4:46

GoogleCodeExporter commented 9 years ago
Well, visvis aims to run on Python 2.x and 3.x.  The fact that this is not
the case for the images2gif module is that PIL is not available in Python
3.x --- I know that Pillow is, but I seem to get errors with it when trying
to create an image from a numpy array.

- Almar

Original comment by almar.klein@gmail.com on 1 Jul 2013 at 6:37

GoogleCodeExporter commented 9 years ago
I strongly suspect that the problem you're having with Pillow is bug #224 
(https://github.com/python-imaging/Pillow/pull/224), which was added in 2.0.0 
and fixed in 2.1.0. So, you might want to upgrade Pillow and try again.

Original comment by abarn...@gmail.com on 20 Aug 2013 at 1:17