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

line 52, in binary_location raise TypeError(self.BINARY_LOCATION_ERROR) TypeError: Binary Location Must be a String #1927

Open
Vimer12 opened this issue Jun 21, 2024 · 3 comments

Comments

@Vimer12
Copy link

Vimer12 commented Jun 21, 2024

`from selenium import webdriver
import undetected_chromedriver

proxy = "ip_address:port"

options = webdriver.ChromeOptions()

options.add_argument(f'--proxy-server={proxy}')

driver = undetected_chromedriver.Chrome(options=options)

driver.get("http://example.com")`

c:/Users/Rozhkov/Documents/chrome/213.py
Traceback (most recent call last):
File "c:\Users\Rozhkov\Documents\chrome\213.py", line 10, in
driver = undetected_chromedriver.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rozhkov\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver_init_.py", line 372, in init
options.binary_location = (
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rozhkov\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\chromium\options.py", line 52, in binary_location
raise TypeError(self.BINARY_LOCATION_ERROR)
TypeError: Binary Location Must be a String
PS C:\Users\Rozhkov>
How to fix that on windows?

@warnes
Copy link

warnes commented Jun 24, 2024

This is also occuring on Ubuntu 22.04.4 LTS with Python 3.10.12.

@Mingyiz
Copy link

Mingyiz commented Jul 1, 2024

I met same issue in windows, anyone can give some suggestion

@rafaelneto2
Copy link

rafaelneto2 commented Aug 1, 2024

I also have this problem, was there any solution found?

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

4 participants