rhnreg_ks fails with "ImportError: /usr/lib64/python2.4/site-packages/libxml2mod.so: undefined symbol: xmlXPathContextSetCache" error

Solution Unverified - Updated -

Issue

  • rhnreg_ks fails with following error:
        # rhnreg_ks --username=<RHN username> --password="<RHN Password>" --force

        Traceback (most recent call last): 
          File "/usr/sbin/rhnreg_ks", line 29, in ? 
            from up2date_client import rhnreg 
          File "/usr/share/rhn/up2date_client/rhnreg.py", line 21, in ? 
            import hardware 
          File "/usr/share/rhn/up2date_client/hardware.py", line 25, in ? 
            import dbus 
          File "/usr/lib64/python2.4/site-packages/dbus/__init__.py", line 1, in ? 
            from _dbus import * 
          File "/usr/lib64/python2.4/site-packages/dbus/_dbus.py", line 48, in ? 
            from proxies import * 
          File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 2, in ? 
            import introspect_parser 
          File "/usr/lib64/python2.4/site-packages/dbus/introspect_parser.py", line 1, in ? 
            import libxml2 
          File "/usr/lib64/python2.4/site-packages/libxml2.py", line 1, in ? 
            import libxml2mod 
        ImportError: /usr/lib64/python2.4/site-packages/libxml2mod.so: undefined symbol: xmlXPathContextSetCache 
  • rhn_register throws the error:
ImportError: /usr/lib64/python2.4/site-packages/libxml2mod.so: undefined symbol: xmlShellPrintXPathError

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.