Forte42 / Trading_Bot_9000

Ever want to make a trading bot that'll work for YOU? So did we! We tested various machine learning, deep neural network, and conventional trading strategies. Then we put our bot live on AWS.
MIT License
5 stars 6 forks source link

ModuleNotFoundError: NO module named 'binance.spot' #37

Closed DevDjino closed 1 year ago

DevDjino commented 1 year ago

Hello I am starter in developing and getting issue with multiple errors when I try to run the command to start the bot python3 get_data.py sh run_signal.sh python3 tradebot.py

here a screenshot of the errors I'm getting
Screenshot from 2022-10-18 12-34-17

Forte42 commented 1 year ago

Hey there,

You need to install the python-binance module, I updated our requirements.txt and readme.

Cheers, Garrett

On Tue, Oct 18, 2022 at 4:42 AM DevDjino @.***> wrote:

Hello I am starter in developing and getting issue with multiple errors when I try to run the command to start the bot python3 get_data.py sh run_signal.sh python3 tradebot.py

here a screenshot of the errors I'm getting [image: Screenshot from 2022-10-18 12-34-17] https://user-images.githubusercontent.com/42117838/196420087-23f8b163-39f1-4211-9656-3b1b6265e8fe.png

— Reply to this email directly, view it on GitHub https://github.com/Forte42/Trading_Bot_9000/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNBPA5APS7OCJZTI64KV43WD2EKLANCNFSM6AAAAAARH7XXYI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DevDjino commented 1 year ago

Hello thanks for the quick response

After installing the python-binance module I start the code again and a new error appear but this time says:

ModuleNotFoundError: No module named 'binance.spot'

Screenshot from 2022-10-19 15-53-21

DevDjino commented 1 year ago

and when I install the riqueriments.txt some modules are not installed and I need to install them one by one like the apscheduler==3.9.1 python-binance==1.0.16 and the python-dotenv==0.21.0 you have any idea what could be the problem?

Forte42 commented 1 year ago

Hey there,

So if you've cloned my repo you need to do so again from my repo so you have the new changes to the requirements.txt file. Also, can you confirm how you installed python-binance? Did you run "pip install python-binance"?

Finally, you left out the bottom of the exception in your included screenshot, Garrett

On Wed, Oct 19, 2022 at 8:00 AM DevDjino @.***> wrote:

and when I install the riqueriments.txt some modules are not installed and I need to install them one by one like the apscheduler==3.9.1 python-binance==1.0.16 and the python-dotenv==0.21.0 you have any idea what could be the problem?

— Reply to this email directly, view it on GitHub https://github.com/Forte42/Trading_Bot_9000/issues/37#issuecomment-1284155956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNBPA66NYIKFT3IMNRRDULWEAEKTANCNFSM6AAAAAARH7XXYI . You are receiving this because you commented.Message ID: @.***>

DevDjino commented 1 year ago

Hello,

yes I run "pip install python-binance" because I was not able to install from the requirements.txt

I cloned the repo again and follow all the steps and I get the ModuleNotFoundError: No module named 'binance.spot'

here the screenshots of all process I did: Screenshot from 2022-10-19 19-17-59 Screenshot from 2022-10-19 19-18-31 Screenshot from 2022-10-19 19-24-11 Screenshot from 2022-10-19 19-24-56

Forte42 commented 1 year ago

Ok, from one of my teammates:

oh i bet i know what's going on.... have him run python3 -m pip install python-binance I bet he has multiple versions of python installed on his system.

If that doesn't work I'll send you over to him, he runs linux too and will be more able to help you.

Garrett

On Wed, Oct 19, 2022 at 11:33 AM DevDjino @.***> wrote:

Hello,

yes I run "pip install python-binance" because I was not able to install from the requirements.txt

I cloned the repo again and follow all the steps and I get the ModuleNotFoundError: No module named 'binance.spot'

here the screenshots of all process I did: [image: Screenshot from 2022-10-19 19-17-59] https://user-images.githubusercontent.com/42117838/196774997-e689510b-63d4-4155-8000-1f37542e3ef2.png [image: Screenshot from 2022-10-19 19-18-31] https://user-images.githubusercontent.com/42117838/196775003-57c5f829-382e-427b-95ef-afd158ead04f.png [image: Screenshot from 2022-10-19 19-24-11] https://user-images.githubusercontent.com/42117838/196775012-92778c95-0234-42fe-bc5c-f4d83ffa86e3.png [image: Screenshot from 2022-10-19 19-24-56] https://user-images.githubusercontent.com/42117838/196775020-6798c78a-ed67-40d0-8d1a-c6ee5a255827.png

— Reply to this email directly, view it on GitHub https://github.com/Forte42/Trading_Bot_9000/issues/37#issuecomment-1284417854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNBPA5ZXVL5XGHURZ7QO3LWEA5IPANCNFSM6AAAAAARH7XXYI . You are receiving this because you commented.Message ID: @.***>

DevDjino commented 1 year ago

unfortunately don't work for me running 'python3 -m pip install python-binance'

Screenshot from 2022-10-19 20-10-09 Screenshot from 2022-10-19 20-10-37

DevDjino commented 1 year ago

can you say what machine you are running the code?

I have windows too and I could try to run the code tomorrow on windows, now it's getting too late for me, need to sleep.

Forte42 commented 1 year ago

I'm running a windows computer but my teammate runs Linux.

Talk later

On Wed, Oct 19, 2022, 12:18 DevDjino @.***> wrote:

can you say what machine are you running the code?

I have windows to and I could try to run the code tomorrow on windows, now its getting to late.

— Reply to this email directly, view it on GitHub https://github.com/Forte42/Trading_Bot_9000/issues/37#issuecomment-1284465321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNBPA5Y3FT56V2TXILSIGDWEBCRBANCNFSM6AAAAAARH7XXYI . You are receiving this because you commented.Message ID: @.***>

DevDjino commented 1 year ago

Hi Garrett,

I try to run the code on windows but still get the same error

err errr

DevDjino commented 1 year ago

Just find the Fix, to fix the issue I run "pip install binance-connector", and I find solution here: https://github.com/binance/binance-connector-python

Forte42 commented 1 year ago

Nice, thank you very much

On Thu, Oct 20, 2022, 06:08 DevDjino @.***> wrote:

Just find the Fix, to fix the issue I run "pip install binance-connector", and I find solution here: https://github.com/binance/binance-connector-python

— Reply to this email directly, view it on GitHub https://github.com/Forte42/Trading_Bot_9000/issues/37#issuecomment-1285511400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNBPA7UTMIW75GURXGRXRTWEE74HANCNFSM6AAAAAARH7XXYI . You are receiving this because you commented.Message ID: @.***>