Instapy: webdriverdownloader raises RuntimeError

Created on 13 Jan 2020  Â·  23Comments  Â·  Source: timgrossmann/InstaPy

hi, I've installed InstaPy by pip3
when I run this

import instapy
instapy.InstaPy(username='USERNAME',password='PASSWROD)

I get this error

Error, unable to determine correct filename for Nonebit linux
"/webdriverdownloader.py", line 324, in get_download_url
    raise RuntimeError(info_message)
RuntimeError: Error, unable to determine correct filename for Nonebit linux

what is wrong?

Most helpful comment

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

All 23 comments

Your linux is likely not known and you will have to download the mozila webdriver customly and set it up or use it on a machine with ubuntu or similar.

Nope I was wrong, if you reinstall it gives a similar error on windows too.
RuntimeError: Error, unable to determine correct filename for Nonebit win

I have used instapy gui to be specific

I´m having the same problem like @Alirezamn93, on a Windows 10 build:1903

sudo vi /usr/local/lib/python3.7/dist-packages/webdriverdownloader-1.1.0.1-py3.7.egg/webdriverdownloader/webdriverdownloader.py

make change in 124 line
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
to
download_url = self.get_download_url(version, os_name=os_name, bitness="64")

if then it will raise such error:
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
just install firefox-esr:
sudo apt-get install firefox-esr

sudo vi /usr/local/lib/python3.7/dist-packages/webdriverdownloader-1.1.0.1-py3.7.egg/webdriverdownloader/webdriverdownloader.py

make change in 124 line
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
to
download_url = self.get_download_url(version, os_name=os_name, bitness="64")

This fixed it for me on Win10_1909. The line is currently 129 (maybe because slightly other py-version).
After the first start of windows_start.bat one more error came up, but after the second start it worked well (started Firefox and did its thing).

No meu caso tambem resolveu estou win 10

Isn't this configurable from the quickstart.py somehow? Would be much cleaner than changing source code

Ok, I fixed it for me by downloading geckodriver manually and specifying the path when creating the InstaPy session inside the quickstart:

session = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=False,
                  geckodriver_path='driver/geckodriver.exe')

I have the same problem

Ok, I fixed it for me by downloading geckodriver manually and specifying the path when creating the InstaPy session inside the quickstart:

session = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=False,
                  geckodriver_path='driver/geckodriver.exe')

and for linux how to configure?

sudo vi /usr/local/lib/python3.7/dist-packages/webdriverdownloader-1.1.0.1-py3.7.egg/webdriverdownloader/webdriverdownloader.py

make change in 124 line
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
to
download_url = self.get_download_url(version, os_name=os_name, bitness="64")

thanks! this is the solution in both [WIN & LINUX]

from instapy import InstaPy
from instapy import smart_run

session = InstaPy(username='xxxxxxx', password='xxxxxxx')

with smart_run(session):
session.set_do_follow(enabled = True, percentage = 100)
session.set_do_like(enabled = True, percentage= 100)

session.like_by_tags(['xxxxxxx', 'xxxxxx', 'xxxxxxxxxx'], amount = 150)

comentarios = ['xxxxxxxxx']
session.set_do_comments(enable=True, percentage=95)
session.set_comments(comentarios, media= 'Photo')
session.join_pods()

ERROR: WIndows 10 64 bits
Error, unable to determine correct filename for Nonebit win
Traceback (most recent call last):
File "hastag.py", line 4, in
.
.
.
RuntimeError: Error, unable to determine correct filename for Nonebit win

Could the noble colleagues help me, please ??

I'm currently hitting the same issue.Setting the bitness to "64" doesn't help.

Workspace in use: "/home/dario/InstaPy"
Error, unable to determine correct filename for 64bit linux
Traceback (most recent call last):
File "/dockerdata/instapy/getStats.py", line 10, in
headless_browser=True)
File "/home/dario/.local/lib/python3.7/site-packages/instapy/instapy.py", line 322, in __init__
self.logger,
File "/home/dario/.local/lib/python3.7/site-packages/instapy/browser.py", line 114, in set_selenium_local_session
driver_path = geckodriver_path or get_geckodriver()
File "/home/dario/.local/lib/python3.7/site-packages/instapy/browser.py", line 36, in get_geckodriver
sym_path = gdd.download_and_install()[1]
File "/home/dario/.local/lib/python3.7/site-packages/webdriverdownloader/webdriverdownloader.py", line 177, in download_and_install
show_progress_bar=show_progress_bar)
File "/home/dario/.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="64")
File "/home/dario/.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 64bit linux

Same error on a fresh installation on another machine.

I have the same error @darox..

It doesnt appear more: RuntimeError: Error, unable to determine correct filename for Nonebit win

Even setting bitness to 64: RuntimeError: Error, unable to determine correct filename for 64bit linux

I've already:

  • [x] Reinstall firefox
  • [x] Reinstall webdriverdownloader
  • [x] Reinstall instapy
  • [x] Use another Linux distro

Hello all, same error also for me : RuntimeError: Error, unable to determine correct filename for 64bit linux

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

^^ This is the correct solution. Please follow this.

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

I can confirm. Thank you!

Fixes the issue for bare metal but not for the docker version of instapy.

I confirm too. Gracias!

sudo pacman -S geckodriver on Arch/Manjaro

Solved too! awesome! Thank you!

Il giorno gio 30 lug 2020 alle ore 12:26 robertcodron <
[email protected]> ha scritto:

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/timgrossmann/InstaPy/issues/5282#issuecomment-666283451,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH4YA5J66MSFPHBD4EJKHY3R6FDENANCNFSM4KGJ5D7A
.

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

It solved the problem by me as well, thanks!

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

perfect

Hi,
On Ubuntu 19.10 :
sudo apt install firefox-geckodriver
fix the issue for me

Worked, thanks.

Was this page helpful?
0 / 5 - 0 ratings