Skip to content

Commit

Permalink
Fixed error due to package requirement issue
Browse files Browse the repository at this point in the history
one of the packages required by cadquery was improperly configured and causes issues with the cadquery import.  Had to change docker base image and modify to include a configured environment to work around the issue.  May require rebuilding or removing and recreating your docker image and containers.

If you continue to encounter an import error please contact me.
  • Loading branch information
joshreve committed Oct 17, 2021
1 parent ef31d4c commit ab5f979
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 9 deletions.
23 changes: 14 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
FROM mambaorg/micromamba:0.8.2
FROM continuumio/miniconda3

RUN apt-get update && \
apt-get install -y libgl1-mesa-glx gcc bash && \
rm -rf /var/lib/apt/lists/*

WORKDIR /app
RUN micromamba install -y -n base -c conda-forge -c cadquery \
python=3 \
cadquery=master \
numpy=1 \
scipy=1 && \
(rm /opt/conda/pkgs/cache/* || true)

COPY ./docker/environment.yml .

RUN conda env create -f environment.yml

RUN conda init bash

SHELL ["bash", "-lc"]

RUN conda activate myenv

RUN pip3 install solidpython

RUN echo "source activate myenv" >> ~/.bashrc
ENV PATH /opt/conda/envs/myenv/bin:$PATH

WORKDIR /app/src
WORKDIR /app/src
28 changes: 28 additions & 0 deletions docker/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: myenv
channels:
- cadquery
- conda-forge
- defaults
dependencies:
- python>=3.6
- ipython
- ocp=7.5.1
- pyparsing
- sphinx=3.2.1
- sphinx_rtd_theme
- sphinx-autodoc-typehints
- black=19.10b0
- mypy
- codecov
- pytest
- pytest-cov
- ezdxf
- ipython
- typing_extensions
- nptyping
- nlopt
- path
- pip
- numpy=1
- scipy=1
- cadquery

0 comments on commit ab5f979

Please sign in to comment.