/usr/sbin/aptd:RuntimeError:_inline_callbacks:get_uid_from_dbus_name:return_value:_inline_callbacks:_check_simulated:_inline_callbacks

Bug #1811694 reported by errors.ubuntu.com bug bridge
88
This bug affects 10 people
Affects Status Importance Assigned to Milestone
aptdaemon (Ubuntu)
Fix Released
High
Unassigned
Disco
Fix Released
High
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding aptdaemon. This problem was most recently seen with package version 1.1.1+bzr982-0ubuntu20, the problem page at https://errors.ubuntu.com/problem/6dd3ac9f687163dd6164c39b3cc7e04b5ef6e2b3 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: added: rls-dd-incoming
Revision history for this message
Brian Murray (brian-murray) wrote :

Here's the Traceback:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/policykit1.py", line 152, in get_uid_from_dbus_name
    return_value(uid)
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 462, in return_value
    raise _DefGen_Return(val)
defer._DefGen_Return: 1000

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aptdaemon/core.py", line 938, in _check_simulated
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
RuntimeError: generator raised StopIteration

Changed in aptdaemon (Ubuntu):
importance: Undecided → High
status: New → Confirmed
tags: removed: rls-dd-incoming
tags: added: id-5c93b581e67b7413f075d97d
Revision history for this message
Julian Andres Klode (juliank) wrote :

Doing sed s/raise StopIteration/return/ to adjust to PEP479.

Changed in aptdaemon (Ubuntu Disco):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package aptdaemon - 1.1.1+bzr982-0ubuntu21

---------------
aptdaemon (1.1.1+bzr982-0ubuntu21) disco; urgency=medium

  * Use 'return' instead of 'raise StopIteration', in order to adjust for
    PEP 479 which turns 'raise StopIteration' into a 'RuntimeError'
    (LP: #1811694)

 -- Julian Andres Klode <email address hidden> Wed, 27 Mar 2019 15:49:09 +0100

Changed in aptdaemon (Ubuntu Disco):
status: In Progress → Fix Released
Revision history for this message
Julian Andres Klode (juliank) wrote :

This only affects disco, as the change to raise RuntimeError on StopIteration was made in Python 3.7. The reports from 18.10 and 18.04 in the error tracker had a python 3.7, so were partially upgraded to disco already.

Revision history for this message
turgay usal (sireno52) wrote :
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.