conor19w / Binance-Futures-Trading-Bot

A Technical Analysis Bot that trades leveraged USDT futures markets on Binance.
539 stars 177 forks source link

Live_Bot.py - ImportError: cannot import name 'ThreadedWebsocketManager' from 'binance' #25

Closed daerco22 closed 2 years ago

daerco22 commented 2 years ago

Hi I encounter this import error when running "python3 app.py" also I've already check the cause of the issue and to solve it we just need to add .streams when importing ThreadedWebsocketManager from binance. Thanks.

Live_Bot.py: from pprint import PrettyPrinter import sys, os from binance.client import Client from binance.exceptions import BinanceAPIException from binance.streams import ThreadedWebsocketManager from datetime import datetime, date, timedelta from threading import Thread from multiprocessing import Process, Pipe import time

image
conor19w commented 2 years ago

Hey did you install the requirements?

pip install -r requirements.txt
Yhon560 commented 2 years ago

Hey did you install the requirements?

pip install -r requirements.txt

pip innstal error

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. unicorn-binance-websocket-api 1.41.0 requires websockets==10.3, but you have websockets 9.1 which is incompatible. Successfully installed websockets-9.1

conor19w commented 2 years ago

Sounds like a pip error, you'll have to look on the internet for a generic solution

Yhon560 commented 2 years ago

Sounds like a pip error, you'll have to look on the internet for a generic solution

oke work unistal python and instal last version

python -m pip install --upgrade -r requirements.txt