Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"paster shell my.ini" fails when lib folder is present but base.py is missing #5

Open
deiferni opened this issue Apr 18, 2011 · 0 comments

Comments

@deiferni
Copy link

recently we moved "ourproject.lib.base.py" to a sub-package inside the "ourproject.lib" package. This causes a "paster shell my.ini" to fail with:

Traceback (most recent call last):
File "/Users/deif/Library/VirtualEnv/sv11_py27/bin/paster", line 8, in
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/Users/deif/Library/VirtualEnv/sv11_py27/lib/python2.7/site-packages/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/Users/deif/Library/VirtualEnv/sv11_py27/lib/python2.7/site-packages/paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/Users/deif/Library/VirtualEnv/sv11_py27/lib/python2.7/site-packages/paste/script/command.py", line 218, in run
result = self.command()
File "/Users/deif/Library/VirtualEnv/sv11_py27/lib/python2.7/site-packages/pylons/commands.py", line 538, in command
import(base_module)
ImportError: No module named base

I think the bug lies in pylons.commands.is_minimal_template that checks the importerror against the string 'No module named lib.base' but should also check against 'No module named base'. the latter error is raised when the lib package exists but not the base module.

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant