-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing cadquery in python 3.9.7 on Windows fails #990
Comments
Can you look in your env folder if python.exe is here ? I have had recent problem where my python interpreter would be removed from my env which then lead to such import error. (There is still a pythonw.exe is the env but no python.exe) It seems weird but that would give me similar import errors so that may be it. |
|
That's not a super solution but maybe try to force python 3.8 or 3.10 ( I think the later has been supported juste recently) |
python 3.10 is not supported by CQ-editor
Python 3.8 environment was created successfully with command
Importing cadquery failed with same error
I suspect this is caused by some obscure problem with one of dependencies as in #692 |
Yesterday I tried miniforge instead of mambaforge and got the same error on import.
output of conda list list-miniconda.txt
I conclude that
|
I reinstalled mambaforge again and recreated the environment with the command from my first post. Got the same error on import again. Then I added
I was under the impression that conda-forge is used by default in mambaforge and miniforge
Turned out to be not true |
Could you try running ntldd on the OCP binary and share the result? You might need to install ntldd (
|
Here is what I did. Let me know if this is not what you meant. I've never used ntldd before
produced the this file ntldd-R.OCP.cp39-win_amd64.pyd.txt
produced this file ntldd-list-imports.OCP.cp39-win_amd64.pyd.txt |
I cannot reproduce this issue. |
I tried it on my Linux box (Ubuntu 20.04) today. Can not reproduce it there. mambaforge installs everything correctly even if I omit On Windows machine I cleared conda's cache as described in wiki to make use of your last commit #992. And still it reproduces reliably every time
produces a broken environment where OCP can't be imported. And
installs everything properly. OCP and cadquery can be imported without issues. Perhaps something is not right in windows version of mambaforge. Maybe it reproduces only on Windows 8.1 but not on newer versions. |
To Reproduce
mambaforge\Scripts\activate.bat
mamba create -n cadquery -c cadquery cq-editor=master cadquery=master
mamba activate cadquey
import cadquery
Backtrace
(*)
Не найден указанный модуль
=The specified module could not be found
Environment
OS: Windows 8.1
Was CadQuery installed using Conda?: yes, more precisely I used mambaforge
Output of
conda list
from your active Conda environment: condalist.txtUsing: Python interpreter
Additional information
Examining
procmon.exe
(One of SysInternals tools) logs I noticed that the last thing that happens when I runimport OCP
is python unsuccessfully looking for somelibwebpmux.dll
See also #692
The text was updated successfully, but these errors were encountered: