bernhard-42 / vscode-ocp-cad-viewer

A viewer for OCP based Code-CAD (CadQuery, build123d) integrated into VS Code
Apache License 2.0
96 stars 10 forks source link

QuickStart CadQuery fail with an error running in a DevContainer #87

Closed nicolas-christe closed 3 months ago

nicolas-christe commented 3 months ago

I'm trying to run the extension in a docker image (dev container).

I'm using mcr.microsoft.com/devcontainers/anaconda docker image

I'm getting the following error when selecting "QuickStart CadQuery":


env -u CONDA_PREFIX_1  "/opt/conda/bin/python" -m pip install ocp_vscode==2.3.3 git+https://github.com/cadquery/cadquery.git
Collecting git+https://github.com/cadquery/cadquery.git
  Cloning https://github.com/cadquery/cadquery.git to /tmp/pip-req-build-x19eygc2
  Running command git clone --filter=blob:none --quiet https://github.com/cadquery/cadquery.git /tmp/pip-req-build-x19eygc2
  Resolved https://github.com/cadquery/cadquery.git to commit d9ccd258918fbbc962323380769f135650ff8f79
  Preparing metadata (setup.py) ... done
Collecting ocp_vscode==2.3.3
  Using cached ocp_vscode-2.3.3-py3-none-any.whl.metadata (955 bytes)
Collecting ocp-tessellate<2.4.0,>=2.3.3 (from ocp_vscode==2.3.3)
  Using cached ocp_tessellate-2.3.3-py3-none-any.whl.metadata (1.1 kB)
Requirement already satisfied: requests in /opt/conda/lib/python3.11/site-packages (from ocp_vscode==2.3.3) (2.31.0)
Requirement already satisfied: ipykernel in /opt/conda/lib/python3.11/site-packages (from ocp_vscode==2.3.3) (6.28.0)
Collecting orjson (from ocp_vscode==2.3.3)
  Using cached orjson-3.10.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (49 kB)
Collecting websockets>=12.0 (from ocp_vscode==2.3.3)
  Using cached websockets-12.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (6.6 kB)
INFO: pip is looking at multiple versions of cadquery to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement cadquery-ocp<7.8,>=7.7.0a0 (from cadquery) (from versions: none)
ERROR: No matching distribution found for cadquery-ocp<7.8,>=7.7.0a0```

Any hint to solve this issue ?