Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1000716: python3-pony: fails on Python 3.10 with "ModuleNotFoundError: No module named 'parser'"

651 views
Skip to first unread message

Louis-Philippe Véronneau

unread,
Nov 27, 2021, 2:50:03 PM11/27/21
to
Package: python3-pony
Version: 0.7.14-1
Severity: serious
User: debian...@lists.debian.org
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

--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
⢿⡄⠘⠷⠚⠋ po...@debian.org / veronneau.org
⠈⠳⣄
OpenPGP_signature

Louis-Philippe Véronneau

unread,
Nov 27, 2021, 3:20:03 PM11/27/21
to
reassign 1000716 src:ponyorm
rename 1000716 ponyorm: FTBFS on Python 3.10
thanks

Oh well, it seems it does sys.exit(1) when trying to build the package,
just not when running the testsuite by itself...

I: pybuild base:237: python3.10 setup.py clean
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+
E: pybuild pybuild:354: clean: plugin distutils failed with: exit
code=1: python3.10 setup.py clean
OpenPGP_signature

Jelmer Vernooij

unread,
Dec 21, 2021, 6:50:03 AM12/21/21
to
0 new messages