Switch to Part design workbench issue

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
drifter
Posts: 2
Joined: Tue Jan 18, 2022 5:21 am

Switch to Part design workbench issue

Post by drifter »

Hi
I am suffering a issue when switching to Part design workbench. it reports "[WinError 193]%1 is not a vailid Win32 application." Can anyone help me to solve it?

My Software version:
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Chinese/China (zh_CN)

Report view:
13:18:18 [WinError 193] %1 is not a valid Win32 application
13:18:18 Traceback (most recent call last):
File "<string>", line 43, in Initialize
File "C:\Program Files\FreeCAD 0.19\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\Program Files\FreeCAD 0.19\Mod\PartDesign\WizardShaft\WizardShaft.py", line 28, in <module>
from .Shaft import Shaft
File "C:\Program Files\FreeCAD 0.19\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\Program Files\FreeCAD 0.19\Mod\PartDesign\WizardShaft\Shaft.py", line 25, in <module>
from .SegmentFunction import SegmentFunction, IntervalFunction, StressFunction, TranslationFunction
File "C:\Program Files\FreeCAD 0.19\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\Program Files\FreeCAD 0.19\Mod\PartDesign\WizardShaft\SegmentFunction.py", line 25, in <module>
import numpy as np
File "C:\Program Files\FreeCAD 0.19\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\Users\240032829\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py", line 140, in <module>
from . import _distributor_init
File "C:\Program Files\FreeCAD 0.19\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\Users\240032829\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py", line 26, in <module>
WinDLL(os.path.abspath(filename))
File "C:\Program Files\FreeCAD 0.19\bin\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Switch to Part design workbench issue

Post by chrisb »

Please retry in 0.20. If the issue persists, answer the following questions:
- do you have non-ASCII characters in your user name?
- does it work if you switch FreeCAD to english language?
- does it work if you switch your system to english locale?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Switch to Part design workbench issue

Post by Syres »

I would be far more inclined to think this is caused by another version of Python in the Windows Path, see https://forum.freecadweb.org/viewtopic.php?t=49814
Post Reply