pecan/pecan — Issue #30: pecan serve masks tracebacks
Author: alfredodeza
Created: 2011-11-17 17:29:54+00:00
State: open

I'm migrating a project with pecan and trying to find if I am missing modules or dependencies, but all I get from `pecan serve development.py` is that the root controller is not found.

When I go to the shell, a different traceback is returned. Something is eating up the traceback and this is confusing::

(vcaral) ~/python/vcaral/caral $ pecan serve development.py
Traceback (most recent call last):
File "/Users/adeza/python/vcaral/bin/pecan", line 7, in
execfile(__file__)
File "/Users/adeza/python/vcaral/pecan/bin/pecan", line 5, in
CommandRunner.handle_command_line()
File "/Users/adeza/python/vcaral/pecan/pecan/commands/runner.py", line 125, in handle_command_line
exit_code = runner.run(sys.argv[1:])
File "/Users/adeza/python/vcaral/pecan/pecan/commands/runner.py", line 119, in run
return command.run(args)
File "/Users/adeza/python/vcaral/pecan/pecan/commands/base.py", line 30, in run
return paste_command.Command.run(self, args)
File "/Users/adeza/python/vcaral/lib/python2.6/site-packages/PasteScript-1.7.5-py2.6.egg/paste/script/command.py", line 238, in run
result = self.command()
File "/Users/adeza/python/vcaral/pecan/pecan/commands/serve.py", line 52, in command
self.config = self.load_configuration(config_file)
File "/Users/adeza/python/vcaral/pecan/pecan/commands/base.py", line 45, in load_configuration
set_config(name)
File "/Users/adeza/python/vcaral/pecan/pecan/configuration.py", line 212, in set_config
_runtime_conf.update(conf_from_file(name))
File "/Users/adeza/python/vcaral/pecan/pecan/configuration.py", line 146, in conf_from_file
execfile(abspath, globals(), conf_dict)
File "/Users/adeza/python/vcaral/caral/development.py", line 1, in
from caral.controllers.root import RootController
ImportError: No module named controllers.root
(vcaral) ~/python/vcaral/caral $ python
Python 2.6.1 (r261:67515, Aug 2 2010, 20:10:18)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from caral.controllers import root
Traceback (most recent call last):
File "", line 1, in
File "caral/controllers/root.py", line 4, in
from caral.controllers.simple import SimpleController
File "caral/controllers/simple.py", line 3, in
from caral.util import Browsecaral, RequestParser
File "caral/util.py", line 2, in
from BeautifulSoup import BeautifulSoup
ImportError: No module named BeautifulSoup