Bug 700596 - grin throws a DistributionNotFound: argparse>=1.1 exception
Summary: grin throws a DistributionNotFound: argparse>=1.1 exception
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grin
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 702750 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-28 18:24 UTC by Lane
Modified: 2011-05-25 03:09 UTC (History)
2 users (show)

Fixed In Version: grin-1.2.1-3.fc15
Clone Of:
Environment:
Last Closed: 2011-05-25 03:09:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lane 2011-04-28 18:24:41 UTC
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 18:36:28 UTC
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 19:12:02 UTC
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 21:00:39 UTC
Thanks for your report.

The fix seems simple, will have a look.

Comment 4 Terje Røsten 2011-05-07 05:42:37 UTC
*** Bug 702750 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2011-05-09 17:52:47 UTC
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 22:38:05 UTC
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-25 03:09:11 UTC
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.