#540 Fedora messaging callback cannot be loaded
Closed: Fixed by lholecek. Opened by lholecek.

Pod "greenwave-fedmsg-consumers" for Fedora stage instance fails with:

[moksha.hub WARNING] Cannot find qpid python module. Make sure you have python-qpid installed.
Error: Failed to import the callback module (No module named 'greenwave.subjects') provided in the configuration file

See: https://os.stg.fedoraproject.org/console/project/greenwave/browse/pods/greenwave-fedmsg-consumers-193-7h477?tab=logs

Assuming the first message is non-critical (appeared in logs for quite a while).

It looks like when loading the module with consumer callback, the ImportError exception is raised when loading sub-modules.

Unfortunately, I cannot reproduce the failure with following code.

import importlib
module = "greenwave.consumers.fedora_messaging_consumer"
importlib.import_module(module)

Perhaps the greenwave/subjects/ submodule should contain __init__.py - though this should not be required since Python 3.3 (the installed version on the server is Python 3.7.4).


Looks like adding the __init__.py into the submodule helped (#541).

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

Metadata