I'm having issues installing scie-pants for usage ...
# general
b
I'm having issues installing scie-pants for usage in a vscode devcontainer. Did something change in the versions list?
Copy code
vscode ➜ /workspaces/python (main) $ pants
Bootstrapping Pants 2.15.0 using cpython 3.9.15
Installing pantsbuild.pants==2.15.0 into a virtual environment at /home/vscode/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/bindings/venvs/2.15.0
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 22.1 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 819.3/819.3 KB 41.9 MB/s eta 0:00:00
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 KB 27.5 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==2.15.0 (from versions: 0.0.17, 0.0.18, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.0.42, 0.0.43, 0.0.44, 0.0.45, 0.0.46, 0.0.47, 0.0.48, 0.0.49, 0.0.50, 0.0.51, 0.0.52, 0.0.53, 0.0.54, 0.0.55, 0.0.56, 0.0.57, 0.0.58, 0.0.59, 0.0.60, 0.0.61, 0.0.62, 0.0.63, 0.0.64, 0.0.65, 0.0.66, 0.0.67, 0.0.68, 0.0.69, 0.0.70, 0.0.71, 0.0.72, 0.0.73, 0.0.74, 0.0.75, 0.0.76, 0.0.77, 0.0.79, 0.0.80, 0.0.81, 0.0.82, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.16.0.dev5, 2.16.0.dev6, 2.16.0.dev7, 2.16.0a0, 2.16.0a1, 2.16.0rc0, 2.17.0.dev0, 2.17.0.dev1, 2.17.0.dev2)
ERROR: No matching distribution found for pantsbuild.pants==2.15.0
Install failed: Command '['/home/vscode/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/bindings/venvs/2.15.0/bin/python', '-sE', '-m', 'pip', '--disable-pip-version-check', '--no-python-version-warning', '--log', PosixPath('/home/vscode/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/bindings/venvs/2.15.0/pants-install.log'), 'install', '--quiet', '--find-links', 'file:///home/vscode/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/bindings/find_links/2.15.0/214abc14/index.html', '--progress-bar', 'off', 'pantsbuild.pants==2.15.0']' returned non-zero exit status 1.
More information can be found in the log at: /home/vscode/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/bindings/logs/install.log

Error: Isolates your Pants from the elements.

Please select from the following boot commands:

<default>: Detects the current Pants installation and launches it.
bootstrap-tools: Introspection tools for the Pants bootstrap process.
pants: Runs a hermetic Pants installation.
pants-debug: Runs a hermetic Pants installation with a debug server for debugging Pants code.
update: Update scie-pants.

You can select a boot command by passing it as the 1st argument or else by setting the SCIE_BOOT environment variable.

ERROR: Failed to establish atomic directory /home/vscode/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/locks/install-c754e98484a5cbe1bd4d4ad6aeaf68a8e2937d10f0a11c2645d2c5bcb4212a3e. Population of work directory failed: Boot binding command failed: exit status: 1
More context. My dockerfile:
Copy code
FROM <http://mcr.microsoft.com/devcontainers/python:3.11-bullseye|mcr.microsoft.com/devcontainers/python:3.11-bullseye>

USER vscode
RUN curl --proto '=https' --tlsv1.2 -fsSL <https://static.pantsbuild.org/setup/get-pants.sh> | bash -s -- -d /home/vscode/bin
e
The versions listed are the versions Pip thinks are compatible. Those old versions include an sdist (and so are compatible with any platform) but the new ones do not. If you compare the file list of 2.15.0 to the file list of any of those newer versions (say 2.16.0rc0) you should notice a difference - 2.16.0rc0 has Linux ARM, 2.15.0 does not. ... So, @breezy-apple-27122 I bet you are on an ARM machine.
b
I on a container running on a Mac M1
e
There you go.
So no can do.
Your container would have to be Linux x86-64 to use 2.15.0
b
Copy code
FROM --platform=linux/amd64 <http://mcr.microsoft.com/devcontainers/python:3.11-bullseye|mcr.microsoft.com/devcontainers/python:3.11-bullseye>
do the trick
Well now the error is about the emulation:
Copy code
Exception message: Failed to begin watching the filesystem: Function not implemented (os error 38)
Anything I could disable in order to temporarily check if it works? In the end it will be a linux environment.
e
To check you must check out the code in the container, you cannot share it from your host.
Pants does not work on network file systems.
👍 1