YandexMail-Account-Creator icon indicating copy to clipboard operation
YandexMail-Account-Creator copied to clipboard

Chromedriver no permission

Open Yoko11111111 opened this issue 1 year ago • 9 comments

Hello the browser closes instantly bc the chromedriver has no permission? My own Selenium project works fine and no problems with chromedriver

Yoko11111111 avatar Oct 05 '22 08:10 Yoko11111111

hello, have you got the correct version of the chromedriver? it must be the same version as your regular chrome browser. Also can you please add the error code here.

hendrikbgr avatar Oct 05 '22 09:10 hendrikbgr

Im using the chromedriver that is in the folder. But mine is also not working

Yoko11111111 avatar Oct 05 '22 12:10 Yoko11111111

Traceback (most recent call last): File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start self.process = subprocess.Popen(cmd, env=self.env, File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1438, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, PermissionError: [WinError 5] Zugriff verweigert

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\jamu\OneDrive\Desktop\YandexMail-Account-Creator\creator.py", line 120, in driver = uc.Chrome(options=options) File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver_init_.py", line 401, in init super(Chrome, self).init( File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in init super().init(DesiredCapabilities.CHROME['browserName'], "goog", File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 89, in init self.service.start() File "C:\Users\jamu\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 86, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: '41cb849134a2f786_chromedriver.exe' executable may have wrong permissions. Please see https://chromedriver.chromium.org/home

Yoko11111111 avatar Oct 05 '22 12:10 Yoko11111111

What OS are you using? Windows?

hendrikbgr avatar Oct 05 '22 12:10 hendrikbgr

yes

Yoko11111111 avatar Oct 05 '22 12:10 Yoko11111111

try downloading a fresh version of chromedriver form here please and replace what ever you have in the folder now and make sure its called chromedriver.exe

hendrikbgr avatar Oct 05 '22 12:10 hendrikbgr

also execute the chromedriver.exe once before running the script to ensure your system has the right permissions to execute that exe file

hendrikbgr avatar Oct 05 '22 12:10 hendrikbgr

https://stackoverflow.com/questions/49787327/selenium-on-mac-message-chromedriver-executable-may-have-wrong-permissions

hendrikbgr avatar Oct 05 '22 12:10 hendrikbgr

also for more support you can join my discord server: https://discord.gg/HF6V6Vq2MV

hendrikbgr avatar Oct 05 '22 12:10 hendrikbgr