Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1365612 - Missing dependencies for python3-fedmsg-core
Summary: Missing dependencies for python3-fedmsg-core
Alias: None
Product: Fedora
Classification: Fedora
Component: fedmsg
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2016-08-09 17:15 UTC by Martin Bašti
Modified: 2017-12-09 03:28 UTC (History)
5 users (show)

Fixed In Version: fedmsg-1.0.1-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-12-09 03:28:20 UTC

Attachments (Terms of Use)

Description Martin Bašti 2016-08-09 17:15:00 UTC
Description of problem:

I received error when I used fedmsg module
ImportError: No module named 'M2Crypto'

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. python3
2. import fedmsg
3. g = fedmsg.tail_messages()
4. for i in g: print(i)

Actual results:
ImportError                               Traceback (most recent call last)
<ipython-input-8-34c8ab504e0c> in <module>()
----> 1 for i in g:
      2     print(i)

/usr/lib/python3.5/site-packages/fedmsg/ in tail_messages(**kw)
    107 @API_function(doc=fedmsg.core.FedMsgContext.tail_messages.__doc__)
    108 def tail_messages(**kw):
--> 109     for item in __local.__context.tail_messages(**kw):
    110         yield item

/usr/lib/python3.5/site-packages/fedmsg/ in tail_messages(self, topic, passive, **kw)
    323         poller, subs = self._create_poller(topic=topic, passive=False, **kw)
    324         try:
--> 325             for msg in self._poll(poller, subs):
    326                 yield msg
    327         finally:

/usr/lib/python3.5/site-packages/fedmsg/ in _poll(self, poller, subs)
    395                 name, ep = subs[s]
    396                 try:
--> 397                     yield self._run_socket(s, name, ep, watched_names)
    398                 except ValidationError as e:
    399                     warnings.warn("!! invalid message received: %r" % e.msg)

/usr/lib/python3.5/site-packages/fedmsg/ in _run_socket(self, sock, name, ep, watched_names)
    414         msg = fedmsg.encoding.loads(message)
--> 416         if not validate or fedmsg.crypto.validate(msg, **self.c):
    417             # If there is even a slight change of replay, use
    418             # check_for_replay

/usr/lib/python3.5/site-packages/fedmsg/crypto/ in validate(message, **config)
    255     if backend in _validate_implementations:
--> 256         return backend.validate(message, **cfg)
    257     else:
    258         log.warn("Crypto backend %r is disallowed" % backend)

/usr/lib/python3.5/site-packages/fedmsg/crypto/ in validate(message, ssldir, **config)
    104     """
--> 106     import M2Crypto
    107     import m2ext

ImportError: No module named 'M2Crypto'

Expected results:
Print messages from fedora bus

Additional info:
Works for me from python2 (python2-fedmsg-core)
I have installed m2crypto-0.23.0-2.fc24.x86_64

Comment 1 Adam Williamson 2017-04-06 18:51:44 UTC
you have to disable message signature verification to use python3-fedmsg. m2crypto has never been ported to python3, and fedmsg has never been ported off m2crypto.

Comment 2 Neal Gompa 2017-04-07 12:46:13 UTC
m2crypto is being ported to Python 3 now:

Comment 3 Ralph Bean 2017-04-07 12:59:37 UTC
Also we *halfway* ported fedmsg upstream to use python-cryptography instead of m2crypto.. but never finished that.  See the file in fedmsg.

Comment 4 Fedora End Of Life 2017-07-25 22:19:59 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 5 Fedora Update System 2017-10-12 13:22:11 UTC
fedmsg-1.0.1-5.el7 has been submitted as an update to Fedora EPEL 7.

Comment 6 Fedora Update System 2017-10-12 13:22:25 UTC
fedmsg-1.0.1-5.el7 has been submitted as an update to Fedora EPEL 7.

Comment 7 Fedora Update System 2017-10-13 04:19:26 UTC
fedmsg-1.0.1-5.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See for
instructions on how to install test updates.
You can provide feedback for this update here:

Comment 8 Fedora Update System 2017-12-09 03:28:20 UTC
fedmsg-1.0.1-5.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

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