-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Wire Mode: No module named 'blinker._saferef'
if installing selenium-wire
alone
#2782
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
Comments
This was resolved in For regular pip install blinker==1.7.0 |
…Linux 9 - Versions of blinker >1.7 cause an error: `No module named 'blinker._saferef'` when used with `selenium-wire`. - As `selenium-wire` is no longer maintained ([selenium-wire repository](https://github.com/wkeeling/selenium-wire)), downgrading blinker to version 1.7.0 is necessary to avoid this issue. - For reference, see this related discussion: [SeleniumBase issue #2782](seleniumbase/SeleniumBase#2782). - Upgrade geckodriver to v0.34.0
issue of selenium: seleniumbase/SeleniumBase#2782
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * Remove mocking of private ops class according to canonical/operator#1369 and canonical/seldon-core-operator#268 * Pin blinker due to seleniumbase/SeleniumBase#2782 Ref canonical/bundle-kubeflow#1177
Thank you for adding the note about the work-around for selenium-wire. It is pretty amazing that I was able to search for a fix, easily find this and, you know, it just worked. I am a bit shocked. Wonderful job. :--) |
Wire Mode:
No module named 'blinker._saferef'
if installingselenium-wire
alone.Wire Mode (
--wire
/wire=True
) uses theselenium-wire
library. Theselenium-wire
library has a dependency onblinker
. The latest version ofblinker
no longer hasblinker._saferef
, whichselenium-wire
needs. This leads toModuleNotFoundError: No module named 'blinker._saferef'
.Since https://github.com/wkeeling/selenium-wire is no longer maintained (and therefore won't make changes or pin dependencies) it's up to
SeleniumBase
to make the necessary changes. One way is by forcingblinker==1.7.0
, which does not have the issue.Because Wire Mode is optional, I don't want to create a dependency on
blinker==1.7.0
in the standard SeleniumBase dependencies. Instead, this issue can be fixed by automatically installingblinker==1.7.0
in Wire Mode if that is not the current version ofblinker
.The text was updated successfully, but these errors were encountered: