Include information about python versions

Bug #1681528 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Brian Murray
Artful
Fix Released
High
Brian Murray

Bug Description

We are see lots of package installation failures that look like:

package:apport:2.20.3-0ubuntu8
Preparing to unpack .../023-apport_2.20.3-0ubuntu8.2_all.deb ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax

One explanation for this is that pyclean is actually be run by python3 instead of python2.7. To confirm and invalidate reports like this apport should check to see what /usr/bin/python and /usr/bin/python3 are symlinks to or double check the versions of /usr/bin/python and /usr/bin/python3.

Changed in apport (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
milestone: none → ubuntu-17.05
tags: added: rls-aa-incoming
Revision history for this message
Brian Murray (brian-murray) wrote :

Also as seen in bug 1682934 python versions in /usr/local/bin can also negatively affect package installations and removals. Apport should also check for these.

description: updated
Changed in apport (Ubuntu):
milestone: ubuntu-17.05 → ubuntu-17.06
Changed in apport (Ubuntu):
milestone: ubuntu-17.06 → ubuntu-17.07
Steve Langasek (vorlon)
Changed in apport (Ubuntu):
importance: Undecided → High
tags: removed: rls-aa-incoming
Changed in apport (Ubuntu Artful):
milestone: ubuntu-17.07 → ubuntu-17.08
Revision history for this message
Brian Murray (brian-murray) wrote :

The python information will be gathered under the following conditions:

 57 if report.get('ProblemType') == 'Package' or \
 58 'python' in report.get('InterpreterPath', '') or \
 59 'python' in report.get('ExecutablePath', ''):

One way to test the 'Package' type of problem is to use the crash-in-postinst package from the daisy pluckers PPA.

https://launchpad.net/~daisy-pluckers/+archive/daisy-seeds

It is not enough to use 'dpkg -i' to trigger the crash though.

Changed in apport (Ubuntu Artful):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.6-0ubuntu6

---------------
apport (2.20.6-0ubuntu6) artful; urgency=medium

  * data/general-hooks/ubuntu.py: Gather information about the python versions
    installed on the system as versions not from the Ubuntu archive can cause
    issues. (LP: #1681528)

 -- Brian Murray <email address hidden> Fri, 18 Aug 2017 11:13:14 -0700

Changed in apport (Ubuntu Artful):
status: In Progress → Fix Released
tags: added: id-59668fbcb9edb050ebe5b008
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.