Bug 1969706 - odcs fails to build with Python 3.10: AttributeError: module 'flask_migrate' has no attribute 'MigrateCommand'
Summary: odcs fails to build with Python 3.10: AttributeError: module 'flask_migrate' ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: odcs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-06-09 05:22 UTC by Tomáš Hrnčiar
Modified: 2021-06-14 10:37 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-14 10:37:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-06-09 05:22:47 UTC
odcs fails to build with Python 3.10.0b2.

Traceback (most recent call last):
  File "/builddir/build/BUILDROOT/odcs-0.2.51-4.fc35.x86_64/usr/bin/odcs-manager", line 33, in <module>
    sys.exit(load_entry_point('odcs==0.2.51', 'console_scripts', 'odcs-manager')())
  File "/builddir/build/BUILDROOT/odcs-0.2.51-4.fc35.x86_64/usr/bin/odcs-manager", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 162, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/builddir/build/BUILDROOT/odcs-0.2.51-4.fc35.x86_64/usr/lib/python3.10/site-packages/odcs/server/manage.py", line 38, in <module>
    manager.add_command("db", flask_migrate.MigrateCommand)
AttributeError: module 'flask_migrate' has no attribute 'MigrateCommand'

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02241979-odcs/

For all our attempts to build odcs with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/odcs/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2021-06-14 10:37:44 UTC
This package was successfully rebuilt with Python 3.10.

If you need this bugzilla open for tracking purposes, sorry for the automatic closing: feel free to reopen it.


Note You need to log in before you can comment on or make changes to this bug.