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

After the bump of python-fedora requirement to 1.0.0 (from 0.10.0) in commit bb20d7a3db15d1939bfbe5c3302f5fd596f80f61
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)

Here is why:
https://github.com/fedora-infra/python-fedora/commit/ad1e87c04aca6860e9273039a3a11bfd483ad56d

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

There is just one slight complication:
https://github.com/fedora-infra/bodhi/issues/3919

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)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/quality/blockerbugs/issues/105

Please continue any further discussion there.

Log in to comment on this ticket.

Metadata
Related Pull Requests