Bug 1049392

Summary: [abrt] copr-cli: copr-cli:5:<module>:ImportError: No module named pkg_resources
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: coprAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: bkabrda, jpacner, lnie, msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/238159e24a984a81112c316697ef7cdcab279625
Whiteboard: abrt_hash:ae16df92c5e6f1986be7736b44b57ae423244948
Fixed In Version: copr-1.21-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-10 07:46:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Vít Ondruch 2014-01-07 14:19:53 UTC
Description of problem:
$ copr-cli --help
Traceback (most recent call last):
  File "/usr/bin/copr-cli", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Version-Release number of selected component:
copr-cli-1.15-1.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python2 /usr/bin/copr-cli --help
executable:     /usr/bin/copr-cli
kernel:         3.12.5-302.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            16025

Truncated backtrace:
copr-cli:5:<module>:ImportError: No module named pkg_resources

Traceback (most recent call last):
  File "/usr/bin/copr-cli", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Local variables in innermost frame:
__builtins__: <module '__builtin__' (built-in)>
__file__: '/usr/bin/copr-cli'
__package__: None
sys: <module 'sys' (built-in)>
__requires__: 'copr-cli==0.1.0'
__name__: '__main__'
__doc__: None

Comment 1 Vít Ondruch 2014-01-07 14:20:13 UTC
Created attachment 846694 [details]
File: backtrace

Comment 2 Vít Ondruch 2014-01-07 14:20:25 UTC
Created attachment 846695 [details]
File: environ

Comment 3 Bohuslav "Slavek" Kabrda 2014-01-07 14:29:05 UTC
copr-cli is missing Requires: python-setuptools (if a package uses an entry point, it always requries setuptools to run).

Comment 4 Vít Ondruch 2014-01-07 14:30:47 UTC
Heh, was going to point that out right now :) "$ sudo dnf install python-setuptools" was the cured the issue for me.

Comment 5 Miroslav Suchý 2014-01-07 22:53:53 UTC
Fixed in upstream in commit c6edc18

Comment 6 Fedora Update System 2014-01-08 14:20:32 UTC
copr-1.20-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/copr-1.20-1.fc19

Comment 7 Fedora Update System 2014-01-08 14:21:35 UTC
copr-1.20-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/copr-1.20-1.fc20

Comment 8 lnie 2014-01-09 03:00:26 UTC
copr-1.20-1.fc20 works fine

Comment 9 Fedora Update System 2014-01-09 07:37:33 UTC
Package copr-1.21-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing copr-1.21-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0438/copr-1.21-1.fc19
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-01-10 07:46:12 UTC
copr-1.21-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Miroslav Suchý 2014-01-16 16:52:52 UTC
*** Bug 1054251 has been marked as a duplicate of this bug. ***

Comment 12 Fedora Update System 2014-01-17 05:51:41 UTC
copr-1.21-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.