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

2024-04-26 17:32:49 发布

您现在位置:Python中文网/ 问答频道 /正文

会话启动时引起的错误,它一开始工作,但过了一段时间就崩溃了。你知道吗

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'

Tags: pathinpymasterlocallineusersappdata