Open NameUnrequired opened 3 years ago
mhist = foo.MatchHistory('POR-Liga 1', range(2016, 2020)).read_games()
Traceback (most recent call last): File "<pyshell#9>", line 1, in mhist = foo.MatchHistory('POR-Liga 1', range(2016, 2020)).read_games() File "C:\Program Files (x86)\Python38-32\lib\site-packages\footballdata\MatchHistory.py", line 52, in read_games self._download_and_save(url, filepath) File "C:\Program Files (x86)\Python38-32\lib\site-packages\footballdata\MatchHistory.py", line 129, in _download_and_save filepath_tmp.rename(filepath) File "C:\Program Files (x86)\Python38-32\lib\pathlib.py", line 1358, in rename self._accessor.rename(self, target) FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'tmpfile' -> 'data\MatchHistory_P1_1617.csv'
This error occurs with any call to the read_games() method that I have tried
Did you ever solve this? getting the same error.
mhist = foo.MatchHistory('POR-Liga 1', range(2016, 2020)).read_games()
Traceback (most recent call last): File "<pyshell#9>", line 1, in
mhist = foo.MatchHistory('POR-Liga 1', range(2016, 2020)).read_games()
File "C:\Program Files (x86)\Python38-32\lib\site-packages\footballdata\MatchHistory.py", line 52, in read_games
self._download_and_save(url, filepath)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\footballdata\MatchHistory.py", line 129, in _download_and_save
filepath_tmp.rename(filepath)
File "C:\Program Files (x86)\Python38-32\lib\pathlib.py", line 1358, in rename
self._accessor.rename(self, target)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'tmpfile' -> 'data\MatchHistory_P1_1617.csv'
This error occurs with any call to the read_games() method that I have tried