charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
1.01k stars 268 forks source link

[BUG] TypeError: '<' not supported between instances of 'NoneType' and 'int' #285

Closed omarwastaken closed 1 year ago

omarwastaken commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

UD Chromedriver error?

Copy and paste your error

2023-08-17 14:23:49,265 [INFO] ****#####**** 2023-08-17 14:23:49,886 [INFO] Using default request storage 2023-08-17 14:23:49,892 [INFO] Created proxy listening on 127.0.0.1:59721 2023-08-17 14:23:49,892 [INFO] Using undetected_chromedriver 2023-08-17 14:23:49,899 [ERROR] TypeError: '<' not supported between instances of 'NoneType' and 'int' Traceback (most recent call last): File "D:\Microsoft-Rewards-Farmer\main.py", line 24, in main executeBot(currentAccount, notifier, args) File "D:\Microsoft-Rewards-Farmer\main.py", line 127, in executeBot with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser: File "D:\Microsoft-Rewards-Farmer\src\browser.py", line 41, in init self.webdriver = self.browserSetup() File "D:\Microsoft-Rewards-Farmer\src\browser.py", line 77, in browserSetup driver = webdriver.Chrome( File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in init super().init(*args, **kwargs) File "C:\Users\User\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

Browser doesn't launch

Value of dashboard variable

Browser doesn't launch

charlesbel commented 1 year ago

Are all your python packages up to date ? could your run pip install -r requirements.txt --upgrade to make sure ?

omarwastaken commented 1 year ago

That fixed it! Thank you 💖