bbenbenek / nfl-fantasy-football

This repo contains scripts to collect and analyze data from Yahoo fantasy football leagues
MIT License
152 stars 53 forks source link

Invalid Argument in Data_Transformations.py #9

Closed Hargobind-K closed 3 years ago

Hargobind-K commented 4 years ago

Hey all!

Sorry if this question is naive of me, I'm in the very nascent stages of learning python.

The error I'm running into is in the Data_Transformations.py file I get this error when running the file:

In: runfile('C:/Users/hk/Desktop/FF/nfl-fantasy-football-master/Data Analysis/Data Transformations.py', wdir='C:/Users/hk/Desktop/FF/nfl-fantasy-football-master/Data Analysis')
Traceback (most recent call last):

  File "C:\Users\hk\Desktop\FF\nfl-fantasy-football-master\Data Analysis\Data Transformations.py", line 15, in <module>
    with open('.\auth\oauth2yahoo.json') as json_yahoo_file:

OSError: [Errno 22] Invalid argument: '.\x07uth\\oauth2yahoo.json' 

I tried looking up the Errno but didn't seem to return anything useful.

Any tips on how to resolve are much appreciated!

Thanks, Hargobind

bbenbenek commented 3 years ago

Not sure if you edited the line containing with open('.\auth\oauth2yahoo.json'), but the slashes need to be forward, not backward.