Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No coder having problems running on mac #17

Open
AVwebcss opened this issue May 28, 2021 · 2 comments
Open

No coder having problems running on mac #17

AVwebcss opened this issue May 28, 2021 · 2 comments

Comments

@AVwebcss
Copy link

Hello,

Let me start by telling that my coding journey started today.

i followed all guidance to install python and instapy on my mac.

when I try to run the script I get an error

`instagrambot av$ python3 instagrambot.pyTraceback (most recent call last): File "/Users/av/Desktop/InstagramBot/instagrambot.py", line 7, in session = InstaPy(username = my_username,TypeError: init() got an unexpected keyword argument 'headLess_browser'

I then followed your instruction of

filename = [name for name in filenames if os_name + bitness in name and name[-7:] == '.tar.gz' ]

Now I'm having another error

InstaPy Version: 0.6.13
.. .. .. .. .. .. .. ..
Workspace in use: "/Users/av/InstaPy"
Error, unable to determine correct filename for 64bit macos
Traceback (most recent call last):
File "/Users/av/Desktop/InstagramBot/instabot.py", line 7, in
session = InstaPy(username=my_username,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/instapy/instapy.py", line 325, in init
self.browser, err_msg = set_selenium_local_session(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/instapy/browser.py", line 122, in set_selenium_local_session
driver_path = geckodriver_path or get_geckodriver()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/instapy/browser.py", line 38, in get_geckodriver
sym_path = gdd.download_and_install()[1]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/webdriverdownloader/webdriverdownloader.py", line 174, in download_and_install
filename_with_path = self.download(version,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/webdriverdownloader/webdriverdownloader.py", line 129, in download
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/webdriverdownloader/webdriverdownloader.py", line 324, in get_download_url
raise RuntimeError(info_message)
RuntimeError: Error, unable to determine correct filename for 64bit macos
AVs-MacBook-Pro-001:instagrambot av$

Can you help me please.

I set the headless_browser=True so I can run the script for multiple accounts at the same time.

Thank you

@AVwebcss
Copy link
Author

Hello. I don't even know how I to make questions here. Is there someone that read here?
Can someone help me please!
Tank you so much

@veldhaenchen
Copy link

you got a typo:

`instagrambot av$ python3 instagrambot.pyTraceback (most recent call last): File "/Users/av/Desktop/InstagramBot/instagrambot.py", line 7, in session = InstaPy(username = my_username,TypeError: init() got an unexpected keyword argument 'headLess_browser'

The Error says ....an unexpected keyword argument 'headLess_browser'

I set the headless_browser=True so I can run the script for multiple accounts at the same time.

here you say you have set headless_browser=True?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants