https://pantsbuild.org/ logo
#general
Title
# general
a

ancient-wall-52690

05/03/2023, 7:06 PM
Hoping someone can help me out here, I started getting an error today when launching pants (v2.14):
Copy code
raise BackendConfigurationError(f"Failed to load the {backend_module} backend: {ex!r}")
pants.base.exceptions.BackendConfigurationError: Failed to load the pants.core.register backend: ImportError("urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2k-fips  26 Jan 2017. See: <https://github.com/urllib3/urllib3/issues/2168>")
Seems that a new version of the
requests
library was released this morning which added support for urllib3 v2.0. Wondering if there is a way that I can pin an older version to fix this.
a

abundant-leather-17386

05/04/2023, 3:36 PM
I’m currently having the same problem 😞 did you already find a way to fix @ancient-wall-52690?
a

ancient-wall-52690

05/04/2023, 4:12 PM
Yes, I added
urllib3<2
into the pants requirements defined in the boostrapper: https://github.com/pantsbuild/setup/blob/15988fe15cc87031235ecd0e94ebc38df692a910/pants#L367
There was another tweak to the pip install line where that gets referenced, but that’s the basic idea.
2 Views