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] FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/undetected_chromedriver/undetected_chromedriver' #288

Open Micah123321 opened 1 year ago

Micah123321 commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

I used the Docker mirror based on Python: 3.10-Alpine, running the required dependencies, installed apk add-no-cache \ chromium \ chromium-chromedriver \ XVFB \ \ udev \ \ TTF-freefont \ fontconfig APK add-no-cache musl-dev , But execute python3 autopdate_main.py Elberry FilenotFounderror: [Errno 2] No Such File or Directory: '/root/.Local/share/undetect_Chromedriver/UndeTected_Chromedriver' I am convinced that this file already exists image

Copy and paste your error

root@QingLong:/ql/scripts/Microsoft-Rewards-Farmer-master $ python3 autoupdate_main.py Starting... 2023-08-17 20:11:16,522 [INFO] ****1569124799@qq.com**** 2023-08-17 20:11:17,635 [INFO] Using default request storage 2023-08-17 20:11:17,644 [INFO] Created proxy listening on 127.0.0.1:39143 2023-08-17 20:11:17,645 [INFO] Using undetected_chromedriver 2023-08-17 20:11:19,192 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver 2023-08-17 20:11:19,230 [ERROR] FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/undetected_chromedriver/undetected_chromedriver' Traceback (most recent call last): File "/ql/scripts/Microsoft-Rewards-Farmer-master/main.py", line 24, in main executeBot(currentAccount, notifier, args) File "/ql/scripts/Microsoft-Rewards-Farmer-master/main.py", line 127, in executeBot with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser: File "/ql/scripts/Microsoft-Rewards-Farmer-master/src/browser.py", line 41, in init self.webdriver = self.browserSetup() File "/ql/scripts/Microsoft-Rewards-Farmer-master/src/browser.py", line 77, in browserSetup driver = webdriver.Chrome( File "/usr/local/lib/python3.10/site-packages/seleniumwire/undetected_chromedriver/webdriver.py", line 61, in init super().init(*args, kwargs) File "/ql/scripts/Microsoft-Rewards-Farmer-master/src/undetected-chromedriver/undetected_chromedriver/init.py", line 466, in init super(Chrome, self).init( File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init super().init( File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 53, in init self.service.start() File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 105, in start self._start_process(self._path) File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 206, in _start_process self.process = subprocess.Popen( File "/usr/local/lib/python3.10/subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.10/subprocess.py", line 1863, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/undetected_chromedriver/undetected_chromedriver' 2023-08-17 20:11:19,237 [INFO] **69micah96@gmail.com**** 2023-08-17 20:11:20,011 [INFO] Using default request storage 2023-08-17 20:11:20,017 [INFO] Created proxy listening on 127.0.0.1:33789 2023-08-17 20:11:20,018 [INFO] Using undetected_chromedriver 2023-08-17 20:11:21,472 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver 2023-08-17 20:11:21,502 [ERROR] FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/undetected_chromedriver/undetected_chromedriver' Traceback (most recent call last): File "/ql/scripts/Microsoft-Rewards-Farmer-master/main.py", line 24, in main executeBot(currentAccount, notifier, args) File "/ql/scripts/Microsoft-Rewards-Farmer-master/main.py", line 127, in executeBot with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser: File "/ql/scripts/Microsoft-Rewards-Farmer-master/src/browser.py", line 41, in init self.webdriver = self.browserSetup() File "/ql/scripts/Microsoft-Rewards-Farmer-master/src/browser.py", line 77, in browserSetup driver = webdriver.Chrome( File "/usr/local/lib/python3.10/site-packages/seleniumwire/undetected_chromedriver/webdriver.py", line 61, in init super().init(*args, **kwargs) File "/ql/scripts/Microsoft-Rewards-Farmer-master/src/undetected-chromedriver/undetected_chromedriver/init.py", line 466, in init super(Chrome, self).init( File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init super().init( File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 53, in init self.service.start() File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 105, in start self._start_process(self._path) File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 206, in _start_process self.process = subprocess.Popen( File "/usr/local/lib/python3.10/subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.10/subprocess.py", line 1863, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/undetected_chromedriver/undetected_chromedriver'

Screenshots

image

Value of dashboard variable

none

charlesbel commented 1 year ago

I think you have issues with your permissions on this folder, the program might not be able to access to it so.