-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
start error, TypeError: expected str, bytes or os.PathLike object, not NoneType #497
Comments
Reason Found: find_chrome_executable cannot find the path of my Chrome.exe
I test it:
Actully, my Chrome.exe is located in:
|
in some windows system, os.environ.get("PROGRAMFILES") will alwasy return "C:\Program Files (x86)", if you want to find "C:\Program Files", you should use os.environ.get("ProgramW6432 ") so
need change to :
refers: |
@evensonliu Hi, I have tried what you suggested but it still does not work. |
@evensonliu , @saif-byte , I got this stuff working. So i was running my script periodically using the crontab service in linux. The actual problem here is that the interpreter somehow was not able to find the chromium executable and then it gave that error: Then i went to my code and edited the initialization line
to this:
The |
thanks!
|
Hi,
I meet this error below, and I cannot solve it. Coud you help me ?
This error shows no matter "use_subprocess=True" is set or not.
[Environmant]
Python 3.8.8 (default, Apr 13 2021, 15:08:07) [MSC v.1916 32 bit (Intel)] :: Anaconda, Inc. on win32
undetected-chromedriver, both 3.1.2 and 3.1.3
chrome 98.0.4758.82(64)
The text was updated successfully, but these errors were encountered: