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

devcontainer fails to run postscript #198

Open
nzolman opened this issue Dec 8, 2024 · 0 comments
Open

devcontainer fails to run postscript #198

nzolman opened this issue Dec 8, 2024 · 0 comments

Comments

@nzolman
Copy link

nzolman commented Dec 8, 2024

Received the following with a fresh VS Code devcontainer on a new machine.

Running the postCreateCommand from devcontainer.json...

[1554250 ms] Start: Run in container: /bin/sh -c source /home/firedrake/firedrake/bin/activate && pip install -e .
/bin/sh: 1: source: not found
[1554352 ms] postCreateCommand failed with exit code 127. Skipping any further user-provided commands.

I think this is related to this issue for running source in Docker containers.

The container otherwise builds fine, so it seems plausible to build everything from scratch in terminal afterwards. However, because the python venv is not successfully activated, it doesn't install hydrogym and both python and pip will point to the wrong python inside the container. When I manually source activate ... and pip install ., I get the following:

Building wheels for collected packages: hydrogym
  Building editable for hydrogym (pyproject.toml) ... done
  Created wheel for hydrogym: filename=hydrogym-0.1.2.3-py3-none-any.whl size=4657 sha256=cc5962681edbc48ff3038ada26605462eebfce4437ce5206736a09386004e72f
  Stored in directory: /tmp/pip-ephem-wheel-cache-omv0052m/wheels/29/0c/01/4594b1f70030c37e0a25dfd9f9ac190400a1c0186343cefd3a
Successfully built hydrogym
Installing collected packages: gym-notices, gmsh, networkx, fsspec, cloudpickle, gym, dmsuite, control, hydrogym
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
icepack 1.1.0 requires geojson, which is not installed.
icepack 1.1.0 requires geopandas, which is not installed.
icepack 1.1.0 requires meshio>=3.3.1, which is not installed.
icepack 1.1.0 requires MeshPy, which is not installed.
icepack 1.1.0 requires pooch, which is not installed.
icepack 1.1.0 requires pygmsh<=6.1.1, which is not installed.
icepack 1.1.0 requires rasterio, which is not installed.
icepack 1.1.0 requires ROL@ git+https://github.com/icepack/pyrol, which is not installed.
icepack 1.1.0 requires roltrilinos@ git+https://github.com/icepack/Trilinos, which is not installed.
icepack 1.1.0 requires shapely, which is not installed.
icepack 1.1.0 requires tqdm, which is not installed.
icepack 1.1.0 requires xarray, which is not installed.
Successfully installed cloudpickle-3.1.0 control-0.9.4 dmsuite-0.1.1 fsspec-2024.10.0 gmsh-4.13.1 gym-0.26.2 gym-notices-0.0.8 hydrogym-0.1.2.3 networkx-3.4.2

This implies that there are a number of dependencies that are not accounted for during the pip installation. After manually installing, I can import hydrogym, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant