我最近安装了 InstaPy,并在互联网上下载了一个标准脚本。我知道开源代码没有任何问题,并且在论坛上说要下载 geckodriver。但是,我还没有找到合适的解决方案来安装 geckodriver,所以你们能告诉我解决这个问题的最佳方法吗?
错误:
>>> %Run basic_follow_unfollow_activity.py
InstaPy Version: 0.6.13
._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "/home/pi/InstaPy"
Error, unable to determine correct filename for 32bit linux
Traceback (most recent call last):
File "/home/pi/Desktop/basic_follow_unfollow_activity.py", line 36, in <module>
headless_browser=False)
File "/home/pi/.local/lib/python3.7/site-packages/instapy/instapy.py", line 338, in __init__
geckodriver_log_level,
File "/home/pi/.local/lib/python3.7/site-packages/instapy/browser.py", line 122, in set_selenium_local_session
driver_path = geckodriver_path or get_geckodriver()
File "/home/pi/.local/lib/python3.7/site-packages/instapy/browser.py", line 38, in get_geckodriver
sym_path = gdd.download_and_install()[1]
File "/home/pi/.local/lib/python3.7/site-packages/webdriverdownloader/webdriverdownloader.py", line 177, in download_and_install
show_progress_bar=show_progress_bar)
File "/home/pi/.local/lib/python3.7/site-packages/webdriverdownloader/webdriverdownloader.py", line 129, in download
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
File "/home/pi/.local/lib/python3.7/site-packages/webdriverdownloader/webdriverdownloader.py", line 324, in get_download_url
raise RuntimeError(info_message)
RuntimeError: Error, unable to determine correct filename for 32bit linux
我尝试了以下解决方案:
论坛上的此链接安装 geckodriver - https://www.raspberrypi.org/forums/viewtopic.php?t=167292
在终端中安装了 firefox ESR -
sudo apt-get install firefox-esr