instapy-quickstart icon indicating copy to clipboard operation
instapy-quickstart copied to clipboard

Error, unable to determine correct filename for 64bit linux

Open Johhhhhhan opened this issue 5 years ago • 7 comments

I dont really know much about python but i just wrote this little script and everytime i try to run something i get an this error "Error, unable to determine correct filename for 64bit linux" I would really appreciate help because im very new to python and to linux


Code

from instapy import InstaPy from instapy import smart_run

insta_username = 'blank' insta_password = 'blank'

session = InstaPy(username=insta_username, password=insta_password, headless_browser=False)

with smart_run(session): """ Activity flow """

session.set_relationship_bounds(enabled=True,
                                delimit_by_numbers=True,
                                max_followers=4590,
                                min_followers=45,
                                min_following=77)

session.set_dont_include(["friend1", "friend2", "friend3"])
session.set_dont_like(["pizza", "#store"])



session.follow_user_following(['min.uuus'], amount=200, randomize=False, sleep_delay=60)

""" Clean all followed user - Unfollow all users followed by InstaPy...
"""
session.unfollow_users(amount=500, InstapyFollowed=(True, "all"),
                       style="FIFO", unfollow_after=24 * 60 * 60,
                       sleep_delay=601)

""" Joining Engagement Pods...
"""
photo_comments = ['Nice shot! @{}',
    'Awesome! @{}',
    'Cool :thumbsup:',
    'Nice :open_mouth:',
    'Love @{}?',
    'Like @{}',
    'Looks awesome @{}',
    'Nice @{}',
    ':raised_hands: Yes!',
    'Epic @{} :muscle:']

session.set_do_comment(enabled = True, percentage = 95)
session.set_comments(photo_comments, media = 'Photo')
session.join_pods(topic='food', engagement_mode='no_comments')

Console output:

InstaPy Version: 0.6.10 .. .. .. .. .. .. .. .. Workspace in use: "/home/marcel/InstaPy" Error, unable to determine correct filename for 64bit linux Traceback (most recent call last): File "basic_follow-unfollow_activity.py", line 13, in headless_browser=False) File "/usr/local/lib/python3.6/dist-packages/instapy/instapy.py", line 323, in init self.logger, File "/usr/local/lib/python3.6/dist-packages/instapy/browser.py", line 120, 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

Johhhhhhan avatar Aug 11 '20 07:08 Johhhhhhan

ah fixed it

Johhhhhhan avatar Aug 11 '20 08:08 Johhhhhhan

can you please help me I am getting the same error! root@kali:~/instapy-quickstart-master# python3 quickstart.py InstaPy Version: 0.6.10 .. .. .. .. .. .. ._. Workspace in use: "/root/InstaPy" Error, unable to determine correct filename for 64bit linux Traceback (most recent call last): File "quickstart.py", line 24, in headless_browser=False) File "/usr/local/lib/python3.6/dist-packages/instapy/instapy.py", line 323, in init self.logger, File "/usr/local/lib/python3.6/dist-packages/instapy/browser.py", line 120, 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

azeem1234567890 avatar Aug 14 '20 10:08 azeem1234567890

ah fixed it

can you share how you fixed it?

tm904 avatar Sep 24 '20 17:09 tm904

Had the same here on ubuntu 20.04 LTS. The issue isn't with instapy, it was with the webdriverdownloader.py. I ran

sudo apt install firefox-geckodriver

And that fixed it for me.

Ronster2018 avatar Oct 08 '20 01:10 Ronster2018

I applied this changes to webdriverdownloader to fix the issue. https://github.com/leonidessaguisagjr/webdriverdownloader/compare/master...LeydenJar:fix_linux_64

woensug-choi avatar Nov 01 '20 06:11 woensug-choi

ah fixed it

how did you fix it? Please share the solution.

Robin-taylor97 avatar Dec 25 '21 14:12 Robin-taylor97

to make the solution clear do the following :

  • go to /usr/local/lib/python3.10/site-packages/webdriverdownloader/webdriverdownloader.py or wherever the error says the file is
  • update the line 320 to filename = [name for name in filenames if os_name + bitness in name and name[-3:] != 'asc' ]

Be55am avatar Jul 23 '22 16:07 Be55am