有谁知道如何解决此问题?
来自控制台的堆栈跟踪,执行后报告错误:
InstaPy Version: 0.6.9
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "/home/zanettra/InstaPy"
Error, unable to determine correct filename for 64bit linux
Traceback (most recent call last):
File "unfollow.py", line 24, in <module>
headless_browser=False)
File "/usr/local/lib/python3.6/dist-packages/instapy/instapy.py", line
322, in __init__
self.logger,
File "/usr/local/lib/python3.6/dist-packages/instapy/browser.py", line 114, in set_selenium_local_session
driver_path = geckodriver_path or get_geckodriver()
File "/usr/local/lib/python3.6/dist-packages/instapy/browser.py", line 36, in get_geckodriver
sym_path = gdd.download_and_install()[1]
File "/usr/local/lib/python3.6/dist-packages/webdriverdownloader/webdriverdownloader.py", line 177, in download_and_install
show_progress_bar=show_progress_bar)
File "/usr/local/lib/python3.6/dist-packages/webdriverdownloader/webdriverdownloader.py", line 129, in download
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
File "/usr/local/lib/python3.6/dist-packages/webdriverdownloader/webdriverdownloader.py", line 324, in get_download_url
raise RuntimeError(info_message)
RuntimeError: Error, unable to determine correct filename for 64bit linux
最佳答案
此问题与InstaPy无关,但与webdriverdownloader中的webdriverdownloader.py有关。对于Ubuntu,您可以使用sudo apt install firefox-geckodriver
解决问题;其他操作系统将具有类似的解决方案来安装geckodirver。
关于python - 不稳定: "Error, unable to determine correct filename for 64bit linux",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/63235553/