import cadquery throw "OSError[WinError 193] %1 is not a valid Win32 application" #1265
-
Installing CadQuery via pip, the script : import cadquery throw error:
python version:
cadquery version:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It looks like it will only run with 32 bit python, I reinstalled python and it stopped giving me this error and instead gave me
Although I have installed OCP using pip: > pip install ocp
Requirement already satisfied: ocp in d:\python3.9.13\lib\site-packages (0.1.9)
Requirement already satisfied: ocp-windows-amd64>=0.1.9 in d:\python3.9.13\lib\site-packages (from ocp) (0.1.9)
> pip install cadquery-ocp
Requirement already satisfied: cadquery-ocp in d:\python3.9.13\lib\site-packages (7.7.0a0) Maybe ocp only supports 64-bit in Windows. So I still can't import properly. |
Beta Was this translation helpful? Give feedback.
-
@tp1415926535 Which version of Windows are you running? Also, can you post the pip install line you used and the output from that? |
Beta Was this translation helpful? Give feedback.
-
It's finally fixed! I installed and used it in a virtual machine with no errors reported. The pip install line like this: > pip install cadquery --user
Requirement already satisfied: cadquery in c:\users\User1\appdata\roaming\python\python39\site-packages (2.2.0)
Requirement already satisfied: nptyping==2.0.1 in c:\users\User1\appdata\roaming\python\python39\site-packages (from cadquery) (2.0.1)
Requirement already satisfied: casadi in c:\python39\lib\site-packages (from cadquery) (3.5.5)
Requirement already satisfied: path in c:\users\User1\appdata\roaming\python\python39\site-packages (from cadquery) (16.6.0)
Requirement already satisfied: cadquery-ocp<7.8,>=7.7.0a0 in c:\python39\lib\site-packages (from cadquery) (7.7.0a0)
Requirement already satisfied: typish in c:\users\User1\appdata\roaming\python\python39\site-packages (from cadquery) (1.9.3)
Requirement already satisfied: nlopt in c:\users\User1\appdata\roaming\python\python39\site-packages (from cadquery) (2.7.1)
Requirement already satisfied: ezdxf in c:\users\User1\appdata\roaming\python\python39\site-packages (from cadquery) (1.0.1)
Requirement already satisfied: multimethod<2.0,>=1.7 in c:\users\User1\appdata\roaming\python\python39\site-packages (from cadquery) (1.9.1)
Requirement already satisfied: numpy>=1.20.0 in c:\python39\lib\site-packages (from nptyping==2.0.1->cadquery) (1.24.2)
Requirement already satisfied: typing-extensions in c:\users\User1\appdata\roaming\python\python39\site-packages (from nptyping==2.0.1->cadquery) (4.4.0)
Requirement already satisfied: pyparsing>=2.0.1 in c:\users\User1\appdata\roaming\python\python39\site-packages (from ezdxf->cadquery) (3.0.9) After comparing I upgraded or uninstalled different versions of the wheel, found to be caused by "numpy". Maybe I had installed a different bit version by mistake earlier. Anyway, no errors are reported now. |
Beta Was this translation helpful? Give feedback.
It's finally fixed! I installed and used it in a virtual machine with no errors reported. The pip install line like this: