New submission from Marc Schlaich <[email protected]>:
It is very simple to reproduce this error.
There is an executable package:
package/
__init__.py
__main__.py
The __init__ imports a missing module:
import missing_module
And the __main__ imports from it:
from . import missing_module
Now I get the following output which is not what I am expecting:
C:\Python27\python.exe: No module named missing_module; 'package' is
a package and cannot be directly executed
----------
messages: 155574
nosy: ms4py
priority: normal
severity: normal
status: open
title: Traceback wrong on ImportError while executing a package
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14285>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com