Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/344.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Geckodriver PermissionError:[Errno 13]权限被拒绝:';geckodriver.log';仅适用于任务调度器_Python_Python 3.x_Selenium_Geckodriver - Fatal编程技术网

Python Geckodriver PermissionError:[Errno 13]权限被拒绝:';geckodriver.log';仅适用于任务调度器

Python Geckodriver PermissionError:[Errno 13]权限被拒绝:';geckodriver.log';仅适用于任务调度器,python,python-3.x,selenium,geckodriver,Python,Python 3.x,Selenium,Geckodriver,我正试图使用任务调度器设置python web scraper在设定的时间运行,但我遇到了以下错误PermissionError:[Errno 13]权限被拒绝:'geckodriver.log'我不知道为什么,因为使用批处理文件或双击.py文件运行python脚本时会很有趣。任何人都知道为什么它只发生在任务调度器上 仅供参考:我正在使用一个批处理文件来调用python.exe和.py脚本,这就是任务调度器用来触发脚本的内容。我正在使用selenium和firefox 非常感谢。我通过检查具有最

我正试图使用任务调度器设置python web scraper在设定的时间运行,但我遇到了以下错误
PermissionError:[Errno 13]权限被拒绝:'geckodriver.log'
我不知道为什么,因为使用批处理文件或双击.py文件运行python脚本时会很有趣。任何人都知道为什么它只发生在任务调度器上

仅供参考:我正在使用一个批处理文件来调用python.exe和.py脚本,这就是任务调度器用来触发脚本的内容。我正在使用selenium和firefox


非常感谢。

我通过检查具有最高权限的运行并为Windows 10配置解决了此问题

我通过检查具有最高权限的运行并为Windows 10配置解决了此问题

我使用任务计划程序遇到了相同的问题。我尝试了/和\以及其他选项(以最高权限运行),但仍然存在问题。对我来说,有效的方法是将cd刻录到bat文件中的目录中

以前,我的.bat文件只是:

python "C:\path\to\some\directory\run.py"
我将.bat文件更新为:

cd "C:\path\to\some\directory"
python run.py

希望这能帮助其他遇到此问题的人。

我在任务计划程序中遇到了同样的问题。我尝试了/和\以及其他选项(以最高权限运行),但仍然存在问题。对我来说,有效的方法是将cd刻录到bat文件中的目录中

以前,我的.bat文件只是:

python "C:\path\to\some\directory\run.py"
我将.bat文件更新为:

cd "C:\path\to\some\directory"
python run.py
希望这能帮助其他遇到这种情况的人