Bug 195548 - command.py contains invalid use of pkg_resources.Requirement class
command.py contains invalid use of pkg_resources.Requirement class
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: python-sqlobject (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ignacio Vazquez-Abrams
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-15 14:00 EDT by Luke Macken
Modified: 2016-09-19 22:37 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-07-09 12:40:38 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)
python-sqlobject-0.7.0-pkg_resources.patch (629 bytes, patch)
2006-06-15 14:00 EDT, Luke Macken
no flags Details | Diff

  None (edit)
Description Luke Macken 2006-06-15 14:00:52 EDT
Description of problem:
When playing around TurboGears, running `tg-admin sql create` triggered this bug:

Traceback (most recent call last):
  File "/usr/bin/tg-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/turbogears/command/__init__.py", line
186, in main
    command.run()
  File "/usr/lib/python2.4/site-packages/turbogears/command/__init__.py", line
106, in run
    command.the_runner.run(sys.argv)
  File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py", line
102, in run
    runner.run()
  File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py", line
232, in run
    self.load_options_from_egg(egg_spec)
  File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py", line
415, in load_options_from_egg
    dist, conf = self.config_from_egg(egg_spec)
  File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py", line
426, in config_from_egg
    dist = pkg_resources.working_set.find(pkg_resources.Requirement(egg_spec))
TypeError: __init__() takes exactly 4 arguments (2 given)

Looking into it further, the pkg_resources.Requirement should be created using
the static class parse(), and not through __init__.

Attached is a patch to resolve this issue.

Version-Release number of selected component (if applicable):
python-sqlobject-0.7.0-5.fc5
Comment 1 Luke Macken 2006-06-15 14:00:52 EDT
Created attachment 130995 [details]
python-sqlobject-0.7.0-pkg_resources.patch
Comment 2 Aurelien Bompard 2006-07-09 00:24:32 EDT
See also :
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg207241.html
Debian is having the same problem, a patch is attached
Comment 3 Luke Macken 2006-07-09 12:40:38 EDT
Patch applied and pushed out in python-sqlobject-0.7.0-5 for devel, FC-5, and FC-4.

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