Yum plugins failing with "ImportError: /usr/lib64/python2.6/site-packages/M2Crypto/__m2crypto.so: undefined symbol: PEM_write_bio_SSL_SESSION"

Solution Verified - Updated -


  • When running any yum commands, rhnplugin, product-id and subscription-manager all fail to import and the command fails
# yum search xterm
Plugin "rhnplugin" can't be imported
Plugin "product-id" can't be imported
Plugin "subscription-manager" can't be imported
Loaded plugins: refresh-packagekit, security
  • yum fails with this traceback (running yum with -d 10 for maximum debugging messages may be required)
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 276, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 98, in main
  File "/usr/share/yum-cli/cli.py", line 228, in getOptionsConfig
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 887, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 330, in _getConfig
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 527, in doPluginSetup
    plugin_types, confpath, disabled_plugins, enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 159, in __init__
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 203, in _importplugins
    self._loadplugin(modulefile, types)
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 265, in _loadplugin
    module = imp.load_module(modname, fp, pathname, description)
  File "/usr/share/yum-plugins/rhnplugin.py", line 52, in <module>
    from M2Crypto.SSL import SSLError
  File "/usr/lib64/python2.6/site-packages/M2Crypto/__init__.py", line 22, in <module>
    import __m2crypto
ImportError: /usr/lib64/python2.6/site-packages/M2Crypto/__m2crypto.so: undefined symbol: PEM_write_bio_SSL_SESSION


  • Red Hat Enterprise Linux 6.2
  • Registered to Red Hat Network Satellite or Red Hat Network Classic

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In