Ticket #158 (new defect)

Opened 5 years ago

Last modified 3 years ago

paster setup-app masks errors

Reported by: bbangert Owned by: ianb
Priority: normal Milestone:
Component: script Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

(Moving this from Pylons trac as this is a Paste issue, was #207 on Pylons Trac)

I had a missing module for my app and running 'paster setup-app config.ini' reported:

$ paster setup-app config.ini
Warning: No myapp.websetup module found for setup

since there clearly *was* a websetup.py file, I simply tried importing it manually:

>>> import myapp.websetup
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/var/www/virtual/domain.com/webapps/myapp/myapp/websetup.py", line 6, in ?
    import myapp.models as model
  File "/var/www/virtual/domain.com/webapps/myapp/myapp/models/__init__.py", line 10, in ?
    from pygments import highlight
ImportError: No module named pygments
>>> 

Clearly the missing module was the root of the problem, not a missing websetup.py file, but paster masked the true problem which it should probably never do.

Change History

Changed 3 years ago by iElectric

Another occasion: using create_all from SA (when using with pylons and i18n it doesn't work out very well) all the models that had errors weren't executed and no error was reported.

Note: See TracTickets for help on using tickets.