Message324802
| Author |
terry.reedy |
| Recipients |
JokeNeverSoke, ned.deily, ronaldoussoren, terry.reedy, xtreak |
| Date |
2018年09月07日.21:49:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1536356974.92.0.56676864532.issue34584@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
idlelib/run.py imports math through about 3 intermediaries. Hence it failed, and pyshell displayed the message in the .png. Both modules can raise failure messages. In #25514, the run.py message was revised to point to a new section of the doc: "Startup failure". The second paragraph is
"A common cause of failure is a user-written file with the same name as a standard library module, such as random.py and tkinter.py. When such a file is located in the same directory as a file that is about to be run, IDLE cannot import the stdlib file. The current fix is to rename the user file."
This is what Joseph should have seen. I added a note to the issue to also fix the pyshell message to point to this section.
A better but harder fix would be to temporarily remove the user directory from sys.path so that user files cannot stop run's startup. |
|