retitle 1061042 flask-mongoengine: FTBFS: JSONEncoder deprecated from
flask.json
user [email protected]
usertags 1061042 python3.15
thanks
Hi!
While rebuilding the python related packages against the Python 3.15rc2
version we ran into this FTBFS:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856167/
And flask-mongoengine is also failing in the reproducible builds
infrastructure:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/flask-mongoengine.html
By now, the errors have changed, this is the current error:
I: pybuild base:385: cd
/build/reproducible-path/flask-mongoengine-1.0.0/.pybuild/cpython3_3.14_flask-mongoengine/build;
python3.14 -m pytest --override-ini=addopts=--verbose tests/test_base.py
tests/test_connection.py -k 'not test_multiple_connections'
ImportError while loading conftest
'/build/reproducible-path/flask-mongoengine-1.0.0/.pybuild/cpython3_3.14_flask-mongoengine/build/tests/conftest.py'.
tests/conftest.py:7: in <module>
from flask_mongoengine import MongoEngine
flask_mongoengine/__init__.py:10: in <module>
from .json import override_json_encoder
flask_mongoengine/json.py:2: in <module>
from flask.json import JSONEncoder
E ImportError: cannot import name 'JSONEncoder' from 'flask.json'
(/usr/lib/python3/dist-packages/flask/json/__init__.py)
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=4:
cd
/build/reproducible-path/flask-mongoengine-1.0.0/.pybuild/cpython3_3.14_flask-mongoengine/build;
python3.14 -m pytest --override-ini=addopts=--verbose tests/test_base.py
tests/test_connection.py -k 'not test_multiple_connections'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p
3.14 --parallel=12 returned exit code 13
Please consider getting this package back in a healthy state.
--
Regards,
Marga