Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 195548 - command.py contains invalid use of pkg_resources.Requirement class
command.py contains invalid use of pkg_resources.Requirement class
Product: Fedora
Classification: Fedora
Component: python-sqlobject (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ignacio Vazquez-Abrams
Fedora Extras Quality Assurance
Depends On:
  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:
Last Closed: 2006-07-09 12:40:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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 ?
  File "/usr/lib/python2.4/site-packages/turbogears/command/__init__.py", line
186, in main
  File "/usr/lib/python2.4/site-packages/turbogears/command/__init__.py", line
106, in run
  File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py", line
102, in run
  File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py", line
232, in run
  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):
Comment 1 Luke Macken 2006-06-15 14:00:52 EDT
Created attachment 130995 [details]
Comment 2 Aurelien Bompard 2006-07-09 00:24:32 EDT
See also :
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.