Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #550 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

tg-admin sql create breaks after [732]

Reported by: jchu@… Owned by: anonymous
Priority: high Milestone: 0.9
Component: TurboGears Version: 0.9a6
Severity: critical Keywords:
Cc:

Description

I'm not sure what the change is supposed to do (I don't really understand setuptools), but this is my traceback:

Traceback (most recent call last):
  File "/usr/local/bin/tg-admin", line 7, in ?
    sys.exit(
  File "/home/jchu/coding/turbogears/turbogears/command/base.py", line 268, in main
    command = command.load()(turbogears.__version__)
  File "/home/jchu/coding/turbogears/turbogears/command/base.py", line 96, in __init__
    self.find_config()
  File "/home/jchu/coding/turbogears/turbogears/command/base.py", line 63, in find_config
    load_project_config(self.config)
  File "/home/jchu/coding/turbogears/turbogears/command/base.py", line 44, in load_project_config
    package = get_package_name()
  File "/home/jchu/coding/turbogears/turbogears/util.py", line 67, in get_package_name
    egg = pkg_resources.get_distribution(projectname)
  File "/home/jchu/coding/turbogears/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 229, in get_distribution
  File "/home/jchu/coding/turbogears/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 115, in get_provider
  File "/home/jchu/coding/turbogears/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 503, in require
  File "/home/jchu/coding/turbogears/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 483, in resolve
pkg_resources.DistributionNotFound: a

Change History

comment:1 Changed 13 years ago by michele

Same problem here with a quickstarted project and by running tg-admin toolbox:

Traceback (most recent call last):
  File "/usr/local/bin/tg-admin", line 7, in ?
    sys.exit(
  File "/home/michele/Progetti/TurboGears/svn/turbogears/command/base.py", line 269, in main
    command.run()
  File "/home/michele/Progetti/TurboGears/svn/turbogears/command/base.py", line 216, in run
    self.find_config()
  File "/home/michele/Progetti/TurboGears/svn/turbogears/command/base.py", line 63, in find_config
    load_project_config(self.config)
  File "/home/michele/Progetti/TurboGears/svn/turbogears/command/base.py", line 44, in load_project_config
    package = get_package_name()
  File "/home/michele/Progetti/TurboGears/svn/turbogears/util.py", line 67, in get_package_name
    egg = pkg_resources.get_distribution(projectname)
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 229, in get_distribution
    if isinstance(dist,Requirement): dist = get_provider(dist)
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 115, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 503, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/pkg_resources.py", line 483, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: Ciao

comment:2 Changed 13 years ago by elvelind@…

  • Status changed from new to closed
  • Resolution set to fixed

it should work after r744.

comment:3 Changed 13 years ago by michele

Works great now, thanks Elvelind!

Note: See TracTickets for help on using tickets.