This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Runtime failure with Failed to import site module
Type: crash Stage: resolved
Components: Build Versions: Python 3.5
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel,, terry.reedy, xtreak
Priority: normal Keywords:

Created on 2018-09-30 02:15 by, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit
Python error1.png, 2018-09-30 02:15
Messages (4)
msg326697 - (view) Author: Satheesh Thomas ( Date: 2018-09-30 02:15
Run time failure to execute python scripts. It was running for long time without any issue . But sometimes get this error which stops the entire execution. Looks like some .pyc file got corrupted .
msg326796 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2018-10-01 12:09
Thanks for the report. Can you please add the full stack trace as text in the comment so that it's more accessible? Searching along similar lines there is an open issue about corrupted .pyc causing import related failure in issue28007 with a patch and a test case.
msg327176 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-10-05 19:13
Unless this is seen as a possible security issue, this will not be fixed in 3.5.  If possible test in later versions.

By 'was running for a long time without issue', do you mean 'ran many times before this run'?  (As opposed to 'a long time in this run'?)

Did you try deleting Lib/__cache__/_collections_abc.cpython-35.pyc (or whatever the name is on ubuntu)?

If this fixes the issue, is corruption and failure in any sense deterministic?
msg401286 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-09-07 14:27
It doesn't look like there is enough information here to do anything about this, and there has been no response from the OP to follow-up questions. I think we need to close it.
Date User Action Args
2022-04-11 14:59:06adminsetgithub: 79027
2021-09-19 22:23:29iritkatrielsetstatus: pending -> closed
resolution: rejected
stage: resolved
2021-09-07 14:27:49iritkatrielsetstatus: open -> pending
nosy: + iritkatriel
messages: + msg401286

2018-10-05 19:13:59terry.reedysetnosy: + terry.reedy
messages: + msg327176
2018-10-01 12:09:47xtreaksetnosy: + xtreak
messages: + msg326796
2018-09-30 02:15:16sat.tho@gmail.comcreate