RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1268926 - ImportError: No module named pkg_resources
Summary: ImportError: No module named pkg_resources
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: atomic
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-05 16:28 UTC by Micah Abbott
Modified: 2016-03-31 23:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-31 23:25:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0527 0 normal SHIPPED_LIVE atomic bug fix and enhancement update 2016-04-01 03:20:15 UTC

Description Micah Abbott 2015-10-05 16:28:06 UTC
The RHEL Atomic Host 7.2 ostree compose from 10/2 has a broken version of the 'atomic' CLI command

# atomic host status
Traceback (most recent call last):
  File "/bin/atomic", line 31, in <module>
    import Atomic
  File "/usr/lib/python2.7/site-packages/Atomic/__init__.py", line 3, in <module>
    from pkg_resources import get_distribution
ImportError: No module named pkg_resources


-bash-4.2# rpm-ostree status
  TIMESTAMP (UTC)         VERSION   ID             OSNAME               REFSPEC                                                        
* 2015-10-02 17:30:31     7.2       fc5eb3f39d     rhel-atomic-host     rhel7.2:rhel-atomic-host/7/x86_64/standard                     
  2015-09-11 18:33:12     7.1.5     8060f80ffd     rhel-atomic-host     rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard     


-bash-4.2# rpm -qi atomic
Name        : atomic
Version     : 1.5
Release     : 2.git191fb53.el7
Architecture: x86_64
Install Date: Fri 02 Oct 2015 05:23:54 PM UTC
Group       : Unspecified
Size        : 277886
License     : LGPLv2+
Signature   : RSA/SHA256, Thu 01 Oct 2015 11:47:15 AM UTC, Key ID 938a80caf21541eb
Source RPM  : atomic-1.5-2.git191fb53.el7.src.rpm
Build Date  : Wed 30 Sep 2015 06:59:13 PM UTC
Build Host  : x86-030.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : https://github.com/projectatomic/atomic
Summary     : Tool for managing ProjectAtomic systems and containers
Description :
The goal of Atomic is to provide a high level, coherent entrypoint to the
system, and fill in gaps.

For Docker, atomic can make it easier to interact with special kinds of
containers, such as super-privileged debugging tools and the like.

The atomic host subcommand wraps rpm-ostree, currently just providing a
friendlier name, but in the future Atomic may provide more unified
management.

Comment 1 Colin Walters 2015-10-05 16:37:25 UTC
Did we get a setuptools runtime dependency too?  That'd be a bit unfortunate.

This is likely a regression from https://github.com/projectatomic/atomic/pull/117
and https://github.com/projectatomic/atomic/pull/130

Comment 3 Colin Walters 2015-10-05 16:54:14 UTC
My commit for this:

https://github.com/projectatomic/atomic/commit/106878815f5a5dd61b0e527c502fb6eeaf0c9c67

was effectively reverted and introduced the pkg_resources dependency.

Comment 7 Alex Jia 2015-10-27 09:21:33 UTC
The bug has been verified on atomic-1.5-4.git7e4365f.el7.x86_64.

[cloud-user@atomic-00 ~]$ atomic host status
  TIMESTAMP (UTC)         VERSION               ID             OSNAME               REFSPEC                                                               
* 2015-10-18 19:00:32     7.2                   2dc68dbd66     rhel-atomic-host     rhel-atomic-host:rhel-atomic-host/7/x86_64/standard   

[cloud-user@atomic-00 ~]$ rpm-ostree status
  TIMESTAMP (UTC)         VERSION               ID             OSNAME               REFSPEC                                                               
* 2015-10-18 19:00:32     7.2                   2dc68dbd66     rhel-atomic-host     rhel-atomic-host:rhel-atomic-host/7/x86_64/standard                   
    
[cloud-user@atomic-00 ~]$ rpm -q docker atomic
docker-1.8.2-8.el7.x86_64
atomic-1.5-4.git7e4365f.el7.x86_64

[cloud-user@atomic-00 ~]$ rpm -qi atomic
Name        : atomic
Version     : 1.5
Release     : 4.git7e4365f.el7
Architecture: x86_64
Install Date: Sun 18 Oct 2015 06:54:22 PM UTC
Group       : Unspecified
Size        : 277756
License     : LGPLv2+
Signature   : (none)
Source RPM  : atomic-1.5-4.git7e4365f.el7.src.rpm
Build Date  : Fri 09 Oct 2015 07:54:32 PM UTC
Build Host  : x86-021.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : https://github.com/projectatomic/atomic
Summary     : Tool for managing ProjectAtomic systems and containers
Description :
The goal of Atomic is to provide a high level, coherent entrypoint to the
system, and fill in gaps.

For Docker, atomic can make it easier to interact with special kinds of
containers, such as super-privileged debugging tools and the like.

The atomic host subcommand wraps rpm-ostree, currently just providing a
friendlier name, but in the future Atomic may provide more unified
management.

Comment 10 errata-xmlrpc 2016-03-31 23:25:00 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.

https://rhn.redhat.com/errata/RHBA-2016-0527.html


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