After upgrading Red Hat Network Satellite from 5.4.1 to 5.5 satellite-sync is failing with `ImportError('No module named importlib.importLib',) No module named importlib.importLib`

Solution Verified - Updated -

Issue

After the upgrading Red Hat Satellite 5.4 to 5.5 the satellite-sync command is no longer working and fails with this error message:

  File "/usr/bin/satellite-sync", line 139, in main
    return satsync.Runner().main()
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 225, in main
    ret = method()
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 326, in _step_rpms
    self._packages_report = self.syncer.download_rpms()
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 1058, in download_rpms
    self._fetch_packages(channel, missing_fs_packages)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 1743, in _fetch_packages
    package = package_collection.get_package(package_id, timestamp)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/sync_handlers.py", line 260, in get_package
    return self._cache.cache_get(package_id, timestamp=timestamp)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/syncCache.py", line 41, in cache_get
    compressed=self._compressed)
  File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnCache.py", line 77, in get
    return cache.get(name, modified)
  File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnCache.py", line 393, in get
    return self.cache.get(name, modified)
  File "/usr/lib/python2.4/site-packages/spacewalk/common/rhnCache.py", line 366, in get
    return cPickle.loads(pickled)
ImportError: No module named importlib.importLib

Environment

  • Red Hat Network Satellite 5.5 (upgraded from Satellite 5.4)

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