instapy的权限错误是什么原因?

问题描述 投票:1回答:1

会话开始时引起的错误,一开始还能用,但过了一会儿就坏了。

Traceback (most recent call last):
  File "C:\Users\Desktop\InstaPy-master\quickstart.py", line 12, in <module>
    session = InstaPy( username=insta_username, password=insta_password)
  File "C:\Users\Desktop\InstaPy-master\instapy\instapy.py", line 319, in __init__
    self.logger,
  File "C:\Users\Desktop\InstaPy-master\instapy\browser.py", line 114, in set_selenium_local_session
    driver_path = geckodriver_path or get_geckodriver()
  File "C:\Users\Desktop\InstaPy-master\instapy\browser.py", line 36, in get_geckodriver
    bin_path, sym_path = gdd.download_and_install()
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 196, in download_and_install
    shutil.copy2(src_file, dest_file)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 263, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\dalto\\InstaPy\\assets\\geckodriver.exe'
python instagram geckodriver
1个回答
0
投票

这个错误的出现是因为我们试图打开文件,但它已经在使用中了,所以简单的选项是 "打开"。从任务管理器中杀死任务geckodriver.exe。. 这样就能解决问题,因为我的问题已经解决了。

© www.soinside.com 2019 - 2024. All rights reserved.