Skip to content
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

fix: workaround python bug in setup.py #96

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

knopki
Copy link
Member

@knopki knopki commented Aug 17, 2022

There is python bug python/cpython#86813 that leads setup.py to fail on some 3.9 and 3.10 versions:

Exception ignored in atexit callback: <function CustomInstall.run.<locals>._post_install at 0x7fc2343544c0>
Traceback (most recent call last):
  File "/code/setup.py", line 26, in _post_install
    from yascheduler.variables import CONFIG_FILE
  File "/code/yascheduler/__init__.py", line 2, in <module>
    from .client import Yascheduler
  File "/code/yascheduler/client.py", line 11, in <module>
    from .db import DB, TaskModel, TaskStatus
  File "/code/yascheduler/db.py", line 6, in <module>
    from concurrent.futures import ThreadPoolExecutor
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/usr/local/lib/python3.10/concurrent/futures/__init__.py", line 49, in __getattr__
    from .thread import ThreadPoolExecutor as te
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 37, in <module>
    threading._register_atexit(_python_exit)
  File "/usr/local/lib/python3.10/threading.py", line 1504, in _register_atexit
    raise RuntimeError("can't register atexit after shutdown")
RuntimeError: can't register atexit after shutdown

Simple workaround added.

@blokhin blokhin merged commit ec14979 into tilde-lab:master Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants