InstaPy / instapy-quickstart

💨 Simply get InstaPy up and running in minutes.
GNU General Public License v3.0
766 stars 792 forks source link

Error, unable to determine correct filename for 64bit linux #177

Open Johhhhhhan opened 4 years ago

Johhhhhhan commented 4 years ago

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 commented 4 years ago

ah fixed it

azeem1234567890 commented 4 years ago

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

Braslerl commented 4 years ago

ah fixed it

can you share how you fixed it?

Ronster2018 commented 4 years ago

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.

woensug-choi commented 4 years ago

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

Robin-taylor97 commented 2 years ago

ah fixed it

how did you fix it? Please share the solution.

Be55am commented 2 years ago

to make the solution clear do the following :