ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.91k stars 1.16k forks source link

TypeError: expected str, bytes or os.PathLike object, not NoneType #285

Open dtomper opened 3 years ago

dtomper commented 3 years ago
>>> import undetected_chromedriver.v2 as uc
>>> driver = uc.Chrome()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Dtomper\AppData\Local\Programs\Python\Python39-32\lib\site-packages\undetected_chromedriver\v2.py", line 294, in __init__
    self.browser = subprocess.Popen(
  File "C:\Users\Dtomper\AppData\Local\Programs\Python\Python39-32\lib\subprocess.py", line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Dtomper\AppData\Local\Programs\Python\Python39-32\lib\subprocess.py", line 1356, in _execute_child
    args = list2cmdline(args)
  File "C:\Users\Dtomper\AppData\Local\Programs\Python\Python39-32\lib\subprocess.py", line 561, in list2cmdline
    for arg in map(os.fsdecode, seq):
  File "C:\Users\Dtomper\AppData\Local\Programs\Python\Python39-32\lib\os.py", line 822, in fsdecode
    filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not NoneType

which path am I supposed to give this function? I thought it automatically downloads the suitable chromedriver.exe version and patches it.

peppeinutile commented 3 years ago

Do you have Chrome installed on your machine?

willnaoosmith commented 2 years ago

same here