Search code examples
pythonpython-3.xpipmodulenotfounderror

ModuleNotFoundError: NO module named 'binance.spot'


hello I'm running into a loop of errors when running a python code with all requirements installed, already try to python -m pip install python-binance and had no success

bellow the some of the loop errors

C:\Users\djino\Documents\Bot\Trading_Bot_9000 [main ≡]> python get_data.py sh run_signal.sh python tradebot.py Execution of job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" skipped: maximum number of running instances reached (1) Execution of job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" skipped: maximum number of running instances reached (1) Execution of job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" skipped: maximum number of running instances reached (1) Execution of job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" skipped: maximum number of running instances reached (1) Execution of job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" skipped: maximum number of running instances reached (1) Execution of job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" skipped: maximum number of running instances reached (1) Job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" raised an exception Traceback (most recent call last): File "C:\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "C:\Users\djino\Documents\Bot\Trading_Bot_9000\data_acquisition\get_binance_btc_0m.py", line 10, in get_binance_btc_0m_data from binance.spot import Spot ModuleNotFoundError: No module named 'binance.spot' Job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" raised an exception Traceback (most recent call last): File "C:\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "C:\Users\djino\Documents\Bot\Trading_Bot_9000\data_acquisition\get_binance_btc_0m.py", line 10, in get_binance_btc_0m_data from binance.spot import Spot ModuleNotFoundError: No module named 'binance.spot' Job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" raised an exception Traceback (most recent call last): File "C:\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "C:\Users\djino\Documents\Bot\Trading_Bot_9000\data_acquisition\get_binance_btc_0m.py", line 10, in get_binance_btc_0m_data from binance.spot import Spot ModuleNotFoundError: No module named 'binance.spot' Job "get_binance_btc_0m_data (trigger: interval[0:00:00.100000], next run at: 2022-10-20 10:00:01 BST)" raised an exception Traceback (most recent call last): File "C:\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "C:\Users\djino\Documents\Bot\Trading_Bot_9000\data_acquisition\get_binance_btc_0m.py", line 10, in get_binance_btc_0m_data from binance.spot import Spot ModuleNotFoundError: No module named 'binance.spot' Job "get_binance_btc_1m_data (trigger: interval[0:00:01], next run at: 2022-10-20 10:00:02 BST)" raised an exception Traceback (most recent call last): File "C:\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "C:\Users\djino\Documents\Bot\Trading_Bot_9000\data_acquisition\get_binance_btc_1m.py", line 6, in get_binance_btc_1m_data from binance.spot import Spot ModuleNotFoundError: No module named 'binance.spot' Job "get_binance_btc_3m_data (trigger: interval[0:00:01], next run at: 2022-10-20 10:00:02 BST)" raised an exception Traceback (most recent call last): File "C:\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "C:\Users\djino\Documents\Bot\Trading_Bot_9000\data_acquisition\get_binance_btc_3m.py", line 6, in get_binance_btc_3m_data from binance.spot import Spot ModuleNotFoundError: No module named 'binance.spot'


Solution

  • To fix this problem ModuleNotFoundError: NO module named 'binance.spot' install the module binance-connector

    pip install binance-connector

    docs here:https://binance-connector.readthedocs.io/en/latest/getting_started.html