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
Created attachment 130995 [details] python-sqlobject-0.7.0-pkg_resources.patch
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
Patch applied and pushed out in python-sqlobject-0.7.0-5 for devel, FC-5, and FC-4.