Bug 723823 - goobook fails to run
Summary: goobook fails to run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: goobook
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Howard Ning
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-21 09:27 UTC by Tejun Heo
Modified: 2011-08-09 01:42 UTC (History)
5 users (show)

Fixed In Version: goobook-1.3-8.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-09 01:42:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to apply to goobook's setup.py to remove the argparse dependency (359 bytes, patch)
2011-07-27 08:54 UTC, Simon
no flags Details | Diff

Description Tejun Heo 2011-07-21 09:27:51 UTC
Description of problem:

goobook fails to run throwing the following exception.

Traceback (most recent call last):
  File "/usr/bin/goobook", 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

How reproducible:

Steps to Reproduce:
1. yum install goobook
2. goobook
3.
  
Actual results:

It throws exception and dies.

Expected results:

It should run.

Additional info:

Thank you. :)

Comment 1 Howard Ning 2011-07-22 02:38:41 UTC
Emmm, argparse is depreciated in Fedora 15. The upstream has also did that in the git. However there is no official release for now.

Comment 2 Tejun Heo 2011-07-22 06:00:07 UTC
Ehmm... Dunno what to make of your comment but the following bug seems awfully similar. Maybe the same problem?

https://bugzilla.redhat.com/show_bug.cgi?id=700596

Thanks.

Comment 3 Simon 2011-07-27 08:26:49 UTC
Hi,
same problem here after upgrading to fc15 and removing depreciated python-argparse. 
- argparse is now included in python's std lib for python 2.7 and 3.2
- argparse is found in a python shell:
$ python                                      
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'

The issue comes from /usr/lib/python2.7/site-packages/pkg_resources.py which checks dependencies, but now argparse is no more a dependency as it is included by default with python.

So the solution should be to remove the dependency from the setup.py (same thing as Bug 700596 mentionned by Tejun).

Comment 4 Simon 2011-07-27 08:54:10 UTC
Created attachment 515445 [details]
patch to apply to goobook's setup.py to remove the argparse dependency

Comment 5 Howard Ning 2011-07-27 18:44:17 UTC
I will update it after I install a Fedora 15 on a spare box this week.

Comment 6 Fedora Update System 2011-07-29 15:02:57 UTC
goobook-1.3-8.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/goobook-1.3-8.fc15

Comment 7 Fedora Update System 2011-07-31 03:54:23 UTC
Package goobook-1.3-8.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 goobook-1.3-8.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/goobook-1.3-8.fc15
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-08-09 01:42:05 UTC
goobook-1.3-8.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.