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 303 forks source link

AttributeError: module 'yaml' has no attribute 'FullLoader' #36

Closed Nerdparadise closed 2 years ago

Nerdparadise commented 2 years ago

I have followed your guide from the website to get this script running but received the following traceback error when running main.py:

Traceback (most recent call last): File "/Users/username/gateio-crypto-trading-bot-binance-announcements-new-coins/main.py", line 1, in from trade_client import * File "/Users/username/gateio-crypto-trading-bot-binance-announcements-new-coins/trade_client.py", line 4, in client = load_gateio_creds('auth/auth.yml') File "/Users/username/gateio-crypto-trading-bot-binance-announcements-new-coins/auth/gateio_auth.py", line 7, in load_gateio_creds auth = yaml.load(file, Loader=yaml.FullLoader) AttributeError: module 'yaml' has no attribute 'FullLoader'

The following python version was used: Python version: Python 3.10.0 (v3.10.0:b494f5935c, Oct 4 2021, 14:59:20) on a Mac

Any hint for me?

Thank you in advance!

Nerdparadise commented 2 years ago

I have solved this issue by rerunning the command "pip3 install -r requirements.txt" after I have set up everything:

Installing collected packages: PyYAML Attempting uninstall: PyYAML Found existing installation: PyYAML 3.11 Uninstalling PyYAML-3.11: Successfully uninstalled PyYAML-3.11 Successfully installed PyYAML-6.0

Hint: Try to update pip to the latest version.