version 0.17.4 Browse option doesn't show recipes (Ubuntu)

Bug #1621963 reported by Mike Strickland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gourmet
New
Undecided
Unassigned

Bug Description

How to duplicate problem (Category example given, but error occurs for all options):

Open Browse tab
Double-click Category
Double-click any group that is presented
No recipes are shown

This is a result of a depreciated command call.

Relevant part of error message in terminal:

File "/usr/lib/python2.7/dist-packages/gourmet/plugins/browse_recipes/icon_helpers.py", line 41, in get_pixbuf_from_image
    image.tostring(),
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 695, in tostring
    "Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.

Solution:

Replace 'tostring' (line 41) in the icon_helpers.py script with 'tobytes'

Revision history for this message
Saxon Shuttleworth (saxons) wrote :

Gourmet requires an older version of Pillow (version 2.x).

If you used 'pip' to install your current Pillow version then use 'pip install Pillow==2.1.0' to get v2.1.0.

If you used 'apt get' to install Pillow, 'apt remove pillow' and install v2.1.0 using 'pip install Pillow==2.1.0'

I hope this helps.

Saxon.
--

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.