AnsweredAssumed Answered

Running EMpro python scripts from an IDE

Question asked by statusbit Employee on Mar 29, 2016
Latest reply on Apr 5, 2016 by statusbit

I've been trying to run my EMpro python scripts from the Pycharm IDE.  The problem I am having is that I the debugger cannot find the libpyshared.pyd file.  The file is there, and the PYTHONPATH environment variable includes the directory where the libpyshared.pyd is located. The interpreter used by the debugger is the python installed by EMpro. For some reason the libpyshared module isn't found.  Below is the output of the IDE debugger.  Any help would be appreciated.

C:\apps\empro2015_01\win32_64\bin\tools\win32\python\python.exe "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev\" --cmd-line --multiproc --qt-support --client --port 54620 --file C:/data/empro/hpf_12r8_sussub_c/
warning: Debugger speedups using cython not found. Run '"C:\apps\empro2015_01\win32_64\bin\tools\win32\python\python.exe" "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev\" build_ext --inplace' to build.
pydev debugger: process 9184 is connecting

Connected to pydev debugger (build 145.260)
C:\data\empro\library\patterns                            #PYTHONPATH's
C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev
Traceback (most recent call last):
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev\", line 1530, in
    globals =['file'], None, None, is_module)
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev\", line 937, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:/data/empro/hpf_12r8_sussub_c/", line 11, in
    import empro
  File "C:\apps\empro2015_01\win32_64\bin\empro\", line 2, in
    import libpyshared
ImportError: DLL load failed: The specified module could not be found.

Process finished with exit code 1