<tfoot id='q9ily'></tfoot>

      <bdo id='q9ily'></bdo><ul id='q9ily'></ul>
    <legend id='q9ily'><style id='q9ily'><dir id='q9ily'><q id='q9ily'></q></dir></style></legend>

      <small id='q9ily'></small><noframes id='q9ily'>

    1. <i id='q9ily'><tr id='q9ily'><dt id='q9ily'><q id='q9ily'><span id='q9ily'><b id='q9ily'><form id='q9ily'><ins id='q9ily'></ins><ul id='q9ily'></ul><sub id='q9ily'></sub></form><legend id='q9ily'></legend><bdo id='q9ily'><pre id='q9ily'><center id='q9ily'></center></pre></bdo></b><th id='q9ily'></th></span></q></dt></tr></i><div id='q9ily'><tfoot id='q9ily'></tfoot><dl id='q9ily'><fieldset id='q9ily'></fieldset></dl></div>

        'Webdrivers' 可执行文件可能有错误的权限.请参阅 https://sites.google.

        #39;Webdrivers#39; executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home(Webdrivers 可执行文件可能有错误的权限.请参阅 https://sites.google.com/a/chromium.org/chromedriver/home) - IT屋-程

        <small id='Ey3Fp'></small><noframes id='Ey3Fp'>

            <i id='Ey3Fp'><tr id='Ey3Fp'><dt id='Ey3Fp'><q id='Ey3Fp'><span id='Ey3Fp'><b id='Ey3Fp'><form id='Ey3Fp'><ins id='Ey3Fp'></ins><ul id='Ey3Fp'></ul><sub id='Ey3Fp'></sub></form><legend id='Ey3Fp'></legend><bdo id='Ey3Fp'><pre id='Ey3Fp'><center id='Ey3Fp'></center></pre></bdo></b><th id='Ey3Fp'></th></span></q></dt></tr></i><div id='Ey3Fp'><tfoot id='Ey3Fp'></tfoot><dl id='Ey3Fp'><fieldset id='Ey3Fp'></fieldset></dl></div>
          • <tfoot id='Ey3Fp'></tfoot>
          • <legend id='Ey3Fp'><style id='Ey3Fp'><dir id='Ey3Fp'><q id='Ey3Fp'></q></dir></style></legend>

                <bdo id='Ey3Fp'></bdo><ul id='Ey3Fp'></ul>
                  <tbody id='Ey3Fp'></tbody>
                  本文介绍了'Webdrivers' 可执行文件可能有错误的权限.请参阅 https://sites.google.com/a/chromium.org/chromedriver/home的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我查看了这两个文档,但没有找到答案.

                  I've looked around checked both documentations and have found no answer.

                  我一直在尝试使用 InstaPy 一个 instagram api for python.在出现多个错误并假设 InstaPy 只是遇到一些问题后,我尝试使用 selinium 对其进行原始编码.在插入示例代码并将其更改为我喜欢的之后,我只是确保这个可以工作.我收到一个新错误而不是旧错误,说权限可能不正确.我尝试重新安装并以管理员身份运行,但没有任何效果.我该如何解决这个问题和/或这是什么意思

                  I've been trying to use InstaPy a instagram api for python. After failing with multiple errors and assuming InstaPy is just having some issues so i tried to raw code it using selinium. after inserting the example code and alter it to my liking i just made sure this one would work. I received a new error instead of the old one saying the permissions may not be right. I have tried reinstall and running as admin but nothing works. how do i fix this and/or what does this mean

                  代码:

                  import time
                  from selenium import webdriver
                  
                  driver = webdriver.Chrome('C:Webdrivers')  # Optional argument, if not specified will search path.
                  driver.get('http://www.google.com/xhtml');
                  time.sleep(5) # Let the user actually see something!
                  search_box = driver.find_element_by_name('q')
                  search_box.send_keys('ChromeDriver')
                  search_box.submit()
                  time.sleep(5) # Let the user actually see something!
                  driver.quit()
                  

                  错误:

                  Traceback (most recent call last):
                    File "C:Program Files (x86)Python36-32libsite-packagesseleniumwebdrivercommonservice.py", line 74, in start
                      stdout=self.log_file, stderr=self.log_file)
                    File "C:Program Files (x86)Python36-32libsubprocess.py", line 707, in __init__
                      restore_signals, start_new_session)
                    File "C:Program Files (x86)Python36-32libsubprocess.py", line 990, in _execute_child
                      startupinfo)
                  PermissionError: [WinError 5] Access is denied
                  
                  During handling of the above exception, another exception occurred:
                  
                  Traceback (most recent call last):
                    File "C:WebdriversRawBot.py", line 5, in <module>
                      driver = webdriver.Chrome('C:Webdrivers')  # Optional argument, if not specified will search path.
                    File "C:Program Files (x86)Python36-32libsite-packagesseleniumwebdriverchromewebdriver.py", line 62, in __init__
                      self.service.start()
                    File "C:Program Files (x86)Python36-32libsite-packagesseleniumwebdrivercommonservice.py", line 86, in start
                      os.path.basename(self.path), self.start_error_message)
                  selenium.common.exceptions.WebDriverException: Message: 'Webdrivers' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
                  

                  推荐答案

                  这个错误信息...

                  WebDriverException: Message: 'Webdrivers' executable may have wrong permissions.
                  

                  ...暗示您尝试使用的 ChromeDriver 变体具有错误的权限.

                  ...implies that the ChromeDriver variant you are trying to use have wrong permissions.

                  你似乎已经尝试过了:

                  driver = webdriver.Chrome('C:Webdrivers')  # Optional argument, if not specified will search system $PATH variable.
                  

                  几句话:

                  • 如果您的底层 os 是windows:

                  • 您必须从 chromedriver_win32.zipnoreferrer">ChromeDriver 下载位置并解压后使用.
                  • 此外,如果您明确指定 Chromedriver 二进制路径,则还必须附加二进制扩展名,即 chromedriver.exe.
                  • 在提到 Chromedriver 二进制路径时,您必须使用单个 正斜杠 即 (/) 以及原始 (r) 开关,或者您必须使用转义的 反斜杠 即 (\).
                  • 所以你的有效代码行将是:

                  • You have to download chromedriver_win32.zip from the ChromeDriver Download Location and unzip it for usage.
                  • Additionally, if you are explicitly specifying the Chromedriver binary path you have to append the binary extension as well, effectively i.e. chromedriver.exe.
                  • While mentioning the Chromedriver binary path you have to either use the single forward slash i.e. (/) along with the raw (r) switch or you have to use the escaped backslash i.e. (\).
                  • So your effective line of code will be :

                  driver = webdriver.Chrome(executable_path=r'C:/path/to/chromedriver.exe')
                  

                  如果您的底层 os 是linux:

                  • 您必须从 chromedriver_linux64>ChromeDriver 下载位置并解压以供使用.
                  • 此外,如果您明确指定 Chromedriver 二进制路径,您不必必须为可执行二进制文件提供任何扩展名,即 chromedriver.
                  • 在提到 Chromedriver 二进制路径时,您必须使用单个 正斜杠即(/).
                  • 所以你的有效代码行将是:

                  • You have to download chromedriver_linux64 from the ChromeDriver Download Location and untar it for usage.
                  • Additionally, if you are explicitly specifying the Chromedriver binary path you don't have to provide any extension for the executable binary, effectively i.e. chromedriver.
                  • While mentioning the Chromedriver binary path you have to use the single forward slash i.e. (/).
                  • So your effective line of code will be :

                  driver = webdriver.Chrome(executable_path='/path/to/chromedriver')
                  

                  如果您的底层 os 是macos:

                  • 您必须从 chromedriver_mac64>ChromeDriver 下载位置并解压以供使用.
                  • 此外,如果您明确指定 Chromedriver 二进制路径,您不必必须为可执行二进制文件提供任何扩展名,即 chromedriver.
                  • 在提到 chromedriver 二进制路径时,您必须使用单个 正斜杠即(/).
                  • 所以你的有效代码行将是:

                  • You have to download chromedriver_mac64 from the ChromeDriver Download Location and untar it for usage.
                  • Additionally, if you are explicitly specifying the Chromedriver binary path you don't have to provide any extension for the executable binary, effectively i.e. chromedriver.
                  • While mentioning the chromedriver binary path you have to use the single forward slash i.e. (/).
                  • So your effective line of code will be :

                  driver = webdriver.Chrome(executable_path='/path/to/chromedriver')
                  

                  这篇关于'Webdrivers' 可执行文件可能有错误的权限.请参阅 https://sites.google.com/a/chromium.org/chromedriver/home的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Kivy 1.9.0 Windows package KeyError: #39;rthooks#39;(Kivy 1.9.0 Windows 包 KeyError: rthooks)
                  Python Kivy: how to call a function on button click?(Python Kivy:如何在按钮单击时调用函数?)
                  How to disable a widget in Kivy?(如何禁用 Kivy 中的小部件?)
                  Centering an object in Kivy(在 Kivy 中将对象居中)
                  How to downgrade to Python 3.4 from 3.5(如何从 Python 3.5 降级到 Python 3.4)
                  Change button or label text color in kivy(在kivy中更改按钮或标签文本颜色)

                  <small id='tWu0K'></small><noframes id='tWu0K'>

                  • <legend id='tWu0K'><style id='tWu0K'><dir id='tWu0K'><q id='tWu0K'></q></dir></style></legend>
                  • <tfoot id='tWu0K'></tfoot>

                      <tbody id='tWu0K'></tbody>
                    • <bdo id='tWu0K'></bdo><ul id='tWu0K'></ul>
                      <i id='tWu0K'><tr id='tWu0K'><dt id='tWu0K'><q id='tWu0K'><span id='tWu0K'><b id='tWu0K'><form id='tWu0K'><ins id='tWu0K'></ins><ul id='tWu0K'></ul><sub id='tWu0K'></sub></form><legend id='tWu0K'></legend><bdo id='tWu0K'><pre id='tWu0K'><center id='tWu0K'></center></pre></bdo></b><th id='tWu0K'></th></span></q></dt></tr></i><div id='tWu0K'><tfoot id='tWu0K'></tfoot><dl id='tWu0K'><fieldset id='tWu0K'></fieldset></dl></div>