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\pydevd.py" --cmd-line --multiproc --qt-support --client 127.0.0.1 --port 54620 --file C:/data/empro/hpf_12r8_sussub_c/hpf12r8_sussub_c.py
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\setup_cython.py" 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:\apps\empro2015_01\win32_64\bin
C:\data\empro\library\substrates
C:\data\empro\library\tools
C:\data\empro\hpf_12r8_sussub_c
C:\apps\empro2015_01\win32_64\bin\empro
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\pydevd.py", line 1530, in
    globals = debugger.run(setup['file'], None, None, is_module)
  File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.1\helpers\pydev\pydevd.py", line 937, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:/data/empro/hpf_12r8_sussub_c/hpf12r8_sussub_c.py", line 11, in
    import empro
  File "C:\apps\empro2015_01\win32_64\bin\empro\__init__.py", line 2, in
    import libpyshared
ImportError: DLL load failed: The specified module could not be found.

Process finished with exit code 1

Outcomes