Bug 700596 - grin throws a DistributionNotFound: argparse>=1.1 exception
grin throws a DistributionNotFound: argparse>=1.1 exception
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: grin (Show other bugs)
15
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Terje Røsten
Fedora Extras Quality Assurance
:
: 702750 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-28 14:24 EDT by Lane
Modified: 2011-05-24 23:09 EDT (History)
2 users (show)

See Also:
Fixed In Version: grin-1.2.1-3.fc15
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-05-24 23:09:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lane 2011-04-28 14:24:41 EDT
I did a live install of Fedora 15 beta. Then I did a 'yum install grin'
I then run grin, and I get this exception:

Traceback (most recent call last):
  File "/usr/bin/grin", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2671, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 654, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 552, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse>=1.1


Is there a dependency missing in the rpm?
Comment 1 Lane 2011-04-28 14:36:28 EDT
It does seem that I have argparse 1.1 installed:

$ python -i
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16) 
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import argparse
>>> argparse.__version__
'1.1'
Comment 2 Lane 2011-04-28 15:12:02 EDT
I emailed the author of grin regarding this issue. Here is his response:

> argparse got included into Python 2.7, so it doesn't have the
> .egg-info information that pkg_resources uses to determine that the
> dependency is satisfied. You can remove the dependency from the
> setup.py safely. I do not control the RPM.
Comment 3 Terje Røsten 2011-04-28 17:00:39 EDT
Thanks for your report.

The fix seems simple, will have a look.
Comment 4 Terje Røsten 2011-05-07 01:42:37 EDT
*** Bug 702750 has been marked as a duplicate of this bug. ***
Comment 5 Fedora Update System 2011-05-09 13:52:47 EDT
grin-1.2.1-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/grin-1.2.1-3.fc15
Comment 6 Fedora Update System 2011-05-09 18:38:05 EDT
Package grin-1.2.1-3.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grin-1.2.1-3.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/grin-1.2.1-3.fc15
then log in and leave karma (feedback).
Comment 7 Fedora Update System 2011-05-24 23:09:11 EDT
grin-1.2.1-3.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

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