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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1921515

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to