raghavkhanna30 / instagram-bot

instagram bot written in python. it will work on hashtags.
MIT License
3 stars 4 forks source link

Getting the chromedriver error. Any tips on how to fix ? Thanks. #3

Open princepatni opened 3 years ago

princepatni commented 3 years ago

.. .. .. .. .. .. .. .. ._. Workspace in use: "C:/Users/pripatni/InstaPy"

.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ._. INFO [2020-11-30 15:21:40] [prince_python] Using built in instapy-chromedriver executable (version 2.44) ERROR [2020-11-30 15:21:42] [prince_python] Message: unknown error: cannot find Chrome binary (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90),platform=Windows NT 10.0.18363 x86_64) Traceback (most recent call last): File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy\browser.py", line 121, in set_selenium_local_session browser = webdriver.Chrome(chromedriver_location, File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init RemoteWebDriver.init( File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90),platform=Windows NT 10.0.18363 x86_64)

Traceback (most recent call last): File "C:/Users/pripatni/AppData/Local/Programs/Python/Python39/Practice/prince_python.py", line 3, in session = InstaPy(username="prince_python", password="**((", headless_browser=True) File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy\instapy.py", line 276, in init self.set_selenium_local_session() File "C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy\instapy.py", line 328, in set_selenium_local_session raise InstaPyError(err_msg) instapy.exceptions.InstaPyError: ensure chromedriver is installed at C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy_chromedriver\chromedriver_win32.exe


I have chromedriver exactly at this path in error : C:\Users\pripatni\AppData\Local\Programs\Python\Python39\lib\site-packages\instapy_chromedriver\

Thanks !