Description of problem: This import error is preventing subscription-manager-1.8 from running on RHEL5. I suspect the error was introduced between these subscription-manager commits: 1eec8ec92065dc92f45e2d27fd8a49776cc76854 (is broken here) eb5966952289871ae9569c910f02b9aa0017d76e (was working here) Version-Release number of selected component (if applicable): [root@rhsm-compat-rhel59 ~]# rpm -q subscription-manager subscription-manager-1.8.3-1.git.233.1eec8ec.el5 How reproducible: Steps to Reproduce: [root@rhsm-compat-rhel59 ~]# subscription-manager --help Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 58, in ? from subscription_manager.injectioninit import init_dep_injection File "/usr/share/rhsm/subscription_manager/injectioninit.py", line 17, in ? from subscription_manager.cert_sorter import CertSorter File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 21, in ? from subscription_manager.utils import parseDate File "/usr/share/rhsm/subscription_manager/utils.py", line 25, in ? import dateutil.parser ImportError: No module named dateutil.parser
Looks to be some use of parseDate that got missed in the mergeathon. https://github.com/candlepin/subscription-manager/pull/534 should fix it.
commit db4d3fec1cf645fb01d44bc26970ce5219121927 Author: Adrian Likins <alikins> Date: Mon Mar 11 12:58:15 2013 -0400 utils.parseDate is now isodate.parse_date remove utils.parseDate and update refs to it
Verifying Version... [root@jsefler-5 ~]# rpm -q subscription-manager subscription-manager-1.8.5-1.el5 [root@jsefler-5 ~]# subscription-manager --help Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help] Primary Modules: attach Attach a specified subscription to the registered system list List subscription and product information for this system refresh Pull the latest subscription data from the server register Register this system to the Customer Portal or another subscription management service release Configure which operating system release to use remove Remove all or specific subscriptions from this system unregister Unregister this system from the Customer Portal or another subscription management service Other Modules: clean Remove all local system and subscription data without affecting the server config List, set, or remove the configuration parameters in use by this system environments Display the environments available for a user facts View or update the detected system information identity Display the identity certificate for this system or request a new one import Import certificates which were provided outside of the tool orgs Display the organizations against which a user can register a system plugins View and configure subscription-manager plugins redeem Attempt to redeem a subscription for a preconfigured system repos List the repositories which this system is entitled to use service-level Manage service levels for this system subscribe Deprecated, see attach unsubscribe Deprecated, see remove version Print version information [root@jsefler-5 ~]# Moving to VERIFIED: subscription-manager-1.8 is now running on RHEL5
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1332.html