huobi_Python icon indicating copy to clipboard operation
huobi_Python copied to clipboard

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

Open fanhua1994 opened this issue 2 years ago • 0 comments

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 avatar May 07 '22 08:05 fanhua1994