bernhard-42 / jupyter-cadquery

An extension to render cadquery objects in JupyterLab via pythreejs
Apache License 2.0
307 stars 45 forks source link

can not get ocp version #82

Closed SubChange closed 1 year ago

SubChange commented 2 years ago

I have installed package cadquery and jupyter-cadquery through following commands on win10 successfully:

conda install -c cadquery cadquery
conda install -c cadquery ocp

however, when I running the given examples in example/1-cadquery.ipynb, An error occurred

image

It seems that I have no file in the corresponding path f"{os.environ['CONDA_PREFIX']}/lib/libTKBRep.*.*.*" - function ocp_version in ocp_utils.py , what I have in folder envs/env_name/Lib/site-packages are as follows:

image

Is there any updates for this function?

bernhard-42 commented 2 years ago

libTK... libraries are not from OCP but from occt and occt does not install into site-packages, but into '$CONDA_prefix/lib'. Is occt properly installed for you?

bernhard-42 commented 2 years ago

Not sure what happened here, but to be on the safe side, the latest version 3.1 catches this exception

bernhard-42 commented 1 year ago

fixed in 3.1. Will close. If you still find issues, please reopen