CyberPunkMetalHead / gateio-crypto-trading-bot-binance-announcements-new-coins

This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio
MIT License
1.21k stars 302 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'src/config.yml' #132

Closed alexjchu closed 2 years ago

alexjchu commented 2 years ago

The config file was renamed to config.ym, but I still get this error. What's the fix for this?

Linus045 commented 2 years ago

Due to 2340b957410 the config file needs to be moved into the src/ directory. Same location as the current config.example.yml file. Also make sure its named config.yml.

Linus045 commented 2 years ago

Currently the bot is expected to be run from the root directory like so: python ./src/main.py Which will set the working directory correctly.

alexjchu commented 2 years ago

I was meaning to update my earlier post. So, what I did was remove 'src/' from the 5 files mentioned in 2340b95 due to main.py being in the same folder. It's working now. I'm using Windows 10 if that matters. Thank you for your help.

Linus045 commented 2 years ago

that would also fix the problem yes. I will close this issue then