-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
ValueError: Could not get version for Chrome with this command #205
Comments
Confirming the same issue in Google Colab environment.
Output:
|
In the case of Google Colab, running on Linux, these are the functions associated with the error in webdriver_manager/utils.py The associated functions are:
It looks like Colab is defaulting to
This leads me to believe that there may have been a silent failure to install chromium. |
Hi! I'm also running into the same issue using windows + jupyter notebook:
Output:
|
Hello! Is there a solution to this problem.
output: |
Getting the same error, for some reason stream.read() is returning blank |
Hello! I encountered the same problem in MacOS. Current chrome_driver run is 92.0.45, and I have make sure that I installed the chrome driver using
Error:
|
The solution to this error is to add the path C:\Windows\System32\ to the Environment Variables:
|
Hi, I'm replicating the same error on Garuda Linux. On Windows, @beneko 's solution works for me. I'm also replicating that the following code seems to be the reason: Running the command in bash yields in the same error, but running it with fish, I get the following output: This output matches the regex pattern used and will return match='94.0.4606' |
@SergeyPirogov If you're interested I can work that into webdriver-manager and create a pull request. I know it's only for Windows, but at least it's more Pythonic that using subprocess. |
Too many different problems in one issue. 1 Question
1 Answer@shubhank-saxena may be you use Lines 62 to 80 in ab8d52a
'google-chrome --version' will start to work.
2 Question
2 Answer@liquidgenius Google Colab doesn't have google-chrome - so answer is the same as previous - use webdriver-manager with CHROMIUM config: Lines 62 to 80 in ab8d52a
Also - may be chromium is not installed properly in Google Colab, so try to install it: !apt-get update
!apt-get install chromium-browser And then execute the example webdriver-manager for Chromium above. Full code to prove that webdriver-manager can detect Chromium-browser in Google Colab: Google Colab
Question 3
Answer 3@HassanAlRabea this issue for windows is fixed now at master branch. Wait for 3.5.3 release and update for it. Please make separate issue if it will not work - that's topic about another problem. Question 4
Answer 4@ghost Update to 3.5.3 when it will be released. Fix is already at master branch. Question 5
Answer 5@hansingjunitra May be you use Chromium browser? Same answer - try Chromium config then Lines 62 to 80 in ab8d52a
Or make a separate issue. Question 6
Answer 6@paulschmeida determining versions on windows is already at master - update to 3.5.3 when it comes to pypi. Or you can test current master on your machine. Please create a separate issue if you will have a questions - because the topic is about another problem. |
I am trying to write a basic sanity check for a django application using selenium.
This is the code
I am getting the following error after running pytest
Error replicated in Mac M1 as well as Ubuntu 18.04
The text was updated successfully, but these errors were encountered: