Interference between the Python bridge and IDL_DLM_PATH

30 views
Skip to first unread message

alx

unread,
May 24, 2026, 6:23:53 PMMay 24
to idl-pvwave
When I try to use the Python bridge in IDL 9.2, I get an error as soon as the IDL_DLM_PATH variable is set to a value other than the default. 
In short, the embedded Python version cannot be loaded.
Everything works fine as long as IDL_DLM_PATH is not set.

I understand that this may be an internal IDL bug and that it will be fixed in IDL 9.3.
Until the new version is released, I’m using a workaround that involves switching the value of DLM_PATH before and after using the Python bridge.

Does anyone know of a better solution?
Alx.

Here my workaround:

path = "<IDL_DEFAULT>;+my_dlm_path"
pr = pref_get('IDL_DLM_PATH',  /STRUCTURE)
if (pr.VALUE_EFFECTIVE eq '<IDL_DEFAULT>') $
  then pref_set, 'IDL_DLM_PATH', path $
  else pref_set, 'IDL_DLM_PATH', /DEFAULT
pref_commit, 'IDL_DLM_PATH'


Reply all
Reply to author
Forward
0 new messages