app never starts in Ubuntu 16.04.2 due to missing python-cairo module

Bug #1701648 reported by damiano cupani
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SmartShine Photo
Fix Released
Undecided
Unassigned
smartshine (Ubuntu)
Fix Released
High
Unassigned
Trusty
Fix Released
High
Unassigned
Xenial
Fix Released
High
Unassigned
Zesty
Fix Released
High
Unassigned

Bug Description

[Impact]

  * smartshine has an insufficient list of dependencies, so users might end up in a situation where required dependencies happens to not be installed.

[Test Case]
1. Install smartshine
2. Verify that python-cairo and python-gi are installed.
3. Verify smartshine starts without any dialogs with errors.
4. Attempt to uninstall either python-cairo or python-gi (try one at a time). When attempting to uninstall either libarary, smartshine should be listed as "will also be removed".

Before the fix, both libraries could be removed, at which point smartshine would print an error message in the terminal.

[Regression Potential]
There should be no changes in package itself, only additional dependencies have been added. Thus, more packages are installed.

I was clicking around in the application and found bug 1702367 though, which is a bit more severe than this one. Even though it is possible to run the application, it won't do much. Note that this occurs prior to the patch, so it is not a regression.

[Original report]

In Ubuntu 16.04.2 when is installed smartshine from the official repository it does not start.
If the app is started by the GUI there is no error , if the app is started by the terminal is shown a generic error "An error occured. Python or one of its sub modules is absent..."
The error can be solved simply installing python-cairo from the official repository.
ps: sorry for English not perfectly correct

summary: - app never starts due to missing python-cairo module
+ app never starts in Ubuntu 16.04.2 due to missing python-cairo module
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I can confirm that smartshine 0.36-0ubuntu2 on Ubuntu Artful refuses to start if python-cairo isn't installed. While testing, I also discovered that python-gi is another undocument requirement of this package. These should be added to the Dependencies field in the control file to resolve this issue. I haven't checked thoroughly, but there might be more undocumented dependencies.

As a workaround, run `sudo apt install python-cairo python-gi` to install the necessary dependencies to run smartshine.

Btw, could you please run the following command in a terminal to gather additional debug information (only once):
apport-collect 1701648

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in smartshine (Ubuntu):
status: New → Confirmed
tags: added: artful bitesize packaging string-fix xenial yakkety zesty
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I've made a patch which adds python-cairo and python-gi as dependencies. That way it should be impossible to install smartshine without also pulling in these libraries. At the same time, I took the liberty of sorting the dependencies alphabetically to make it easier to see which were included.

Changed in smartshine (Ubuntu):
status: Confirmed → In Progress
tags: added: patch
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Hans, do you want to submit debdiffs for xenial and zesty too? For a universe package like this, there probably isn't enough time to bother trying to fix it for Ubuntu 16.10 "yakkety".

Changed in smartshine (Ubuntu Xenial):
importance: Undecided → High
Changed in smartshine (Ubuntu Zesty):
importance: Undecided → High
Changed in smartshine (Ubuntu):
importance: Undecided → High
Changed in smartshine (Ubuntu Xenial):
status: New → Triaged
Changed in smartshine (Ubuntu Zesty):
status: New → Triaged
Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Hi Jeremy :)

I agree with your assessment on 16.10. I did include a debdiff for 14.04 as well, though. Looks like all currently supported releases ship the same version of this package so might as well fix it there too while I'm at it.

Don't know what the usual steps are, but I've generated debdiffs based on source packages with tweaked version number and "target release". Based on other packages, adding the release number to versions number seems to be the way to avoid version conflicts when upgrading from one release to the other.

tags: added: trusty
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Hans, thank you. I have uploaded these for you. The Stable Release Updates (SRUs) will need to be approved by a member of the SRU team first before they will be built and available for testing.

Could you please edit the bug description so that it uses the standard SRU template?

https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smartshine - 0.36-0ubuntu3

---------------
smartshine (0.36-0ubuntu3) artful; urgency=medium

  * Add additional run-time required dependencies; python-cairo and python-gi
    (Fixes LP: #1701648)

 -- Hans Joachim Desserud <email address hidden> Sat, 01 Jul 2017 17:25:37 +0200

Changed in smartshine (Ubuntu):
status: In Progress → Fix Released
Jeremy Bícha (jbicha)
Changed in smartshine (Ubuntu Xenial):
status: Triaged → In Progress
Changed in smartshine (Ubuntu Zesty):
status: Triaged → In Progress
Changed in smartshine (Ubuntu Trusty):
status: New → In Progress
importance: Undecided → High
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Added SRU description, though also found bug 1702367 which affects 16.04 and later... Wish I found that earlier :/

description: updated
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Thank you. If you figure out that bug, we can do another SRU later.

I am unsubscribing ubuntu-sponsors from this bug. If you have anything else that needs sponsoring, feel free to subscribe ubuntu-sponsors.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello damiano, or anyone else affected,

Accepted smartshine into zesty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/smartshine/0.36-0ubuntu2.17.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-zesty to verification-done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-zesty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in smartshine (Ubuntu Zesty):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-zesty
Changed in smartshine (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed-xenial
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello damiano, or anyone else affected,

Accepted smartshine into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/smartshine/0.36-0ubuntu2.16.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in smartshine (Ubuntu Trusty):
status: In Progress → Fix Committed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

If no one beats me to it, I'll look into verifying these tomorrow :)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Did a round of verifying this on up to date VMs with Ubuntu 14.04, 16.04 and 17.04. Thus marking all three as verified.

Common for all is that I installed smartshine, noted it wouldn't start without the neccessary libraries, then enabled -proposed, upgraded smartshine and verified that the dependencies were installed at the same time. It was no longer possible to remove python-cairo nor python-gi without also removing smartshine, and the application started successfully.

So the dependencies are fixed, the application starts and runs.

I did not find any regressions, but note that the application is unable to open photos on 16.04 and later (bug 1702367), and fails to save any which have been opened in 14.04 (bug 1707969, discovered while testing now). In both cases, these (also) occur before installing the version from -proposed, so they are not affected by the SRU.

This particular issue is resolved, but unfortunately seems to be more bugs in the application. :/

tags: added: verification-done verification-done-trusty verification-done-xenial verification-done-zesty
removed: verification-needed verification-needed-xenial verification-needed-zesty
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for smartshine has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smartshine - 0.36-0ubuntu2.14.04.1

---------------
smartshine (0.36-0ubuntu2.14.04.1) trusty; urgency=medium

  * Add additional run-time required dependencies; python-cairo and python-gi
    (Fixes LP: #1701648)

 -- Hans Joachim Desserud <email address hidden> Tue, 04 Jul 2017 12:11:04 +0200

Changed in smartshine (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smartshine - 0.36-0ubuntu2.16.04.1

---------------
smartshine (0.36-0ubuntu2.16.04.1) xenial; urgency=medium

  * Add additional run-time required dependencies; python-cairo and python-gi
    (Fixes LP: #1701648)

 -- Hans Joachim Desserud <email address hidden> Tue, 04 Jul 2017 12:10:06 +0200

Changed in smartshine (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smartshine - 0.36-0ubuntu2.17.04.1

---------------
smartshine (0.36-0ubuntu2.17.04.1) zesty; urgency=medium

  * Add additional run-time required dependencies; python-cairo and python-gi
    (Fixes LP: #1701648)

 -- Hans Joachim Desserud <email address hidden> Tue, 04 Jul 2017 12:06:21 +0200

Changed in smartshine (Ubuntu Zesty):
status: Fix Committed → Fix Released
Changed in smartshine:
status: New → Fix Released
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.