-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[🐛 Bug]: Selenium 4.21 Python — cannot load selenium-manager #13974
Comments
@workflowsguy, 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! |
Hi, @workflowsguy. Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue. Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough. Reply to this issue when all information is provided, thank you. |
We need more information about this issue in order to troubleshoot. Please turn on logging and re-run your code. Information on how to adjust logs for your language can be found in our |
Hmm, it doesn't want to execute selenium-manager. What do you get when you run:
You want |
This is the output
This was not clear to me from the documentation... |
Yes, but I did not land on that page, but on another one with a code example that just used |
Hmm, weird that it didn't want to execute selenium manager the first time, but it worked manually. For the sake of determining if there is a bug in our code that we need to fix, was the original error repeatable? Does it work for you to delete the outdated driver at that location (instead of specifying the location in the service class)? |
Sorry, the actual output for
Having to keep switching between 4.20 and 4.21 makes this really difficult for me... |
@diemol / @bonigarcia is there anything we changed in 4.21 for how we are deploying selenium-manager in Python? |
Nothing changed in the Rust side in release 4.21: https://github.com/SeleniumHQ/selenium/blob/trunk/rust/CHANGELOG.md#0421 I don't know if something changed in Python related to this. |
Maybe something went bad in the specific install? Can you try using the nightly release? |
I am not intricately familiar with the build process for Python packages, but I have switched between 4.20 and 4.21 several times now in the last days (using I have capacity to test the nightly release on the weekend, but before I do this: If nothing in the code has changed, does the same hold true for the tools in the build chain? I have only heard back from one of the package authors, who suspected that this is caused by a change/bug in Apple's tool chain. He released a new version created with different compile options that no longer crashes. |
Selenium Manager is a Rust binary, so I don't discard a dependency update that can have side effects. However, do you get the same errors when you try on a colleague's machine? Maybe we can isolate the issue that way. |
The thing to keep in mind here is that you are the only one reporting this issue even a week after release, so whatever the cause, it likely involves something specific about your system. |
Oh, dynamic linking... It might be related to the machine where selenium-manager binaries were produced. Can we see what exactly machines (OS, Arch) were used to build binaries? @workflowsguy can you please share output of the following command? (hopefully it works on MacOS)
|
@bonigarcia, |
Seems this env var should help to support older MacOS versions (<13), similar case - rust-lang/rustup#3710 |
There is no
gives
gives
What caught my attention in this output are the lines
When running
An internet search for
Running Selenium Manager on a machine with macOS 11.7.10 works as expected. |
Really do you need Python 3.12? Maybe if you use Python 3.10 it work. Also, upgraded your Firefox Version? above i seen that: |
I have prepared different selenium-manager binaries for macOS using different setups. @workflowsguy Can you please have a try with them? [1] selenium-manager-macos : Compiled using Rust 1.77.2. Please download the previous binaries, execute them in the command line, and share the results here. Thanks. |
This gives the same error as I originally reported
This works! |
Mac 10.13 went out of support 3 years ago. I think we're ok only supporting officially supported OS versions like we do for everything else. |
From my point of view... if we can support as minimum version of something without big effort then just do it. When we feel that supporting old stuff takes more and more, then we can just announce "sorry, we stopped to support it because of even your vendor stopped supporting it". Particularly for this issue - one line of code change makes users happy. Why not. |
The error happened because it uses newer load command APIs which presumably include performance/feature improvements. Setting an older target prevents using any newer APIs which may be limiting. Are we sure everything actually works in 10.12? Do we need to have tests to verify it? The concerns are extra maintenance burden and lack of latest features. |
I am closing this because we have yet to get more information. |
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs. |
What happened?
After upgrading Selenium from 4.20 to 4.21, the existing geckodriver is no longer found.
In the console, I can see that the binary is in
/opt/local/bin/geckodriver
However, my script that has worked until yesterday with Selenium 4.20, now outputs
NoSuchDriverException: Message: Unable to obtain driver for firefox; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
Adding the line
service = webdriver.ChromeService(executable_path='/opt/local/bin/geckodriver')
to my code has no effect.
How can we reproduce the issue?
Relevant log output
Operating System
macOS 10.13.6
Selenium version
Python 4.21
What are the browser(s) and version(s) where you see this issue?
Firefox 115.11.0(esr)
What are the browser driver(s) and version(s) where you see this issue?
geckodriver 0.30.0
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: