Skip to content
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

Wire Mode: No module named 'blinker._saferef' if installing selenium-wire alone #2782

Closed
mdmintz opened this issue May 16, 2024 · 1 comment · Fixed by #2783
Closed

Wire Mode: No module named 'blinker._saferef' if installing selenium-wire alone #2782

mdmintz opened this issue May 16, 2024 · 1 comment · Fixed by #2783
Assignees
Labels
bug Uh oh... Something needs to be fixed

Comments

@mdmintz
Copy link
Member

mdmintz commented May 16, 2024

Wire Mode: No module named 'blinker._saferef' if installing selenium-wire alone.


Wire Mode (--wire / wire=True) uses the selenium-wire library. The selenium-wire library has a dependency on blinker. The latest version of blinker no longer has blinker._saferef, which selenium-wire needs. This leads to ModuleNotFoundError: 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 forcing blinker==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 installing blinker==1.7.0 in Wire Mode if that is not the current version of blinker.

@mdmintz mdmintz added the bug Uh oh... Something needs to be fixed label May 16, 2024
@mdmintz mdmintz self-assigned this May 16, 2024
@mdmintz
Copy link
Member Author

mdmintz commented May 16, 2024

This was resolved in seleniumbase 4.27.0: https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.27.0

For regular selenium-wire users who aren't using SeleniumBase, run this:

pip install blinker==1.7.0

@seleniumbase seleniumbase deleted a comment from doscode-kr Jun 12, 2024
NicolasLiampotis added a commit to rciam/rciam_probes that referenced this issue Aug 5, 2024
…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
KutsunaSubaRya added a commit to KutsunaSubaRya/NTNU-CIDS that referenced this issue Aug 29, 2024
orfeas-k added a commit to canonical/notebook-operators that referenced this issue Dec 10, 2024
orfeas-k added a commit to canonical/notebook-operators that referenced this issue Dec 13, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh oh... Something needs to be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant