Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Chromedriver Version NoneType Error #420

Open
2 tasks done
JartanFTW opened this issue Dec 18, 2023 · 0 comments
Open
2 tasks done

[BUG] Chromedriver Version NoneType Error #420

JartanFTW opened this issue Dec 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@JartanFTW
Copy link

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

On startup, during chromedriver creation, a comparison os made between self.patcher.version_main and 108, but the variable value is None causing an error.

Copy and paste your error

�[38;5;39m2023-12-18 12:33:31,946 [INFO] Using default request storage�[0m
�[38;5;39m2023-12-18 12:33:31,960 [INFO] Created proxy listening on 127.0.0.1:50594�[0m
�[38;5;39m2023-12-18 12:33:31,961 [INFO] Using undetected_chromedriver�[0m
�[38;5;196m2023-12-18 12:33:31,979 [ERROR] TypeError: '<' not supported between instances of 'NoneType' and 'int'�[0m
Traceback (most recent call last):
File "E:\Programming\Microsoft-Rewards-Farmer\main.py", line 24, in main
executeBot(currentAccount, notifier, args)
File "E:\Programming\Microsoft-Rewards-Farmer\main.py", line 127, in executeBot
with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser:
File "E:\Programming\Microsoft-Rewards-Farmer\src\browser.py", line 41, in init
self.webdriver = self.browserSetup()
File "E:\Programming\Microsoft-Rewards-Farmer\src\browser.py", line 77, in browserSetup
driver = webdriver.Chrome(
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in init
super().init(*args, **kwargs)
File "C:\Users\user1\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver_init_.py", line 386, in init
if self.patcher.version_main < 108:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Screenshots

When using the -v argument, the bot functions as expected and no error occurs.

Value of dashboard variable

https://gist.github.com/JartanFTW/0332b36ee2473c69841641687d0f65bd

I removed what sensitive user-specific data I found. If there is more, please let me know so I can remove it.

@JartanFTW JartanFTW added the bug Something isn't working label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant