Closed monoidic closed 1 year ago
Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/python-falcon/+bug/2002297
Unfortunately hug has been abandoned upstream which was very surprising for many users of this library. hug was well supported and actively maintained, by very skilled and widely known python devs. That suddenly stopped 2020.
Fortunately @kamil-certat took the initiative and re-wrote the API to fastapi in #39 which solves this issue. At least if fastapi doesn't get abandoned as well =)
The upcoming version uses fastapi and not hug anymore thanks to @kamil-certat's #39
Fixed by version 3.2.0
I attempted to install IntelMQ along with the manager and API on Ubuntu 22.04 using the native .deb packages and ran into the following error:
While digging into this, I found that upstream, hug has version 2.0.0 of falcon pinned as a dependency, however, on Ubuntu 22.04, python3-hug depends on python3-falcon, which is at version 3.0.1. This causes an issue in
hug/__init__.py
in the following code:Since falcon 3.0.1 has a
falcon.middleware
module, it is imported by the*
import, and thefrom hug import middleware
reimports that same module instead of hug's ownhug.middleware
This is, of course, not at all an issue on your end. It can, at least seemingly, be worked around by locally patching it like this:
However, I have not audited this whatsoever beyond "I can seemingly use intelmq-manager". Does anyone have any ideas on how to solve or work around this problem? The two major ones that I can see right now are trying to get Canonical to fix their packaging of hug, and just going forward with the intelmq-api FastAPI rewrite that's being worked on by kamil-certat (assuming it does not have any similar issues with 22.04)