Bug 1040339

Summary: pkgwat -h crashes
Product: [Fedora] Fedora Reporter: Alec Leamas <leamas.alec>
Component: pkgwatAssignee: Ralph Bean <rbean>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: rbean
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-23 02:43:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alec Leamas 2013-12-11 08:53:10 UTC
Description of problem: After installing pkgwat, pkgwat -h crashes


Version-Release number of selected component :
$ rpm -q pkgwat
pkgwat-0.9-1.fc20.noarch

How reproducible: Always


Steps to Reproduce:
1.yum install pkgwat
2.pkgwat -h

Actual results:
$ pkgwat -h
Traceback (most recent call last):
  File "/usr/bin/pkgwat", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyparsing>=2.0.1

Expected results:
Help message  :)

Additional info:

On f20 rawhide

Comment 1 Ralph Bean 2013-12-11 15:26:49 UTC
May I ask which Fedora release you got this on?  Fedora 20?

Comment 2 Ralph Bean 2013-12-11 15:27:10 UTC
Oh jeez, I just saw that you already wrote "on f20".   Thanks!

Comment 3 Ralph Bean 2013-12-11 15:29:12 UTC
Hm, I think I see.  The issue may be that python-cliff is stuck in updates-testing for f20.  If you enable updates-testing for f20 and update your system, can you replicate the issue?

Comment 4 Alec Leamas 2013-12-11 15:40:37 UTC
No joy...

sudo  yum --enablerepo=updates-testing update  pkgwat
Loaded plugins: fs-snapshot, refresh-packagekit
No packages marked for update
muminmamman: FedoraReview $ pkgwat -h
Traceback (most recent call last):
  File "/usr/bin/pkgwat", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyparsing>=2.0.1
muminmamman: FedoraReview $

Comment 5 Alec Leamas 2013-12-11 15:59:31 UTC
BTW, here is what I have: (rpmlib cut)

$ rpm -q -R pkgwat
/usr/bin/python2
python(abi) = 2.7
python-cliff
python-fabulous
python-pkgwat-api

$ rpm -q python-cliff python-fabulous python-pkgwat-api
python-cliff-1.4.5-1.fc20.noarch
python-fabulous-0.1.5-8.fc20.noarch
python-pkgwat-api-0.12-1.fc20.noarch
muminmamman: FedoraReview $

Comment 6 Ralph Bean 2013-12-11 16:51:50 UTC
Can I ask that you try updating python-cliff?

~❯ pkgwat releases python-cliff
+---------------+----------------+---------------------+
| release       | stable_version | testing_version     |
+---------------+----------------+---------------------+
| Rawhide       | 1.4.5-1.fc21   | None                |
| Fedora 20     | 1.4.4-1.fc20   | 1.4.5-1.fc201 karma |
| Fedora 19     | 1.4.4-1.fc19   | None                |
| Fedora 18     | 1.4.4-1.fc18   | None                |
| Fedora EPEL 6 | 1.4.4-1.el6    | None                |
| Fedora EPEL 5 | None           | None                |
+---------------+----------------+---------------------+

Comment 7 Alec Leamas 2013-12-11 17:04:43 UTC
Sure :) But as of comment #5, I have the update:

$ sudo yum --enablerepo=updates-testing update python-cliff
Loaded plugins: fs-snapshot, refresh-packagekit
No packages marked for update
$ rpm -q python-cliff
python-cliff-1.4.5-1.fc20.noarch

Comment 8 Ralph Bean 2013-12-11 18:53:45 UTC
Ah, what version of python-cmd2 do you have installed?  That must be the culprit.

Comment 9 Alec Leamas 2013-12-11 19:00:57 UTC
$ rpm -q python-cmd2
python-cmd2-0.6.7-2.fc20.noarch

Comment 10 Ralph Bean 2013-12-11 19:05:05 UTC
Crazy.  It has a requirement on the pyparsing package (rpm).

Is pyparsing-2.0.1-1.fc20 present?

Comment 11 Alec Leamas 2013-12-11 19:12:29 UTC
No, it's not. Furthermore, updating it  to 2.0.1-1 fixes problem.

Thanks for help. Looks like just a missing dep :)

--alec

Comment 12 Ralph Bean 2013-12-11 19:56:07 UTC
I just don't understand how it happened.

pkgwat requires python-cliff
python-cliff requires python-cmd2
python-cmd2 requires pyparsing.

Ah, python-cmd2 needs to version its requirement there.

Comment 13 Fedora Update System 2013-12-11 20:18:44 UTC
python-cmd2-0.6.7-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-cmd2-0.6.7-3.fc20

Comment 14 Fedora Update System 2014-01-07 09:48:54 UTC
python-cmd2-0.6.7-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.