Bugzilla – Bug 1212021
python-databases: fails to build from source on ALP
Last modified: 2023-07-30 17:58:35 UTC
ALP June Milestone 1 expects to have packages fixed to build images to take under test by Friday 9th. In that context the following package has been found to fail to build from source: python-databases With the following error: [ 31s] + PYTHONDONTWRITEBYTECODE=1 [ 31s] + pytest-3.11 --ignore=_build. --ignore=_build.python311 --ignore=_build.python310 -v -k 'not (aiopg or mysql or asyncmy)' [ 31s] ============================= test session starts ============================== [ 31s] platform linux -- Python 3.11.2, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python3.11 [ 31s] cachedir: .pytest_cache [ 31s] rootdir: /home/abuild/rpmbuild/BUILD/databases-0.6.2 [ 31s] collecting ... collected 0 items / 4 errors [ 31s] [ 31s] ==================================== ERRORS ==================================== [ 31s] ______________ ERROR collecting tests/test_connection_options.py _______________ [ 31s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/databases-0.6.2/tests/test_connection_options.py'. [ 31s] Hint: make sure your test modules/packages have valid Python names. [ 31s] Traceback: [ 31s] /usr/lib64/python3.11/importlib/__init__.py:126: in import_module [ 31s] return _bootstrap._gcd_import(name[level:], package, level) [ 31s] tests/test_connection_options.py:9: in <module> [ 31s] from databases.backends.postgres import PostgresBackend [ 31s] databases/__init__.py:1: in <module> [ 31s] from databases.core import Database, DatabaseURL [ 31s] databases/core.py:10: in <module> [ 31s] from sqlalchemy import text [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/__init__.py:12: in <module> [ 31s] from . import util as _util [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/__init__.py:15: in <module> [ 31s] from ._collections import coerce_generator_arg as coerce_generator_arg [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/_collections.py:39: in <module> [ 31s] from .typing import Literal [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/typing.py:36: in <module> [ 31s] from typing_extensions import Annotated as Annotated # 3.8 [ 31s] E ModuleNotFoundError: No module named 'typing_extensions' [ 31s] _________________ ERROR collecting tests/test_database_url.py __________________ [ 31s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/databases-0.6.2/tests/test_database_url.py'. [ 31s] Hint: make sure your test modules/packages have valid Python names. [ 31s] Traceback: [ 31s] /usr/lib64/python3.11/importlib/__init__.py:126: in import_module [ 31s] return _bootstrap._gcd_import(name[level:], package, level) [ 31s] tests/test_database_url.py:5: in <module> [ 31s] from databases import DatabaseURL [ 31s] databases/__init__.py:1: in <module> [ 31s] from databases.core import Database, DatabaseURL [ 31s] databases/core.py:10: in <module> [ 31s] from sqlalchemy import text [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/__init__.py:12: in <module> [ 31s] from . import util as _util [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/__init__.py:15: in <module> [ 31s] from ._collections import coerce_generator_arg as coerce_generator_arg [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/_collections.py:39: in <module> [ 31s] from .typing import Literal [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/typing.py:36: in <module> [ 31s] from typing_extensions import Annotated as Annotated # 3.8 [ 31s] E ModuleNotFoundError: No module named 'typing_extensions' [ 31s] ___________________ ERROR collecting tests/test_databases.py ___________________ [ 31s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/databases-0.6.2/tests/test_databases.py'. [ 31s] Hint: make sure your test modules/packages have valid Python names. [ 31s] Traceback: [ 31s] /usr/lib64/python3.11/importlib/__init__.py:126: in import_module [ 31s] return _bootstrap._gcd_import(name[level:], package, level) [ 31s] tests/test_databases.py:10: in <module> [ 31s] import sqlalchemy [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/__init__.py:12: in <module> [ 31s] from . import util as _util [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/__init__.py:15: in <module> [ 31s] from ._collections import coerce_generator_arg as coerce_generator_arg [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/_collections.py:39: in <module> [ 31s] from .typing import Literal [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/typing.py:36: in <module> [ 31s] from typing_extensions import Annotated as Annotated # 3.8 [ 31s] E ModuleNotFoundError: No module named 'typing_extensions' [ 31s] ___________________ ERROR collecting tests/test_importer.py ____________________ [ 31s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/databases-0.6.2/tests/test_importer.py'. [ 31s] Hint: make sure your test modules/packages have valid Python names. [ 31s] Traceback: [ 31s] /usr/lib64/python3.11/importlib/__init__.py:126: in import_module [ 31s] return _bootstrap._gcd_import(name[level:], package, level) [ 31s] tests/test_importer.py:3: in <module> [ 31s] from databases.importer import ImportFromStringError, import_from_string [ 31s] databases/__init__.py:1: in <module> [ 31s] from databases.core import Database, DatabaseURL [ 31s] databases/core.py:10: in <module> [ 31s] from sqlalchemy import text [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/__init__.py:12: in <module> [ 31s] from . import util as _util [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/__init__.py:15: in <module> [ 31s] from ._collections import coerce_generator_arg as coerce_generator_arg [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/_collections.py:39: in <module> [ 31s] from .typing import Literal [ 31s] /usr/lib64/python3.11/site-packages/sqlalchemy/util/typing.py:36: in <module> [ 31s] from typing_extensions import Annotated as Annotated # 3.8 [ 31s] E ModuleNotFoundError: No module named 'typing_extensions' [ 31s] =========================== short test summary info ============================ [ 31s] ERROR tests/test_connection_options.py [ 31s] ERROR tests/test_database_url.py [ 31s] ERROR tests/test_databases.py [ 31s] ERROR tests/test_importer.py [ 31s] !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!! [ 31s] ============================== 4 errors in 0.44s =============================== [ 31s] error: Bad exit status from /var/tmp/rpm-tmp.UAXoqK (%check) [ 31s] Full log: https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:Core:1.0:Build/python-databases/standard/ppc64le
The problem is due to outdated SQAlchemy, please take a newer version from the Factory.
It is not due to that, this package requires SQLAlchemy 1, and further more, the build log failure talks about typing_extensions, nothing to do with SQLAlchemy. I have solved the build failure in Factory with https://build.opensuse.org/request/show/1091001 , please sync when that is merged.
(In reply to Steve Kowalik from comment #2) > It is not due to that, this package requires SQLAlchemy 1, and further more, > the build log failure talks about typing_extensions, nothing to do with > SQLAlchemy. I have solved the build failure in Factory with > https://build.opensuse.org/request/show/1091001 , please sync when that is > merged. If you can submit a SR to IBS project, jsrain can review and accept it. Thanks for the fixes
(In reply to Héctor Orón Martínez from comment #3) > (In reply to Steve Kowalik from comment #2) > > It is not due to that, this package requires SQLAlchemy 1, and further more, > > the build log failure talks about typing_extensions, nothing to do with > > SQLAlchemy. I have solved the build failure in Factory with > > https://build.opensuse.org/request/show/1091001 , please sync when that is > > merged. > > If you can submit a SR to IBS project, jsrain can review and accept it. > > Thanks for the fixes I've just created the request with the same changes https://build.suse.de/request/show/300699
python-databases builds correctly right now. https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:Core:1.0:Build/python-databases/standard/x86_64
Verified.