probberechts / soccerdata

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, FotMob, Sofascore, SoFIFA, Understat and WhoScored.
https://soccerdata.readthedocs.io/en/latest/
Other
511 stars 87 forks source link

Import issues #600

Closed ivenos closed 1 month ago

ivenos commented 1 month ago

Hey guys, can you help me, I don't know what I am doing wrong: Just want to test the scaper.

import soccerdata as sd

fbref = sd.FBref()

player_season_stats = fbref.read_player_season_stats(stat_type="standard")

leagues = fbref.available_leagues()

print(leagues)

Output:

[Running] python -u "-\soccerdata-1.7.1\test.py" Traceback (most recent call last): File "-\soccerdata-1.7.1\test.py", line 1, in import soccerdata as sd File "-\soccerdata__init.py", line 18, in from .clubelo import ClubElo File "-\soccerdata\clubelo.py", line 11, in from ._common import BaseRequestsReader, standardize_colnames File "-\soccerdata_common.py", line 18, in import undetected_chromedriver as uc File "C:\Users-\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\init__.py", line 44, in from .patcher import IS_POSIX File "C:\Users-\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\patcher.py", line 4, in from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils'

ivenos commented 1 month ago

pip install setuptools