Skip to content

Python3.9启动报错 can't register atexit after shutdown #132

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

Open
fanhua1994 opened this issue May 7, 2022 · 0 comments
Open

Python3.9启动报错 can't register atexit after shutdown #132

fanhua1994 opened this issue May 7, 2022 · 0 comments

Comments

@fanhua1994
Copy link

fanhua1994 commented May 7, 2022

Traceback (most recent call last): File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\schedulers\base.py", line 150, in start self.add_executor(self._create_default_executor(), 'default') File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\schedulers\base.py", line 762, in _create_default_executor return ThreadPoolExecutor() File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\executors\pool.py", line 53, in __init__ pool = concurrent.futures.ThreadPoolExecutor(int(max_workers), **pool_kwargs) File "D:\Python39\lib\concurrent\futures\__init__.py", line 49, in __getattr__ from .thread import ThreadPoolExecutor as te File "D:\Python39\lib\concurrent\futures\thread.py", line 37, in <module> threading._register_atexit(_python_exit) File "D:\Python39\lib\threading.py", line 1407, in _register_atexit raise RuntimeError("can't register atexit after shutdown") RuntimeError: can't register atexit after shutdown module 'websocket' has no attribute 'WebSocketApp' python-BaseException Exception in thread Thread-5: Traceback (most recent call last): File "D:\Python39\lib\threading.py", line 973, in _bootstrap_inner self.run() File "E:\WorkSpace\python-workspace\CoinwRobot\huobi\connection\impl\websocket_watchdog.py", line 46, in run self.scheduler.start() File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\schedulers\blocking.py", line 20, in start super(BlockingScheduler, self).start(*args, **kwargs) File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\schedulers\base.py", line 150, in start self.add_executor(self._create_default_executor(), 'default') File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\schedulers\base.py", line 762, in _create_default_executor return ThreadPoolExecutor() File "E:\WorkSpace\python-workspace\CoinwRobot\venv\lib\site-packages\apscheduler\executors\pool.py", line 53, in __init__ pool = concurrent.futures.ThreadPoolExecutor(int(max_workers), **pool_kwargs) File "D:\Python39\lib\concurrent\futures\__init__.py", line 49, in __getattr__ from .thread import ThreadPoolExecutor as te File "D:\Python39\lib\concurrent\futures\thread.py", line 37, in <module> threading._register_atexit(_python_exit) File "D:\Python39\lib\threading.py", line 1407, in _register_atexit raise RuntimeError("can't register atexit after shutdown") RuntimeError: can't register atexit after shutdown

@fanhua1994 fanhua1994 changed the title Python3.9启动报错 Python3.9启动报错 can't register atexit after shutdown May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant