breuerfelix/instapy-gui

RuntimeError: Error, unable to determine correct filename for 64bit linux : Docker Image

Vikaskumargd opened this issue · 4 comments

`Traceback (most recent call last):

Custom workspace set: "/usr/instapy/assets/InstaPy" :]

InstaPy Version: 0.6.12

File "bot.py", line 125, in

.. .. .. .. .. .. .. .. .. ..

session = InstaPy(**instapy_args)

Workspace in use: "/usr/instapy/assets/InstaPy"

File "/usr/local/lib/python3.7/site-packages/instapy/instapy.py", line 335, in init

geckodriver_log_level,

File "/usr/local/lib/python3.7/site-packages/instapy/browser.py", line 131, in set_selenium_local_session

driver_path = geckodriver_path or get_geckodriver()

File "/usr/local/lib/python3.7/site-packages/instapy/browser.py", line 38, in get_geckodriver

sym_path = gdd.download_and_install()[1]

File "/usr/local/lib/python3.7/site-packages/webdriverdownloader/webdriverdownloader.py", line 177, in download_and_install

show_progress_bar=show_progress_bar)

File "/usr/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 "/usr/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`

genbs commented

Check here https://github.com/timgrossmann/InstaPy/issues/5778
I solved with: sudo apt install firefox-geckodriver

same issue

i run the docker in win10

image

Check here timgrossmann/InstaPy#5778
I solved with: sudo apt install firefox-geckodriver

do you mean inside of docker container?

I had the same error. The following seemed to work for me.

  1. Open terminal in docker container

  2. Go to the geckodriver releases page. Find the latest version of the driver for your platform and download it. For example:
    wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz

  3. Extract the file with:
    tar -xvzf geckodriver*

  4. Make it executable:
    chmod +x geckodriver

  5. Move to bin folder
    mv geckodriver /usr/instapy/bin/

I might be better to include in the docker container during build, but haven't jumped into it just yet.