You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found this library today and I've been trying to implement it for several hours. I started with the basic code in the README, and also tried the code in the pinned message on the discussion board, but neither work. I keep getting the TypeError in the title above. I see several other issues opened for similar issues, none of which have any solutions posted - 1, 2, 3.
I'm running Linux Mint 21.3 Cinnamon and Python 3.10.12
My code:
import undetected_chromedriver as uc
driver = uc.Chrome()
driver.get('https://www.google.com')
The output:
Exception has occurred: TypeError
Binary Location Must be a String
File "xxx", line 2, in <module>
driver = uc.Chrome()
^^^^^^^^^^^
TypeError: Binary Location Must be a String
Confirmation of versions, locations from command line:
Exception has occurred: FileNotFoundError
[Errno 2] No such file or directory: '/tmp/chromedriver'
File "xxx", line 3, in <module>
driver = uc.Chrome(options = options, browser_executable_path="/usr/bin/chromium", driver_executable_path="/tmp/chromedriver")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/chromedriver'
(I tried it with /usr/bin/chromedriver also, just in case, but I got the same FileNotFoundError.)
I'm relatively new to Chromedriver and Linux in general, so it's entirely possible I'm missing something obvious, but I've been hitting my head against this for too long! Any help would be appreciated :)
The text was updated successfully, but these errors were encountered:
Hi, I found this library today and I've been trying to implement it for several hours. I started with the basic code in the README, and also tried the code in the pinned message on the discussion board, but neither work. I keep getting the TypeError in the title above. I see several other issues opened for similar issues, none of which have any solutions posted - 1, 2, 3.
I'm running Linux Mint 21.3 Cinnamon and Python 3.10.12
My code:
The output:
Confirmation of versions, locations from command line:
I also found this thread with a solution that appeared to work for others, however it just gives me a different error:
My code:
The output:
(I tried it with
/usr/bin/chromedriver
also, just in case, but I got the same FileNotFoundError.)I'm relatively new to Chromedriver and Linux in general, so it's entirely possible I'm missing something obvious, but I've been hitting my head against this for too long! Any help would be appreciated :)
The text was updated successfully, but these errors were encountered: