-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Python] RuntimeError when using pyarrow from a thread which is not joined before main exits when pandas is installed #35237
Comments
As a workaround, does it work if you add:
at the top level of your program (before main shuts down)? This seems to be a transitive consequence of python/cpython#86813 (comment) |
Just to note, I was able to reproduce the error with |
cc @pitrou |
This should be trivial to workaround in PyArrow. |
Describe the bug, including details regarding any error messages, version, and platform.
This is a relatively straightforward problem in which a thread that is continuing to run during shutdown tries to register an atexit handler.
This only happens if the
pandas
library is installed causing the associated shims to be used. This happens regardless of whether or not pandas is in-use by the application.The problem can be avoided by making sure to join all theads before main exits, but this is not generally required by python so should be considered a bug.
Context to reproduce:
requirements.txt
main.py
Run:
Component(s)
Python
The text was updated successfully, but these errors were encountered: