ponyorm: FTBFS on Python 3.10

Bug #1952965 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ponyorm (Debian)
Fix Released
Unknown
ponyorm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/1000716:

Package: python3-pony
Version: 0.7.14-1
Severity: serious
User: <email address hidden>
Usertags: python3.10

Hello,

It seems the current version of ponyorm is broken on python3.10. If you
look closely at the logs from the latest DebCI run [1], it outputs
(without failing........):

> Sorry, but pony 0.7.14 requires Python of one of the following
> versions: 2.7, 3.3-3.9. You have version 3.10.0+

Actually running pony on 3.10 outputs something like:

======================================================================
ERROR: tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/loader.py", line 154, in
loadTestsFromName
    module = __import__(module_name)
  File "/<<PKGBUILDDIR>>/tests/__init__.py", line 11, in <module>
    from . import base
  File "/<<PKGBUILDDIR>>/tests/base/__init__.py", line 10, in <module>
    from .test_cli import CLITestCase
  File "/<<PKGBUILDDIR>>/tests/base/test_cli.py", line 14, in <module>
    from pony.orm import db_session
  File "/usr/lib/python3/dist-packages/pony/orm/__init__.py", line 3, in
<module>
    from pony.orm.core import *
  File "/usr/lib/python3/dist-packages/pony/orm/core.py", line 18, in
<module>
    from pony.thirdparty.compiler import ast, parse
  File
"/usr/lib/python3/dist-packages/pony/thirdparty/compiler/__init__.py",
line 24, in <module>
    from .transformer import parse, parseFile
  File
"/usr/lib/python3/dist-packages/pony/thirdparty/compiler/transformer.py", line
32, in <module>
    import parser
ModuleNotFoundError: No module named 'parser'

This is because the parser module has been removed in Python 3.10 in
favor of ast [2].

I'll suggest upstream to fail their testsuite when ran on Python 3.10.

[1]:
https://ci.debian.net/data/autopkgtest/unstable/amd64/p/ponyorm/17023056/log.gz

[2]: https://docs.python.org/3/whatsnew/3.9.html#new-parser

description: updated
tags: added: update-excuse
Changed in ponyorm (Debian):
importance: Undecided → Unknown
status: New → Confirmed
Changed in ponyorm (Debian):
status: Confirmed → Fix Released
Changed in ponyorm (Ubuntu):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

This has made it in Jammy now.

Changed in ponyorm (Ubuntu):
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.