[GH-ISSUE #269] Bug with selenium=4.10 #54

Closed
opened 2026-03-02 15:55:21 +03:00 by kerem · 2 comments
Owner

Originally created by @augustomaillo on GitHub (Jun 20, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/269

using selenium-4.10.0 (compatible with lib dependencies) raises error in undetected_chromedriver Chrome class init

how to reproduce
soccerdata==1.4.0
selenium==4.10.0

Code:

import soccerdata as sd
sd.WhoScored('ENG-Premier League', seasons=2021)

Output:

[06/19/23 22:29:31] INFO     No custom team name replacements found. You can configure these in /root/soccerdata/config/teamname_replacements.json.                                            _config.py:85
                    INFO     No custom league dict found. You can configure additional leagues in /root/soccerdata/config/league_dict.json.                                                   _config.py:159
                    INFO     Saving cached data to /root/soccerdata/data/WhoScored                                                                                                             _common.py:89

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<stdin> 1 <module>
1

whoscored.py 185 __init__
super().__init__(

_common.py 387 __init__
self._driver = self._init_webdriver()

_common.py 415 _init_webdriver
return uc.Chrome(options=chrome_options)

__init__.py 453 __init__
super(Chrome, self).__init__(

TypeError:
__init__() got an unexpected keyword argument 'executable_path'
Originally created by @augustomaillo on GitHub (Jun 20, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/269 using selenium-4.10.0 (compatible with lib dependencies) raises error in undetected_chromedriver Chrome class init how to reproduce soccerdata==1.4.0 selenium==4.10.0 Code: ``` import soccerdata as sd sd.WhoScored('ENG-Premier League', seasons=2021) ```` Output: ``` [06/19/23 22:29:31] INFO No custom team name replacements found. You can configure these in /root/soccerdata/config/teamname_replacements.json. _config.py:85 INFO No custom league dict found. You can configure additional leagues in /root/soccerdata/config/league_dict.json. _config.py:159 INFO Saving cached data to /root/soccerdata/data/WhoScored _common.py:89 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ <stdin> 1 <module> 1 whoscored.py 185 __init__ super().__init__( _common.py 387 __init__ self._driver = self._init_webdriver() _common.py 415 _init_webdriver return uc.Chrome(options=chrome_options) __init__.py 453 __init__ super(Chrome, self).__init__( TypeError: __init__() got an unexpected keyword argument 'executable_path' ```
kerem closed this issue 2026-03-02 15:55:22 +03:00
Author
Owner

@probberechts commented on GitHub (Jun 26, 2023):

I cannot reproduce this with

soccerdata==1.4.0
selenium==4.10.0
undetected-chromedriver==3.5.0

What version of undetected-chromedriver do you have?

<!-- gh-comment-id:1607064533 --> @probberechts commented on GitHub (Jun 26, 2023): I cannot reproduce this with soccerdata==1.4.0 selenium==4.10.0 undetected-chromedriver==3.5.0 What version of undetected-chromedriver do you have?
Author
Owner

@augustomaillo commented on GitHub (Jun 26, 2023):

Same version, 3.5.0
I faced this issue in a WSL2 environment, maybe this is the problem
But i downgrade the selenium version and crawler works

<!-- gh-comment-id:1607331625 --> @augustomaillo commented on GitHub (Jun 26, 2023): Same version, 3.5.0 I faced this issue in a WSL2 environment, maybe this is the problem But i downgrade the selenium version and crawler works
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#54
No description provided.