Open gtdun opened 4 years ago
Can you paste the result of running conda list
and conda info
in this env?
here is conda list and conda info:
(cq-editor) PS C:\Users\Jerry> conda list
#
alabaster 0.7.12 py_0 conda-forge astroid 2.3.3 py37_1 conda-forge attrs 19.3.0 py_0 conda-forge babel 2.8.0 py_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.1 py_0 conda-forge bleach 3.1.5 pyh9f0ad1d_0 conda-forge brotlipy 0.7.0 py37h4ab8f01_1000 conda-forge bzip2 1.0.8 he774522_2 conda-forge ca-certificates 2020.6.24 0 cadquery master py3.7 cadquery certifi 2020.6.20 py37_0 cffi 1.14.1 py37h26f1ce3_0 conda-forge chardet 3.0.4 py37hc8dfbb8_1006 conda-forge cloudpickle 1.5.0 py_0 conda-forge colorama 0.4.3 py_0 conda-forge console_shortcut 0.1.1 4 cq-editor master py3.7 cadquery cryptography 3.0 py37h26f1ce3_0 conda-forge curl 7.71.1 h4b64cdc_4 conda-forge decorator 4.4.2 py_0 conda-forge defusedxml 0.6.0 py_0 conda-forge docutils 0.16 py37hc8dfbb8_1 conda-forge double-conversion 3.1.5 h6538335_2 conda-forge eigen 3.3.7 he980bc4_1001 conda-forge entrypoints 0.3 py37hc8dfbb8_1001 conda-forge expat 2.2.9 he025d50_2 conda-forge ezdxf 0.13.1 py_0 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge fontconfig 2.13.1 hb964e45_1001 conda-forge freetype 2.10.2 hd328e21_0 conda-forge gl2ps 1.4.2 h2c487a6_0 conda-forge glew 2.1.0 he025d50_0 conda-forge hdf4 4.2.13 hf8e6fe8_1003 conda-forge hdf5 1.10.6 nompi_he0bbb20_101 conda-forge icu 64.2 he025d50_1 conda-forge idna 2.10 pyh9f0ad1d_0 conda-forge imagesize 1.2.0 py_0 conda-forge importlib-metadata 1.7.0 py37hc8dfbb8_0 conda-forge importlib_metadata 1.7.0 0 conda-forge intel-openmp 2020.1 216 ipykernel 5.3.4 py37h5ca1d4c_0 conda-forge ipython 7.17.0 py37hc6149b9_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge isort 5.4.1 py37hc8dfbb8_0 conda-forge jedi 0.17.2 py37hc8dfbb8_0 conda-forge jinja2 2.11.2 pyh9f0ad1d_0 conda-forge jpeg 9d he774522_0 conda-forge jsoncpp 1.8.4 h1ad3211_1002 conda-forge jsonschema 3.2.0 py37hc8dfbb8_1 conda-forge jupyter_client 5.3.4 py37_1 conda-forge jupyter_core 4.6.3 py37hc8dfbb8_1 conda-forge keyring 21.3.0 py37hc8dfbb8_0 conda-forge krb5 1.17.1 hc04afaa_2 conda-forge lazy-object-proxy 1.5.1 py37h4ab8f01_0 conda-forge libblas 3.8.0 16_mkl conda-forge libcblas 3.8.0 16_mkl conda-forge libcurl 7.71.1 h4b64cdc_4 conda-forge libiconv 1.15 hfa6e2cd_1006 conda-forge liblapack 3.8.0 16_mkl conda-forge libnetcdf 4.7.4 nompi_h256d12c_105 conda-forge libogg 1.3.2 hfa6e2cd_1002 conda-forge libpng 1.6.37 ha81a0f5_2 conda-forge libsodium 1.0.17 h2fa13f4_0 conda-forge libssh2 1.9.0 hb06d900_5 conda-forge libtheora 1.1.1 h62dcd97_1003 conda-forge libtiff 4.1.0 h885aae3_6 conda-forge libxml2 2.9.10 h5d81f1c_2 conda-forge logbook 1.5.3 py37h4ab8f01_1 conda-forge loguru 0.5.0 py37hc8dfbb8_0 conda-forge lz4-c 1.9.2 h62dcd97_1 conda-forge markupsafe 1.1.1 py37h8055547_1 conda-forge mccabe 0.6.1 py_1 conda-forge mistune 0.8.4 py37h8055547_1001 conda-forge mkl 2020.1 216 nbconvert 5.6.1 py37hc8dfbb8_1 conda-forge nbformat 5.0.7 py_0 conda-forge numpy 1.19.1 py37hae9e721_0 conda-forge numpydoc 1.1.0 pyh9f0ad1d_0 conda-forge occt 7.4.0 h823b557_5 cadquery ocp 7.4 1_py3.7 cadquery openssl 1.1.1g he774522_1 packaging 20.4 pyh9f0ad1d_0 conda-forge pandoc 2.10.1 he774522_0 conda-forge pandocfilters 1.4.2 py_1 conda-forge parso 0.7.1 pyh9f0ad1d_0 conda-forge path 15.0.0 py37hc8dfbb8_0 conda-forge path.py 12.5.0 0 conda-forge pickleshare 0.7.5 py37hc8dfbb8_1001 conda-forge pip 20.2.2 py_0 conda-forge powershell_shortcut 0.0.1 3 proj 7.0.0 haa36216_5 conda-forge prompt-toolkit 3.0.6 py_0 conda-forge psutil 5.7.2 py37h4ab8f01_0 conda-forge pugixml 1.10 h6538335_1 conda-forge pycodestyle 2.6.0 pyh9f0ad1d_0 conda-forge pycparser 2.20 pyh9f0ad1d_2 conda-forge pyflakes 2.2.0 pyh9f0ad1d_0 conda-forge pygments 2.6.1 py_0 conda-forge pylint 2.3.1 py37_0 conda-forge pyopenssl 19.1.0 py_1 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyqt 5.9.2 py37h6538335_4 conda-forge pyqtgraph 0.10.0 py_7 conda-forge pyrsistent 0.16.0 py37h8055547_0 conda-forge pysocks 1.7.1 py37hc8dfbb8_1 conda-forge python 3.7.8 h60c2a47_1_cpython conda-forge python-dateutil 2.8.1 py_0 conda-forge python_abi 3.7 1_cp37m conda-forge pytz 2020.1 pyh9f0ad1d_0 conda-forge pywin32 227 py37hfa6e2cd_0 conda-forge pywin32-ctypes 0.2.0 py37hc8dfbb8_1001 conda-forge pyzmq 19.0.2 py37h453f00a_0 conda-forge qt 5.9.7 h506e8af_3 conda-forge qtawesome 0.7.2 pyh9f0ad1d_0 conda-forge qtconsole 4.4.4 py_0 conda-forge qtpy 1.9.0 py_0 conda-forge requests 2.24.0 pyh9f0ad1d_0 conda-forge rope 0.17.0 pyh9f0ad1d_0 conda-forge setuptools 49.6.0 py37hc8dfbb8_0 conda-forge sip 4.19.8 py37h6538335_1000 conda-forge six 1.15.0 pyh9f0ad1d_0 conda-forge snowballstemmer 2.0.0 py_0 conda-forge sphinx 3.2.1 py_0 conda-forge sphinxcontrib-applehelp 1.0.2 py_0 conda-forge sphinxcontrib-devhelp 1.0.2 py_0 conda-forge sphinxcontrib-htmlhelp 1.0.3 py_0 conda-forge sphinxcontrib-jsmath 1.0.1 py_0 conda-forge sphinxcontrib-qthelp 1.0.3 py_0 conda-forge sphinxcontrib-serializinghtml 1.1.4 py_0 conda-forge spyder 3.3.4 py37_1 conda-forge spyder-kernels 0.5.2 py37_0 conda-forge sqlite 3.32.3 he774522_1 conda-forge tbb 2019.9 he980bc4_1 conda-forge tbb-devel 2019.9 he980bc4_1 conda-forge testpath 0.4.4 py_0 conda-forge tk 8.6.10 he774522_0 conda-forge tornado 6.0.4 py37hfa6e2cd_0 conda-forge traitlets 4.3.3 py37hc8dfbb8_1 conda-forge typed-ast 1.4.1 py37hfa6e2cd_0 conda-forge typing_extensions 3.7.4.2 py_0 conda-forge urllib3 1.25.10 py_0 conda-forge utfcpp 3.1.1 0 conda-forge vc 14.1 h869be7e_1 conda-forge vs2015_runtime 14.16.27012 h30e32a0_2 conda-forge vtk 9.0.1 no_osmesa_py37h35f1388_100 conda-fo rge wcwidth 0.2.5 pyh9f0ad1d_1 conda-forge webencodings 0.5.1 py_1 conda-forge wheel 0.34.2 py_1 conda-forge win32_setctime 1.0.1 py_0 conda-forge win_inet_pton 1.1.0 py37_0 conda-forge wincertstore 0.2 py37_1003 conda-forge wrapt 1.12.1 py37h8055547_1 conda-forge xz 5.2.5 h62dcd97_1 conda-forge zeromq 4.3.2 ha925a31_3 conda-forge zipp 3.1.0 py_0 conda-forge zlib 1.2.11 h62dcd97_1007 conda-forge zstd 1.4.5 h1f3a1b7_2 conda-forge (cq-editor) PS C:\Users\Jerry> conda info
active environment : cq-editor
active env location : C:\Users\Jerry\anaconda3\envs\cq-editor
shell level : 1
user config file : C:\Users\Jerry\.condarc
populated config files : C:\Users\Jerry.condarc conda version : 4.8.4 conda-build version : 3.18.11 python version : 3.7.7.final.0 virtual packages : base environment : C:\Users\Jerry\anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\Jerry\anaconda3\pkgs C:\Users\Jerry.conda\pkgs C:\Users\Jerry\AppData\Local\conda\conda\pkgs envs directories : C:\Users\Jerry\anaconda3\envs C:\Users\Jerry.conda\envs C:\Users\Jerry\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.8.4 requests/2.24.0 CPython/3.7.7 Windows/7 Wi ndows/6.1.7601 administrator : False netrc file : None offline mode : False
It's VTK version probably. Could you try installing VTK 8 like so:
conda install -c conda-forge vtk=8
I did as you suggested: conda install -c conda-forge vtk=8 That did not solve the issue, Below is a window shot after trying to run cq-editor
(cq-editor) PS C:\Users\Jerry> CQ-editor
Traceback (most recent call last):
File "C:\Users\Jerry\anaconda3\envs\cq-editor\Scripts\CQ-editor-script.py", li
ne 6, in
OK, would you be capable of checking which DLL is causing the issue. You could use e.g. ntldd (https://github.com/LRN/ntldd) on the pyd file of OCP or sysinternals (Process Monitor to be specific)? I'll try to reproduce the error locally on Windows, but it will take some time
In the meantime, another workaround to check is to create the conda env lik it is done in CI:
conda env create --name cqgui -f cqgui_env.yml
I used process monitor and filtered out everything except (NAME NOT FOUND). See below:
8:29:39.1697157 AM CQ-editor.exe 4692 CreateFile C:\Users\Jerry\anaconda3\envs\cq-editor\Scripts\CQ-EDITOR.EXE.C~ NAME NOT FOUND Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a 8:29:39.1698210 AM CQ-editor.exe 4692 CreateFile C:\Users\Jerry\anaconda3\envs\cq-editor\Scripts\CQ-EDITOR-SCRIPT.PY.C~ NAME NOT FOUND Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a 8:29:39.1732988 AM CQ-editor.exe 4692 CreateFile C:\Users\Jerry\anaconda3\envs\cq-editor\Scripts\CQ-EDITOR.EXE.C~ NAME NOT FOUND Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a 8:29:39.1893933 AM CQ-editor.exe 4692 CreateFile C:\Users\Jerry\AppData\Local\py.ini NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a 8:29:39.1895479 AM CQ-editor.exe 4692 CreateFile C:\Users\Jerry\anaconda3\envs\cq-editor\Scripts\py.ini NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
I hope this helps.
As for (conda env create --name cqgui -f cqgui_env.yml) I get the following:
(cq-editor) PS C:\Users\Jerry> conda env create --name cqgui -f cqgui_env.yml SpecNotFound: Invalid name, try the format: user/package (cq-editor) PS C:\Users\Jerry>
Also, over the weekend I installed Anaconda3 on my windows 10 laptop then installed cq-editor. The results were similar.
ImportError: DLL load failed also.
Regarding conda env create --name cqgui -f cqgui_env.yml
: did you execute it in the cloned repo folder? The cqgui_env.yml
has to be present in the current folder.
Ok, that setup the env cqgui. The cq-editor install had no apparent errors. cq-editor still not working. Same ImportError: DLL load failed
I cannot reproduce the issue on Windows. To move forward I'll need more information. Could you:
conda install -c msys2 m2w64-ntldd-git
ntldd -R OCP.cp37-win_amd64.pyd
Attached are 2 results: ntldd__1.txt ntldd__2.txt
I found some time to look over the results I sent earlier. I was pleased to see the missing dll was named. After doing a little searching I found a coarse of action. I proceeded to install c++ redistributibles 2015-19. I installed for both 32bit and 64bit . That got the editor up and running. Thanks for your patience. Hope this helps others.
conda create -n cq-editor conda activate cq-editor conda install -c cadquery -c conda-forge cq-editor=master
I have been trying for sometime now to install and run the (cq-editor) as shown above. (No success)
This is what I get:
(cq-editor) PS C:\Users\Jerry> CQ-editor Traceback (most recent call last): File "C:\Users\Jerry\anaconda3\envs\cq-editor\Scripts\CQ-editor-script.py", li ne 6, in
from cq_editor.main import main
File "C:\Users\Jerry\anaconda3\envs\cq-editor\lib\site-packages\cq_editor__ma
in__.py", line 12, in
from .main_window import MainWindow
File "C:\Users\Jerry\anaconda3\envs\cq-editor\lib\site-packages\cq_editor\main
_window.py", line 5, in
import cadquery as cq
File "C:\Users\Jerry\anaconda3\envs\cq-editor\lib\site-packages\cadquery__ini
t__.py", line 2, in
from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
File "C:\Users\Jerry\anaconda3\envs\cq-editor\lib\site-packages\cadquery\occ_i
mpl\geom.py", line 5, in
from OCP.gp import gp_Vec, gp_Ax1, gp_Ax3, gp_Pnt, gp_Dir, gp_Trsf, gp_GTrsf
, gp, gp_XYZ
ImportError: DLL load failed: The specified module could not be found.
(cq-editor) PS C:\Users\Jerry>
This may be linked to the fact that I can't (conda install -c cadquery -c conda-forge cadquery=master), What I can do in a stand alone Enviroment is (conda install -c conda-forge -c cadquery cadquery=2) This may or may not have anything to do with problem. Can anyone help.