andreiapostoae / dota2-predictor

Tool that predicts the outcome of a Dota 2 game using Machine Learning
MIT License
366 stars 82 forks source link

Error: Please set API_KEY environment variable. #9

Closed CharlesLiuyx closed 7 years ago

CharlesLiuyx commented 7 years ago

Hi! Amazing project!!

When I try to run steam_miner.py, it returned the error Please set API_KEY environment variable.

How could I solve this problem

os: Window10 64bits envi: Anaconda python 2.7

CharlesLiuyx commented 7 years ago

I try to add one line: os.environ['API_KEY'] = 'MyKey' to solve it then I meet an new error KeyError: 'matches'

So I cannot download the new match data. Please help me

CharlesLiuyx commented 7 years ago

I have solved it! Thanks~

andreiapostoae commented 7 years ago

What was the problem? Glad you figured it out!

CharlesLiuyx commented 7 years ago

At the begining there is the API KEY problem so I add my SteamAPI Key. Problem done! The Key:Error related to json format because I confused by 2 different SteamWeb API.