-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Can't import concurrent.futures.thread
at shutdown
#113060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't know if we want to do anything about this, I'm just posting just in case. |
In general we consider this working as intended (from the linked bug):
After the main interpreter thread has exited, launching new threads isn't really supported. This has been true since 3.9 thanks to b61b818 which resolved Issue #83993 via PR #19149. |
The problem isn't launching new threads here, it's simply importing the module. In other words, |
In general, I think it's a good idea for module import to be graceful, even though it can be complicated to achieve in some cases (and |
It isn't reasonable to expect all non-trivial imports to work in a
finalization context.
…On Thu, Dec 14, 2023, 1:19 AM Antoine Pitrou ***@***.***> wrote:
In general, I think it's a good idea for module import to be graceful,
even though it can be complicated to achieve in some cases (and
concurrent.futures is of course a complex module).
—
Reply to this email directly, view it on GitHub
<#113060 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAQXCZ7H5M23XR63EPF57LYJLAARAVCNFSM6AAAAABATUVWJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGQ3TAMZVGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Simple reproducer (real-world bug report is a bit more complex):
CPython versions tested on:
3.10, 3.11, 3.12, 3.13
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: