chromedriver_windows目录已经是everyone可读写权限了,为什么还会报错。
`C:\Automatic_ticket_purchase>python Automatic_ticket_purchase.py
Traceback (most recent call last):
File "C:\Python3.10.9\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Python3.10.9\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python3.10.9\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] 拒绝访问。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Automatic_ticket_purchase\Automatic_ticket_purchase.py", line 315, in
a.run()
File "C:\Automatic_ticket_purchase\Automatic_ticket_purchase.py", line 235, in run
self.login_cookies = tools.account_login('account', self.login_id, self.login_password)
File "C:\Automatic_ticket_purchase\tools.py", line 100, in account_login
driver = webdriver.Chrome(chromedriver, options=option)
File "C:\Python3.10.9\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Python3.10.9\lib\site-packages\selenium\webdriver\common\service.py", line 86, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver_windows' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
`