selenium-wire: How to resolve No module named blinker._saferef
May
01
2024
Out of nowhere all of our Python projects that utilize selenium-wire suddenly stopped working when redeployed. It turns out that selenium-wire is no longer maintained as of January 2024 and the project depends on package blinker, specifically file blinker._saferef that is no longer available in latest blinker versions 1.8.0 and 1.8.1.
The solution is to add direct dependency on blinker<1.8.0 into your project in order to prevent selenium-wire from automatically downloading the latest blinker version.