HuobiRDCenter / huobi_Python

Python SDK for Huobi Spot API
https://huobiapi.github.io/docs/spot/v1/en
Apache License 2.0
683 stars 333 forks source link

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

Open fanhua1994 opened 2 years ago

fanhua1994 commented 2 years ago

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