Open avilabss opened 2 years ago
This is a duplicate. Your error message is barely readable, please format it.
File "C:\Users\USER\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
It means your Chrome executable hasn't been found, uc.find_chrome_executable()
returns None
:
import undetected_chromedriver as uc
print(uc.find_chrome_executable()) # print nothing
So your Chrome browser is probably not installed in its standard path. Reinstall it or use browser_executable_path
argument for uc.Chrome()
to specify your browser executable path (please check the docstring here).
I am reinstalling with default settings, still it fails to find
uc.find_chrome_executable()
return ?EDIT: thanks for formatting the error log, it helps.
It returns -> None
What's the actual path of your Chrome browser executable on your system ?
EDIT : when you've found out use browser_executable_path
argument to point to it and please close the bug.
Pls answer that
Hi, we can consider this close, I'm no longer using the project as it never worked for me
Are you using the app on the server?
if the server is headless then you would need to use xvfb along with selenium
xfvb nedir ?
I'm using Windows Server 2019
we can talk on discord: https://discord.gg/jv6K8rrX