Error, unable to determine correct filename for 64bit linux
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
ah fixed it
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
ah fixed it
can you share how you fixed it?
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.
I applied this changes to webdriverdownloader to fix the issue. https://github.com/leonidessaguisagjr/webdriverdownloader/compare/master...LeydenJar:fix_linux_64
ah fixed it
how did you fix it? Please share the solution.
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' ]