[GH-ISSUE #155] Import Error #35

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

Originally created by @spiros26 on GitHub (Jan 31, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/155

When trying to import the package, I get the following error:

Output exceeds the size limit. Open the full output data in a text editor


ValueError                                Traceback (most recent call last)
c:\Users\User\Desktop\FPL Project\test.ipynb Cell 3 in <cell line: 1>()
----> [1](vscode-notebook-cell:/c%3A/Users/User/Desktop/FPL%20Project/test.ipynb#W2sZmlsZQ%3D%3D?line=0) import soccerdata as sd
      [3](vscode-notebook-cell:/c%3A/Users/User/Desktop/FPL%20Project/test.ipynb#W2sZmlsZQ%3D%3D?line=2) # Create scraper class instance for the Premier League
      [4](vscode-notebook-cell:/c%3A/Users/User/Desktop/FPL%20Project/test.ipynb#W2sZmlsZQ%3D%3D?line=3) five38 = sd.FiveThirtyEight('ENG-Premier League', '1819')

File c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\soccerdata\__init__.py:15, in <module>
      3 __version__ = '1.3.3'
      5 __all__ = [
      6     'FiveThirtyEight',
      7     'ClubElo',
   (...)
     12     'SoFIFA',
     13 ]
---> 15 from .clubelo import ClubElo
     16 from .espn import ESPN
     17 from .fbref import FBref

File c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\soccerdata\clubelo.py:10, in <module>
      7 import pandas as pd
      8 from unidecode import unidecode
---> 10 from ._common import BaseRequestsReader, standardize_colnames
     11 from ._config import DATA_DIR, NOCACHE, NOSTORE, TEAMNAME_REPLACEMENTS
     13 CLUB_ELO_DATADIR = DATA_DIR / "ClubElo"
...
---> 33 import selenium.webdriver.chrome.service
     34 import selenium.webdriver.chrome.webdriver
     35 from selenium.webdriver.common.by import By

ValueError: source code string cannot contain null bytes
Originally created by @spiros26 on GitHub (Jan 31, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/155 When trying to import the package, I get the following error: Output exceeds the [size limit](command:workbench.action.openSettings?[). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?72f2db17-f9f8-4350-9a8b-9fdc1e0ca000) --------------------------------------------------------------------------- ``` ValueError Traceback (most recent call last) c:\Users\User\Desktop\FPL Project\test.ipynb Cell 3 in <cell line: 1>() ----> [1](vscode-notebook-cell:/c%3A/Users/User/Desktop/FPL%20Project/test.ipynb#W2sZmlsZQ%3D%3D?line=0) import soccerdata as sd [3](vscode-notebook-cell:/c%3A/Users/User/Desktop/FPL%20Project/test.ipynb#W2sZmlsZQ%3D%3D?line=2) # Create scraper class instance for the Premier League [4](vscode-notebook-cell:/c%3A/Users/User/Desktop/FPL%20Project/test.ipynb#W2sZmlsZQ%3D%3D?line=3) five38 = sd.FiveThirtyEight('ENG-Premier League', '1819') File c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\soccerdata\__init__.py:15, in <module> 3 __version__ = '1.3.3' 5 __all__ = [ 6 'FiveThirtyEight', 7 'ClubElo', (...) 12 'SoFIFA', 13 ] ---> 15 from .clubelo import ClubElo 16 from .espn import ESPN 17 from .fbref import FBref File c:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\soccerdata\clubelo.py:10, in <module> 7 import pandas as pd 8 from unidecode import unidecode ---> 10 from ._common import BaseRequestsReader, standardize_colnames 11 from ._config import DATA_DIR, NOCACHE, NOSTORE, TEAMNAME_REPLACEMENTS 13 CLUB_ELO_DATADIR = DATA_DIR / "ClubElo" ... ---> 33 import selenium.webdriver.chrome.service 34 import selenium.webdriver.chrome.webdriver 35 from selenium.webdriver.common.by import By ValueError: source code string cannot contain null bytes ```
kerem closed this issue 2026-03-02 15:55:13 +03:00
Author
Owner

@probberechts commented on GitHub (Jan 31, 2023):

Can you provide the full stack trace? I cannot really pinpoint where the error occurs.

<!-- gh-comment-id:1411180548 --> @probberechts commented on GitHub (Jan 31, 2023): Can you provide the full stack trace? I cannot really pinpoint where the error occurs.
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#35
No description provided.