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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰 Bug]: webdriver - Process unexpectedly closed with status 127 (Geckodriver) #11414
Comments
@self-dmz, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
What happens if you avoid |
`! --- The same exception is got - "Process unexpectedly closed with # status 127" import time driver = webdriver.Firefox() # Message: Process unexpectedly closed with status 127 driver = webdriver.Chrome() # -- works OK ! driver.maximize_window() time.sleep(3) |
@self-dmz can you try the same example with a virtual env that is not residing in |
I tired with new project created at /home... It fails with the same exception. webdriver.Chrome() works properly. The same script is used.
|
I got the same error, and a
You can see I am using a snap install of PyCharm which seems to be messing up the path to the firefox executable? (so I ran my code again in a terminal outside PyCharm and got a different error, but I guess that's a different issue):
plus a nice popup error message window |
Snap is a pain for selenium. It has its own driver and none of the driver managers support it. You need to explicitly pass on the location to the driver in the service constructor. @self-dmz are you also using snap? |
Following @titusfortner 's advice and this, the following works for me, within PyCharm and not needing to do anything special regarding Firefox profile locations:
Note that the
|
yes, firefox installed via snap. and the scheme described by @benxyzzy also works on my PC. |
many thanks, @benxyzzy! the code you provided works in my case. |
Hi, guys! I have such problem: NameError: name 'FirefoxService' is not defined |
@AntiPetrun Hi! Check your imports, because in issue description more common
|
Hello, still having the same issue... anyone knows how to fix it? I am using ubuntu 22 |
Hello, still having the same issue... anyone knows how to fix it? I am using ubuntu 20 |
As of Selenium 4.11, you don't need to try:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Hi!
Just trying to start working with Geckodriver get the following exception: "selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 127".
Using Chrome driver the code below works fine.
webdriver-manager==3.8.5
selenium==4.7.2
Thanks in advance
How can we reproduce the issue?
Relevant log output
Operating System
Linux Mint 20.3 x86_64; 5.4.0-135-generic
Selenium version
selenium==4.7.2
What are the browser(s) and version(s) where you see this issue?
Browser doesn't start, Firefox version = 107.0.1 (64)
What are the browser driver(s) and version(s) where you see this issue?
geckodriver-v0.32.0-linux64
Are you using Selenium Grid?
NO
The text was updated successfully, but these errors were encountered: