charlesbel / Microsoft-Rewards-Farmer

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

[BUG] OSError: [Errno 8] Exec format error: #340

Open ghost opened 1 year ago

ghost commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

Installed and reinstalled every requirement multiple times and I stell get this error

Copy and paste your error

username@raspberrypi:~/Microsoft-Rewards-Farmer $ python main.py 2023-09-09 13:45:38,262 [INFO] ****username@icloud.com**** 2023-09-09 13:45:39,536 [INFO] Using default request storage 2023-09-09 13:45:39,619 [INFO] Created proxy listening on 127.0.0.1:42207 2023-09-09 13:45:39,621 [INFO] Using undetected_chromedriver 2023-09-09 13:45:41,687 [INFO] patching driver executable /home/username/.local/share/undetected_chromedriver/undetected_chromedriver 2023-09-09 13:45:41,984 [ERROR] OSError: [Errno 8] Exec format error: '/home/username/.local/share/undetected_chromedriver/undetected_chromedriver' Traceback (most recent call last): File "/home/username/Microsoft-Rewards-Farmer/main.py", line 24, in main executeBot(currentAccount, notifier, args) File "/home/username/Microsoft-Rewards-Farmer/main.py", line 127, in executeBot with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser: File "/home/username/Microsoft-Rewards-Farmer/src/browser.py", line 41, in init self.webdriver = self.browserSetup() File "/home/username/Microsoft-Rewards-Farmer/src/browser.py", line 77, in browserSetup driver = webdriver.Chrome( File "/home/username/.local/lib/python3.9/site-packages/seleniumwire/undetected_chromedriver/webdriver.py", line 61, in init super().init(*args, **kwargs) File "/home/username/.local/lib/python3.9/site-packages/undetected_chromedriver/init.py", line 466, in init super(Chrome, self).init( File "/home/username/.local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init super().init( File "/home/username/.local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 53, in init self.service.start() File "/home/username/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 105, in start self._start_process(self._path) File "/home/username/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 206, in _start_process self.process = subprocess.Popen( File "/usr/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/home/username/.local/share/undetected_chromedriver/undetected_chromedriver'

Screenshots

The -v doesn't do anything as far as im concerned

Value of dashboard variable

    var dashboard = {"userStatus":{"levelInfo":{"activeLevel":"Level2","activeLevelName":"Level 2","progress":1754,"progressMax":500,"levels":
simon511000 commented 1 year ago

Are you on arm64 ?

ghost commented 1 year ago

Are you on arm64 ?

Yes, rasperry pi 3

simon511000 commented 1 year ago

So you have to download Chrome Driver manually for arm64 : https://github.com/electron/electron/releases/

ghost commented 1 year ago

So you have to download Chrome Driver manually for arm64 : https://github.com/electron/electron/releases/

I still get the same error message after installing Chrome Driver from the link provided

theskid31 commented 1 year ago

So you have to download Chrome Driver manually for arm64 : https://github.com/electron/electron/releases/

I still get the same error message after installing Chrome Driver from the link provided

did you fix this,if so what is the command to download in pi terminal

ghost commented 1 year ago

So you have to download Chrome Driver manually for arm64 : https://github.com/electron/electron/releases/

I still get the same error message after installing Chrome Driver from the link provided

did you fix this,if so what is the command to download in pi terminal

Sadly I have not fixed this issue

theskid31 commented 1 year ago

So you have to download Chrome Driver manually for arm64 : https://github.com/electron/electron/releases/

I still get the same error message after installing Chrome Driver from the link provided

did you fix this,if so what is the command to download in pi terminal

Sadly I have not fixed this issue

i found this i suppose if you can figure how to install it ,please let me know

https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/459#issuecomment-1015687828

theskid31 commented 1 year ago

on my way to making this work i just need to find where i can point msrewards farmer to the new chromedriver take a look here they've done something similar https://github.com/Yudaotor/EsportsHelper/issues/30#issuecomment-1515617281