tags 1069052 + ftbfs
retitle 1069052 gertty: FTBFS with SQLAlchemy 2.x
severity 1069052 serious
thanks
Hello. This is what happens currently when trying to build the package in
unstable:
======================================================================
ERROR: gertty.search (unittest.loader._FailedTest.gertty.search)
----------------------------------------------------------------------
ImportError: Failed to import test module: gertty.search
Traceback (most recent call last):
File "/usr/lib/python3.11/unittest/loader.py", line 452, in _find_test_path
package = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/loader.py", line 362, in
_get_module_from_name
__import__(name)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_gertty/build/gertty/search/__init__.py",
line 18, in <module>
from gertty.search import tokenizer, parser
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_gertty/build/gertty/search/parser.py", line
21, in <module>
import gertty.db
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_gertty/build/gertty/db.py", line 615,
in <module>
mapper(Account, account_table)
File "/usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py",
line 1982, in _mapper_fn
raise InvalidRequestError(
sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is
removed as of SQLAlchemy 2.0. Use the '
sqlalchemy.orm.registry.map_imperatively()` method of the
``sqlalchemy.orm.registry`` class to perform classical mappi
ng.