pythonpy displays Python deprecation warning when run

Bug #1878935 reported by Daniel Franklin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pythonpy (Debian)
Fix Released
Unknown
pythonpy (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

The program pythonpy displays a deprecation warning before the expected output every time it is run.

Expected:

    > py "43 - 1"
    42

Actual:

    > py "43 - 1"
    /usr/bin/py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
      from collections import Iterable
    42

This can be fixed by slightly editing one line (see attached patch).

The source listed both at packages.ubuntu.com and pypi.org (see <https://pypi.org/project/pythonpy/>) points to a deleted GitHub repo that was last updated three years ago (see <https://web.archive.org/web/20190718035009/https://github.com/Russell91/pythonpy>).

While I'm on Pop!_OS, my understanding is that this package comes from Ubuntu and thus this is where I should file this.

System version:

    Description: Pop!_OS 20.04 LTS
    Release: 20.04

Package version:

    pythonpy:
      Installed: 0.4.11b-3
      Candidate: 0.4.11b-3
      Version table:
     *** 0.4.11b-3 500
            500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
            500 http://us.archive.ubuntu.com/ubuntu focal/universe i386 Packages
            100 /var/lib/dpkg/status

System python3 version (referred to by the shebang of pythonpy):

    Python 3.7.4

Tags: patch

Related branches

Revision history for this message
Daniel Franklin (dzfranklin) wrote :
description: updated
summary: - Pythonpy displays deprecation warning with system python version 3.7.4
+ pythonpy displays Python deprecation warning when run
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "pythonpy-0.4.11-deprecation_warning.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
description: updated
Changed in pythonpy (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Changed in pythonpy (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pythonpy - 0.4.11b-3ubuntu1

---------------
pythonpy (0.4.11b-3ubuntu1) jammy; urgency=medium

  * d/p/0003-py310-collections-import.patch: fix collections import
    under python 3.10+ (LP: #1878935)

 -- Andreas Hasenack <email address hidden> Fri, 04 Feb 2022 14:37:46 +0000

Changed in pythonpy (Ubuntu):
status: In Progress → Fix Released
Changed in pythonpy (Debian):
status: New → Fix Committed
Changed in pythonpy (Debian):
status: Fix Committed → Fix Released
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.