#105 Recent version of python-fedora causes ImportError
Closed: Fixed 2 years ago by jskladan. Opened 2 years ago by jskladan.

After the bump of python-fedora requirement to 1.0.0 (from 0.10.0) in commit bb20d7a
the app fails to run:

Traceback (most recent call last):
  File "runapp.py", line 26, in <module>
    from blockerbugs import cli
  File "/home/src/blockerbugs/blockerbugs/cli.py", line 10, in <module>
    from blockerbugs.util.update_sync import UpdateSync
  File "/home/src/blockerbugs/blockerbugs/util/update_sync.py", line 25, in <module>
    from fedora.client import bodhi, ServerError
ImportError: cannot import name 'bodhi' from 'fedora.client' (/tmp/venv37/lib64/python3.7/site-packages/fedora/client/__init__.py)

Good to know, but it still might be worth fixing the code to work :)

fun

So, shall we revert to python-fedora == 0.10.0 for the moment, and do the 'backport one line diff' thing, before this sorts out?

Meh, but I guess both options are equally not great, and at least we have "up-to-date" libs. THX

Metadata Update from @jskladan:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #106 Merged 2 years ago