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

[ERROR] Binary Location Must be a String #262

Closed femboyjophiel closed 1 year ago

femboyjophiel commented 1 year ago

Before submitting a bug report...

Describe the bug

When trying to run it, I get this error.

Copy and paste your error

New version available ! Removing old files... Downloading... Extracting... Done ! Starting... ←[38;5;39m2023-08-12 22:09:22,778 [INFO] ****myemail****←[0m ←[38;5;39m2023-08-12 22:09:23,286 [INFO] Using default request storage←[0m ←[38;5;39m2023-08-12 22:09:23,293 [INFO] Created proxy listening on 127.0.0.1:3063←[0m ←[38;5;39m2023-08-12 22:09:23,293 [INFO] Using undetected_chromedriver←[0m ←[38;5;39m2023-08-12 22:09:24,203 [INFO] patching driver executable C:\Users\Nate\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe←[0m ←[38;5;196m2023-08-12 22:09:24,780 [ERROR] TypeError: Binary Location Must be a String←[0m Traceback (most recent call last): File "C:\Users\Nate\Downloads\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\main.py", line 21, in main executeBot(currentAccount) File "C:\Users\Nate\Downloads\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\main.py", line 108, in executeBot with Browser( File "C:\Users\Nate\Downloads\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\src\browser.py", line 41, in init self.webdriver = self.browserSetup() File "C:\Users\Nate\Downloads\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\src\browser.py", line 76, in browserSetup driver = webdriver.Chrome( File "C:\Python310\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in init super().init(*args, **kwargs) File "C:\Python310\lib\site-packages\undetected_chromedriver__init.py", line 372, in init__ options.binary_location = ( File "C:\Python310\lib\site-packages\selenium\webdriver\chromium\options.py", line 55, in binary_location raise TypeError(self.BINARY_LOCATION_ERROR) TypeError: Binary Location Must be a String

Screenshots

image

Value of dashboard variable

https://gist.github.com/femboyjophiel/78d41ffd5471447bd32143c723198616#file-dashboard-txt

udu3324 commented 1 year ago

you might want to remove your email to prevent scrapers

charlesbel commented 1 year ago

Please make sure every brower-related dependencies are up to date : pip install selenium selenium-wire undetected-chromedriver --upgrade

femboyjophiel commented 1 year ago

Please make sure every brower-related dependencies are up to date : pip install selenium selenium-wire undetected-chromedriver --upgrade

It turns out its a problem with selenium, the browser location is set to none by default so it causes an error. It still doesnt work but i guess this problem is resolved

charlesbel commented 1 year ago

Looks like Chrome is not installed or not installed in the default location, could you confirm ?