[GH-ISSUE #389] Error when trying a simple call #74

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

Originally created by @sgilliar37 on GitHub (Oct 2, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/389

I'm just starting with soccerdata, but have a python and programming background. The code I'm having an issue with is:

import soccerdata as sd

fbref = sd.FBref()

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

leagues = fbref.available_leagues()

print(leagues)

The error is happening on the 2nd line of code when calling fbref.

Traceback (most recent call last):

  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/steve/PycharmProjects/soccer/venv/lib/python3.9/site-packages/soccerdata/__init__.py", line 17, in <module>
    from .fbref import FBref
  File "/Users/steve/PycharmProjects/soccer/venv/lib/python3.9/site-packages/soccerdata/fbref.py", line 9, in <module>
    from lxml import etree, html
ImportError: dlopen(/Users/steve/PycharmProjects/soccer/venv/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_exsltDateXpathCtxtRegister'

Is this a version issue with installed packages? I have lxml installed for this project and it's worked for other projects that I've used it for. Could it be a conflict with a different version? Any help is greatly appreciated.

Steve

Originally created by @sgilliar37 on GitHub (Oct 2, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/389 I'm just starting with soccerdata, but have a python and programming background. The code I'm having an issue with is: ``` import soccerdata as sd fbref = sd.FBref() player_season_stats = fbref.read_player_season_stats(stat_type="standard") leagues = fbref.available_leagues() print(leagues) ``` The error is happening on the 2nd line of code when calling fbref. Traceback (most recent call last): ``` File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/Users/steve/PycharmProjects/soccer/venv/lib/python3.9/site-packages/soccerdata/__init__.py", line 17, in <module> from .fbref import FBref File "/Users/steve/PycharmProjects/soccer/venv/lib/python3.9/site-packages/soccerdata/fbref.py", line 9, in <module> from lxml import etree, html ImportError: dlopen(/Users/steve/PycharmProjects/soccer/venv/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_exsltDateXpathCtxtRegister' ``` Is this a version issue with installed packages? I have lxml installed for this project and it's worked for other projects that I've used it for. Could it be a conflict with a different version? Any help is greatly appreciated. Steve
kerem closed this issue 2026-03-02 15:55:33 +03:00
Author
Owner

@sgilliar37 commented on GitHub (Oct 3, 2023):

This issue was with pycharm, not with the installation of this package.

<!-- gh-comment-id:1743976329 --> @sgilliar37 commented on GitHub (Oct 3, 2023): This issue was with pycharm, not with the installation of this package.
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#74
No description provided.