y-tai / zodgame_checkin

Zodgame automatic check-in using github action. Please sync with this repo for latest version.
MIT License
67 stars 192 forks source link

由于selenium版本更新导致的无法运行 #27

Closed GrandDuke1106 closed 1 year ago

GrandDuke1106 commented 1 year ago
Run python3 ./zodgame/zodgame.py "***"
Traceback (most recent call last):
  File "D:\a\zodgame_checkin\zodgame_checkin\zodgame\zodgame.py", line 184, in <module>
    zodgame(cookie_string)
  File "D:\a\zodgame_checkin\zodgame_checkin\zodgame\zodgame.py", line 144, in zodgame
    driver = uc.Chrome(version_main=version, options = options)
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\undetected_chromedriver\__init__.py", line 453, in __init__
    super(Chrome, self).__init__(
TypeError: __init__() got an unexpected keyword argument 'executable_path'
Error: Process completed with exit code 1.

临时的解决方法是在requirements.txt文件中,第一行添加selenium==4.9.1

selenium==4.9.1
undetected-chromedriver

如果大佬有空可以针对新版本修一下

y-tai commented 1 year ago

Thanks. 我想先等一下,上游应该很快就会更新好,这样我就不必在这里控制版本号了

y-tai commented 1 year ago

undetected-chromedriver已经修复此问题,感谢您提供的方案。