[Bug 1921515] Re: `SyntaxError` when byte-compiling during `do-release-upgrade` to hirsute

Marcel Waldvogel 1921515 at bugs.launchpad.net
Tue Nov 16 09:21:49 UTC 2021


For me, this happened when installing `pypy3` on hirsute.

running pypy3 rtupdate hooks for 7.3
Failed to byte-compile /usr/lib/python3/dist-packages/softwareproperties/extendedsourceslist.py:   File "/
usr/lib/python3/dist-packages/softwareproperties/extendedsourceslist.py", line 436
    def __init__(self, sourceslist=None, /, files=None):
                                         ^
SyntaxError: invalid syntax (expected ')')

The problem seems to be that `python3-software-properties` expects
Python>=3.8 (the `/` syntax only became available then, see
https://www.python.org/dev/peps/pep-0570/). However, pypy3 as packaged
with hirsute (7.3.5) only supports Python 3.7. Upgrading to pypy 7.3.6
(https://www.pypy.org/posts/2021/10/pypy-v736-release.html), announced
as supporting Python 3.8, probably would solve this problem.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1921515

Title:
  `SyntaxError` when byte-compiling during `do-release-upgrade` to
  hirsute

Status in software-properties package in Ubuntu:
  Confirmed

Bug description:
  When performing a `do-release-upgrade -d` on my groovy system, I saw:

  Setting up python3-software-properties (0.99.8) ...
  Failed to byte-compile /usr/lib/python3/dist-packages/softwareproperties/extendedsourceslist.py:   File "/usr/lib/python3/dist-packages/softwareproperties/extendedsourceslist.py", line 436
      def __init__(self, sourceslist=None, /, files=None):
                                           ^
  SyntaxError: invalid syntax (expected ')')

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1921515/+subscriptions




More information about the foundations-bugs mailing list