tamuseanmiller / alpaca-stock-trading-bot

📈 Q-Learning and Sentiment Analysis Stock Trade Bot Powered by Alpaca
GNU General Public License v3.0
42 stars 13 forks source link

No module named 'coloredlogs' #21

Closed Hudson31 closed 2 years ago

Hudson31 commented 2 years ago

Not sure if this is an issue of the switch from Polygon to Alpacas own API and if this bot has been updated but this is the output I get when trying to train:

"D --pretrained --debug Traceback (most recent call last): File "train.py", line 23, in import coloredlogs ModuleNotFoundError: No module named 'coloredlogs'"

Not sure if anyone has this issue and if there is a fix for it.

tamuseanmiller commented 2 years ago

If you haven't already, try running pip install -r requirements.txt if that doesn't fix it you can install coloredlogs directly by running pip install coloredlogs

Also haven't updated the bot to the new Alpaca APIs since the switch. You can still use it if you have a running Polygon account

Hudson31 commented 2 years ago

Thanks for the quick response! Weirdly enough I tried both of those before commenting and yet still gives me the same error. Regardless, I'm not sure I'd want to pay that much for Polygon data at least for the testing. I know Alpaca didn't exactly make it the easiest to switch things over.

tamuseanmiller commented 2 years ago

Interesting that that's not working. Once the module should install it shouldn't fail at that line anymore. As for the alpaca switch, it probably wouldn't be too difficult but I'm not interested in keeping this repo up to date at the current moment. Only a few lines would need to be changed if you were ever interested in fixing it up.