Bug 919702 - ImportError: No module named dateutil.parser
Summary: ImportError: No module named dateutil.parser
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: beta
: 5.10
Assignee: Adrian Likins
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013 928849
TreeView+ depends on / blocked
 
Reported: 2013-03-09 17:04 UTC by John Sefler
Modified: 2013-09-30 22:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:58:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description John Sefler 2013-03-09 17:04:30 UTC
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

Comment 1 Adrian Likins 2013-03-11 19:56:29 UTC
Looks to be some use of parseDate that got missed in the mergeathon. 

https://github.com/candlepin/subscription-manager/pull/534 should fix it.

Comment 2 Adrian Likins 2013-03-13 15:16:41 UTC
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

Comment 4 John Sefler 2013-04-12 22:32:32 UTC
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

Comment 6 errata-xmlrpc 2013-09-30 22:58:58 UTC
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


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