centos在selenium中使用Chromedriver时Permission denied,权限错误的解决方法
2019-03-28 15:46
309 查看
centos在selenium中使用Chromedriver时Permission denied,权限错误的解决方法
错误
Traceback (most recent call last): File “/home/ly/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py”, line 76, in start stdin=PIPE) File “/usr/lib/python3.6/subprocess.py”, line 709, in init restore_signals, start_new_session) File “/usr/lib/python3.6/subprocess.py”, line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: ‘chromedriver’ During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/home/ly/Desktop/robot/day_06/01_try_selenium.py”, line 6, in driver = webdriver.Chrome() File “/home/ly/.local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py”, line 73, in init self.service.start() File “/home/ly/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py”, line 88, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home Process finished with exit code 1
解决办法
终端 sudo chmod +x chromedriver
相关文章推荐
- 使用selenium+chromedriver调试错误: unrecognized chrome option : mobileEmulation
- CentOS7下ftp的介绍使用,以及文件传输553错误的解决方法
- python爬虫,selenium使用,Firefox-chrome-IE问题解决方法,selenium的基本操作
- Python使用Selenium测试WebApp在定位元素和使用元素属性报的莫名其妙错误的终极解决方法
- centos使用vim命令出现E325错误解决方法
- 关于centos使用yum命令安装时出现 Invalid GPG Key 错误到解决方法。
- 使用浏览器wpf应用程序时访问数据库需要报权限错误的解决方法
- 使用ssh连接centos出现密钥错误的解决方法
- python中使用selenium调用Firefox缺少geckodriver解决方法
- 大数据之Hadoop平台(四)Centos6.5(64bit)Hadoop2.5.1、Zookeeper3.4.6、Hbase0.98.6.1安装使用过程中错误及解决方法
- centos下使用selenium+chrome+chromedriver
- Qt出现“QSqlDatabase: QMYSQL driver not loaded”和“启动程序失败,路径或者权限错误”解决方法
- selenium执行chromedriver.exe停止工作问题解决方法
- Centos7下安装使用Pyinstaller及Python library not found错误解决方法
- 安装CentOS碰到一错误的解决方法(图)
- 使用OleDbCommandBuilder时出现“Insert into 语句的语法错误”的解决方法
- 使用OleDbCommandBuilder时出现“Insert into 语句的语法错误”的解决方法
- 狂暴的菜鸟之CentOS5.5环境下常见错误信息及解决方法【持续更新中。。。】
- "在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误"的解决方法
- VS2005+ACCESS WEB程序出错数据访问权限错误的解决方法