rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Update affected standalone python releases

Open liningpan opened this issue 1 year ago • 1 comments

🐞 bug report

Affected Rule

register toolchain

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

Certain standalone python releases are accidentally linked with libcrypt.so.1. If the shared object is not available on the system, the python interpreter will not run.

🔬 Minimal Reproduction

🔥 Exception or Error

/.../bazel-out/k8-fastbuild/bin/requirements.update.runfiles/python_3_10_x86_64-unknown-linux-gnu/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

🌍 Your Environment

Operating System: Arch Linux

Output of bazel version:

Bazelisk version: v1.18.0
Aspect CLI version: 5.9.12
Build label: 6.5.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jan 23 16:44:21 2024 (1706028261)
Build timestamp: 1706028261
Build timestamp as int: 1706028261

Rules_python version: 0.31.0

Anything else relevant?

liningpan avatar Feb 28 '24 00:02 liningpan

This sounds like a reasonable request. I think the best solution would be to update the existing Python toolchain download URLs to use the toolchains from the python standalone build used in #1781.

Added the help wanted tag so that anyone feels free to submit a PR with a changelog entry if it is a pressing issue to them. I can review them.

aignas avatar Feb 29 '24 01:02 aignas