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 #1611 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

"paster shell" broken

Reported by: anseljh Owned by: mramm
Priority: normal Milestone: 2.0
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

Traceback:

dnab422b46:~/Source/dev/Wiki-20 anseljh$ paster shell
Engine(sqlite:////Users/anseljh/Source/dev/Wiki-20/devdata.db)
binding metadata
Traceback (most recent call last):
  File "/usr/local/bin/paster", line 5, in <module>
    pkg_resources.run_script('PasteScript>=0.9.7', 'paster')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/pkg_resources.py", line 448, in run_script
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/pkg_resources.py", line 1166, in run_script
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/EGG-INFO/scripts/paster", line 18, in <module>
    command.run()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/command.py", line 78, in run
    invoke(command, command_name, options, args[1:])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/command.py", line 117, in invoke
    exit_code = runner.run(args)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/command.py", line 212, in run
    result = self.command()
  File "/Users/anseljh/Source/Pylons/pylons/commands.py", line 354, in command
    tresponse = test_app.get('/_test_vars')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/fixture.py", line 209, in get
    return self.do_request(req, status=status)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/fixture.py", line 386, in do_request
    **req.environ)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive
    app_iter = application(basic_environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/lint.py", line 170, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/cascade.py", line 119, in __call__
    return self.apps[-1](environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/registry.py", line 334, in __call__
    app_iter = self.application(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/recursive.py", line 80, in __call__
    return self.application(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Paste-1.5.1-py2.5.egg/paste/errordocument.py", line 185, in __call__
    app_iter = self.application(environ, change_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/WebError-0.8dev_20071109-py2.5.egg/weberror/evalexception/middleware.py", line 213, in __call__
    return self.respond(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/WebError-0.8dev_20071109-py2.5.egg/weberror/evalexception/middleware.py", line 324, in respond
    return self.application(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Beaker-0.8-py2.5.egg/beaker/cache.py", line 180, in __call__
    return self.app(environ, start_response)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Beaker-0.8-py2.5.egg/beaker/session.py", line 401, in __call__
    response = self.wrap_app(environ, session_start_response)
  File "/Users/anseljh/Source/tg2/tg/__init__.py", line 62, in __call__
    return self.root(environ, start_response)
  File "/Users/anseljh/Source/dev/Wiki-20/wiki20/lib/base.py", line 21, in __call__
    return TurboGearsController.__call__(self, environ, start_response)
  File "/Users/anseljh/Source/Pylons/pylons/controllers/core.py", line 178, in __call__
    response = self._dispatch_call()
  File "/Users/anseljh/Source/tg2/tg/controllers.py", line 13, in _dispatch_call
    return self._perform_call(None, None)
  File "/Users/anseljh/Source/tg2/tg/controllers.py", line 9, in _perform_call
    controller, remainder, params = self._get_routing_info()
  File "/Users/anseljh/Source/Pylons/pylons/controllers/objectdispatch.py", line 30, in _get_routing_info
    controller, remainder = object_dispatch(self, url_path)
  File "/Users/anseljh/Source/Pylons/pylons/controllers/objectdispatch.py", line 54, in object_dispatch
    obj, remainder = find_object(obj, remainder, notfound_handlers)
  File "/Users/anseljh/Source/Pylons/pylons/controllers/objectdispatch.py", line 67, in find_object
    if obj is None: raise httpexceptions.HTTPNotFound()
paste.httpexceptions.HTTPNotFound: 404 Not Found
The resource could not be found.

Change History

comment:1 Changed 12 years ago by anseljh

  • Summary changed from `paster shell` broken to "paster shell" broken

comment:2 Changed 11 years ago by mramm

The fundamental issue here is that the shell command (as implemented by pylons) plays some tricks in pylons baseapp in order to get the config added. These tricks include checking for a special "test" route, and doing some special config setup if that is found.

The easy way to solve this ticket is for this stuff to be moved over to TG2, but it's worth asking if this is the best way to indicate that we're in a test environment.

comment:3 Changed 11 years ago by mramm

fixed in r3863

comment:4 Changed 11 years ago by mramm

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.