You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run python bootstrap from the root of the project, I get this error:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/jdevera/devel/github/python-cmdline-bootstrap/bootstrap/__main__.py", line 7, in <module>
from .bootstrap import main
ValueError: Attempted relative import in non-package
Is this not one of the intended uses of this __main__.py file?
If I do python -m bootstrap then it works fine.
The text was updated successfully, but these errors were encountered:
When I try to run
python bootstrap
from the root of the project, I get this error:Is this not one of the intended uses of this
__main__.py
file?If I do
python -m bootstrap
then it works fine.The text was updated successfully, but these errors were encountered: