_NEW_bug (exception) on http://thorpy.org/examples/fx.html

Forum for reporting bugs in the library
buffalo
Posts: 44
Joined: Thu Feb 25, 2016 10:34 am

_NEW_bug (exception) on http://thorpy.org/examples/fx.html

Postby buffalo » Mon Jun 12, 2017 8:04 pm

type2 boat_example.png
type3 boat_example.png
Traceback (most recent call last):
File "03.py", line 53, in <module>
"alpha_factor":0.6})
File "/usr/local/lib/python3.5/dist-packages/thorpy/painting/makeup.py", line 16, in add_static_shadow
shadowel.finish()
File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/_makeuputils/_shadow.py", line 125, in finish
painter = self._get_shadow_painter()
File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/_makeuputils/_shadow.py", line 95, in _get_shadow_painter
shadow = self._get_raw_shadow()
File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/_makeuputils/_shadow.py", line 91, in _get_raw_shadow
color=self.color)
File "/usr/local/lib/python3.5/dist-packages/thorpy/painting/pilgraphics.py", line 61, in get_shadow
img = get_black_white(surf, black, color_format)
File "/usr/local/lib/python3.5/dist-packages/thorpy/painting/pilgraphics.py", line 43, in get_black_white
img = pygame_surf_to_pil_img(surf)
File "/usr/local/lib/python3.5/dist-packages/thorpy/painting/pilgraphics.py", line 31, in pygame_surf_to_pil_img
return Image.fromstring(color_format, size, pil_string_image)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2063, in fromstring
"Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.

ThorPy
Site Admin
Posts: 21
Joined: Wed May 13, 2015 9:44 pm

Re: _NEW_bug (exception) on http://thorpy.org/examples/fx.html

Postby ThorPy » Wed Jun 14, 2017 6:44 pm

Thank you for your feedback. This was caused by a change in PIL library for Python3.5. The example is now up to date for Thorpy 1.5.9.


Return to “Bug Tracking”

Who is online

Users browsing this forum: No registered users and 1 guest