FEM Workbench Start Error

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
HP Lim
Posts: 1
Joined: Thu Jan 05, 2017 4:43 am

FEM Workbench Start Error

Post by HP Lim »

I was able to start all other Workbench after install, but unable to start FEM Workbench.
Below/ attached is the screenshot.
FEMWorkbench Error.png
FEMWorkbench Error.png (13.43 KiB) Viewed 1023 times
I also tried this in Phyton Console within FreeCAD but con't figure out what is the problem.
>>> import ctypes
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\FME\python\python27\lib\ctypes\__init__.py", line 10, in <module>
from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes


My installer: FreeCAD.0.16.6706.f86a4e4-WIN-x86-installer.exe

I am new to FreeCAD. Please help.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM Workbench Start Error

Post by bernd »

I do not know where the problem is but if you would like to work with FEM workbench it is really recommended to use the latest development version 0.17.xxxx from https://github.com/FreeCAD/FreeCAD/releases. FreeCAD FEM has had dozens of bugfixes and changes since 0.16.6706
wmayer
Founder
Posts: 20310
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FEM Workbench Start Error

Post by wmayer »

ImportError: No module named _ctypes
Your FreeCAD installation lacks of the Python module _ctypes.pyd. You can check a newer installer if it's now added or in case you have a Python2.7 installation copy it from there.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FEM Workbench Start Error

Post by sgrogan »

wmayer wrote:You can check a newer installer
I just downloaded the installer referenced by HP Lim and the _ctypes.pyd is there. If I rename it and start FreeCAD I get the import erro and in report view.

Code: Select all

    import ctypes
  File "C:\Program Files (x86)\FreeCAD 0.16\bin\lib\ctypes\__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
HP Lim wrote:File "C:\Program Files\FME\python\python27\lib\ctypes\__init__.py", line 10, in <module>
In HP Lim's case it looks like a system installed Python is being used
@HP Lim what python version is listed at the top of the python console?
"fight the good fight"
Post Reply