/usr/bin/software-properties-gtk:SyntaxError:/usr/bin/software-properties-gtk@37:/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py@35

Bug #1830272 reported by errors.ubuntu.com bug bridge
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Aptdaemon
New
Undecided
Unassigned
aptdaemon (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding software-properties. This problem was most recently seen with package version 0.97.11, the problem page at https://errors.ubuntu.com/problem/bcd4cb93a6d3f4bb93cc6ea7534e293f4a744849 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Tags: bionic disco
Revision history for this message
Brian Murray (brian-murray) wrote :

The traceback is actually in aptdaemon:

Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 37, in <module>
    from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 35, in <module>
    from aptdaemon import client
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1570
    async = reply_handler and error_handler
          ^
SyntaxError: invalid syntax

affects: software-properties (Ubuntu) → aptdaemon (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue looks like the one which was fixed in
https://launchpad.net/ubuntu/+source/aptdaemon/1.1.1+bzr982-0ubuntu20

The reports have python 3.7 on bionic, which is not the version provided by Ubuntu

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in aptdaemon (Ubuntu):
status: New → Confirmed
Revision history for this message
wu lvhua (dexfire) wrote :

The problem occured when i have a python 3.8.2 installed at Ubuntu 20.04 again, since async is a keyword now. To fix it, just change the async variable name to something like async_ in the whole function or in the "/usr/lib/python3/dist-packages/aptdaemon/client.py" file.

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.