X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Oct 2022 05:59 PM by  Ben Castellani
IDL Python bridge error with new IDL8.8/Anaconda 3.8
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Roy Kilgard



New Member


Posts:1
New Member


--
24 Feb 2021 02:08 PM
    Hi there,

    I have a Mac running macOS 10.15.7. I have clean installs of IDL8.8 and Python 3.8 via Anaconda. I ran the setup.py for the IDL Python bridge successfully, but when attempting to run any python code in IDL, I get this:

    IDL 8.8.0 (darwin x86_64 m64).
    (c) 2020, Harris Geospatial Solutions, Inc.

    Licensed for use by: Wesleyan University
    License: 99690
    IDL> >>>2+2
    % Loaded DLM: PYTHON38.
    INTEL MKL ERROR: dlopen(/Users/rkilgard/anaconda3/lib/libmkl_intel_thread.dylib, 9): Library not loaded: @rpath/libiomp5.dylib
    Referenced from: /Users/rkilgard/anaconda3/lib/libmkl_intel_thread.dylib
    Reason: image not found.
    Intel MKL FATAL ERROR: Cannot load libmkl_intel_thread.dylib.

    libiomp5.dylib seems to be in place, so I think this must be a library path error of some sort. I tried explicitly setting LD_LIBRARY_PATH and DYLD_LIBRARY_PATH to include anaconda3/lib, but no joy. Calling IDL from Python seems to work just fine.

    Thanks,
    Roy

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    27 Oct 2022 05:59 PM
    This error occurs because IDL and Python are running in process for the bridge and something dynamic libraries can clash. In this case, Python's MKL and IDL's MKL are clashing for one reason or another. See this Help Article for more information and how to work-around the issue: https://www.l3harrisgeospatial.com/Support/Self-Help-Tools/Help-Articles/Help-Articles-Detail/ArtMID/10220/ArticleID/24118/Workaround-when-IDL-to-python-bridge-is-crashing-due-to-MKL-library-conflict
    You are not authorized to post a reply.