smartshine unable to add photos on Ubuntu 16.04 and later

Bug #1702367 reported by Hans Joachim Desserud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smartshine (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Run smartshine (preferably from a terminal)
2. Click the button to "add photos"
3. Select a random image

Expected behaviour:
The image is loaded and displayed in the application.

Actual behaviour:
The application seems to load, but never finishes. The following error message is printed in the terminal:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/share/smartshine/smartshine/smartshine.py", line 469, in run
    Gui.put_files_to_the_list(self.fichiers)
  File "/usr/share/smartshine/smartshine/smartshine.py", line 366, in put_files_to_the_list
    im = self.pixbuf2Image(pb)
  File "/usr/share/smartshine/smartshine/smartshine.py", line 332, in pixbuf2Image
    return Image.fromstring("RGB",(width,height),pb.get_pixels() )
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2063, in fromstring
    "Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.

I strongly suspect the API in PIL (https://launchpad.net/ubuntu/+source/pillow) has changed, and smartshine is trying to use the old one.

The image loads as expected in Ubuntu 14.04, while I get the error message in 16.04. Note that 16.04 seems to be the first Ubuntu release with version 3.x of the PIL library, 14.04 used 2.x.

I also get the same error message on 17.04 and presumably artful. I just discovered this when clicking around in the application related to bug 1701648, though I have less of an idea how one might go about fixing this.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: smartshine 0.36-0ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-78.99-generic 4.4.62
Uname: Linux 4.4.0-78-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jul 4 23:50:13 2017
InstallationDate: Installed on 2015-10-24 (619 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
SourcePackage: smartshine
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :
description: updated
tags: added: artful yakkety zesty
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.