Message155574
| Author |
schlamar |
| Recipients |
schlamar |
| Date |
2012年03月13日.06:50:35 |
| SpamBayes Score |
0.0004285986 |
| Marked as misclassified |
No |
| Message-id |
<1331621436.28.0.000669565075438.issue14285@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月13日 06:50:36 | schlamar | set | recipients:
+ schlamar |
| 2012年03月13日 06:50:36 | schlamar | set | messageid: <1331621436.28.0.000669565075438.issue14285@psf.upfronthosting.co.za> |
| 2012年03月13日 06:50:35 | schlamar | link | issue14285 messages |
| 2012年03月13日 06:50:35 | schlamar | create |
|