yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.51k stars 826 forks source link

from Trading import Trading ImportError: No module named Trading #203

Closed shayanabbas closed 6 years ago

shayanabbas commented 6 years ago

When i run it, its giving following error, I tried running on pyton2 and python3 both also tried changing from Trading to from app.Trading but didnt resolve the issue.

screen shot 2018-02-19 at 22 30 15
Exeluzz commented 6 years ago

did you install dip dependencies ? with "dip install requests"

or juste check the PATH into the file

shayanabbas commented 6 years ago

you meant pip install requests right? if so yes I did,

and path seems fine I download package on desktop and run using following

python2 ~/Desktop/binance-trader-master/trader.py --symbol XVGBTC

also tried python ~/Desktop/binance-trader-master/trader.py --symbol XVGBTC python3 ~/Desktop/binance-trader-master/trader.py --symbol XVGBTC

Exeluzz commented 6 years ago

just test to run directly on the main folder.

command be like : python trader.py --symbol XVGBTC Cause if you oppenned trader.py you see this : sys.path.insert(0, "./app")

and ./app contains the dependencies of the main program (trader.py) but it need to be launch in the main folder

(sry for my bad english)

shayanabbas commented 6 years ago

thank you so much, after going inside the directory and running it, it worked.!

Exeluzz commented 6 years ago

you welcome ;)