AnsweredAssumed Answered

"ImportError: DLL load failed" when running EMPro Simulation

Question asked by RyanA Employee on Jul 19, 2017
Latest reply on Sep 25, 2017 by WDING

When trying to run a simulation in EMPro, I receive the following error in the Log file:


Starting the FEM simulation.

Setting environment for using FEM engine

setting EMPROHOME to C:\Keysight\EMPro2015_01\win32_64\bin\

setting PYTHONHOME to C:\Keysight\EMPro2015_01\win32_64\bin\tools\win32\python

setting HPEESOF_DIR to C:\Keysight\EMPro2015_01\win32_64\bin\

Traceback (most recent call last):

   File "C:\Python27\Lib\", line 174, in _run_module_as_main

      "__main__", fname, loader, pkg_name)

   File "C:\Python27\Lib\", line 72, in _run_code

      exec code in run_globals

   File "C:\Keysight\EMPro2015_01\win32_64\bin\empro\toolkit\engine_support\fem\state_machine\", line 759, in <module>

      import FemEngine

   File "C:\Keysight\EMPro2015_01\win32_64\bin\empro\toolkit\engine_support\fem\state_machine\", line 14, in <module>

      import emds

   File "C:\Keysight\EMPro2015_01\win32_64\bin\empro\toolkit\engine_support\fem\state_machine\", line 10, in <module>

      import socket

   File "C:\Python27\Lib\", line 47, in <module>

      import _socket

ImportError: DLL load failed: %1 is not a valid Win32 application.


It doesn't matter which file I use, or what the geometry looks like. I was able to run simulations previously, so something must have changed on my system. The only thing I can think of is that I recently installed Python 3, but that shouldn't interfere with my installation of Python 2.7.


So far I have tried reinstalling EMPro (64-bit) and Python 2.7 (64-bit). The problem still persists.