[GH-ISSUE #600] Import issues #109

Closed
opened 2026-03-02 15:55:52 +03:00 by kerem · 1 comment
Owner

Originally created by @ivenos on GitHub (May 29, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/600

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'

Originally created by @ivenos on GitHub (May 29, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/600 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 <module> import soccerdata as sd File "-\soccerdata\__init__.py", line 18, in <module> from .clubelo import ClubElo File "-\soccerdata\clubelo.py", line 11, in <module> from ._common import BaseRequestsReader, standardize_colnames File "-\soccerdata\_common.py", line 18, in <module> import undetected_chromedriver as uc File "C:\Users\-\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\__init__.py", line 44, in <module> from .patcher import IS_POSIX File "C:\Users\-\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\patcher.py", line 4, in <module> from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils'
kerem closed this issue 2026-03-02 15:55:52 +03:00
Author
Owner

@ivenos commented on GitHub (May 29, 2024):

pip install setuptools

<!-- gh-comment-id:2136549875 --> @ivenos commented on GitHub (May 29, 2024): pip install setuptools
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#109
No description provided.