#1061042 flask-mongoengine: FTBFS: tests failed

#1061042#5
Date:
2024-01-16 19:42:41 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2024/01/15/flask-mongoengine_1.0.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240115;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240115&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

#1061042#12
Date:
2026-10-01 14:10:53 UTC
From:
To:
retitle 1061042 flask-mongoengine: FTBFS: JSONEncoder deprecated from
flask.json
user debian-python@lists.debian.org
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.