-
-
Notifications
You must be signed in to change notification settings - Fork 402
Closed
Description
Updating from 7.5.1 to 7.8.1, I am trying to replace BRepTools_ShapeSet.ReadFromString with BRepTools_ShapeSet.Read as I believe is the result of #1301 .
The resulting error was:
>>> from OCC.Core.BRepTools import BRepTools_ShapeSet
>>> BRepTools_ShapeSet().Read("foo")
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/miniconda3/envs/occwl_dev/lib/python3.9/site-packages/OCC/Core/TopTools.py", line 2880, in Read
return _TopTools.TopTools_ShapeSet_Read(self, *args)
TypeError: Wrong number or type of arguments for overloaded function 'TopTools_ShapeSet_Read'.
Possible C/C++ prototypes are:
TopTools_ShapeSet::Read(std::istream &,Message_ProgressRange const &)
TopTools_ShapeSet::Read(TopoDS_Shape &,std::istream &)I am installing from conda in a docker container:
# syntax=docker/dockerfile:1.4
FROM --platform=linux/amd64 python:3.9 as base
RUN python -m pip install --upgrade pip
FROM base as dev
# Insgtall OCC requirements
RUN apt-get update
RUN apt-get install -y ffmpeg libsm6 libxext6
# Install conda
RUN mkdir -p ~/miniconda3 && \
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \
bash ~/miniconda3/miniconda.sh -b -u -p /miniconda3 && \
rm -rf ~/miniconda3/miniconda.sh && \
/miniconda3/bin/conda init bash
ARG PROJ_DIR=/proj
ARG PIP_CACHE=/root/.cache/pip
WORKDIR ${PROJ_DIR}
# Create conda environment
COPY environment.yml .
RUN --mount=type=cache,target=/miniconda3/pkgs,id=conda \
/miniconda3/bin/conda env create -f environment.ymlwhere environment.yml is
name: occwl_dev
channels:
- conda-forge
- defaults
- anaconda
dependencies:
- python=3.9
- numpy
- pythonocc-core=7.8.1
- networkx
- wxPython
- pydeprecateThe full context is this PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels