comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL to python bridge Library not loaded: libidl.8.5.dylib
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL to python bridge Library not loaded: libidl.8.5.dylib [message #94456 is a reply to message #93151] Sun, 28 May 2017 15:47 Go to previous message
tianhuachengyue is currently offline  tianhuachengyue
Messages: 7
Registered: November 2015
Junior Member
On Tuesday, May 3, 2016 at 2:44:09 AM UTC-7, joe....@lowell.edu wrote:
> Can anyone help me with this? I'm trying to get the IDL-python bridge up and running on my Mac (10.11.4). I have idl 8.5 and python 2.7 from anaconda (installed yesterday).
>
> I've exported the following paths
> export PATH=" /Users/joellama/anaconda/bin:/Applications/exelis/idl/bin/bi n.darwin.x86_64:$PATH "
> DYLD_LIBRARY_PATH="/System/Library/Frameworks/ImageIO.framework/Resources "
> DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Users/joellama/anaconda/lib "
> DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/lib"
> DYLD_LIBRARY_PATH=" $DYLD_LIBRARY_PATH:/Applications/exelis/idl85/bin/bin.darwin .x86_64 "
> export DYLD_LIBRARY_PATH
> export LD_LIBRARY_PATH=" /Users/joellama/anaconda/lib:/Applications/exelis/idl/bin/bi n.darwin.x86_64 "
> export PYTHONHOME="/Users/joellama/anaconda"
> PYTHONPATH=" $PYTHONPATH:/Applications/exelis/idl85/bin/bin.darwin.x86_64 "
> PYTHONPATH="$PYTHONPATH:/Applications/exelis/idl85/lib/bridges "
> export PYTHONPATH
>
>
> and if I run IDL and type
>
> ran = Python.Import('numpy.random')
>
> I get
> % Loaded DLM: PYTHON27.
> ImportError: numpy.core.multiarray failed to import
> % PYTHON_IMPORT: Exception: cannot import name multiarray.
> % Execution halted at: $MAIN$
>
> and if I run ipython and type
>
> import idlpy as IDL
>
> I get
>
> ImportError Traceback (most recent call last)
> <ipython-input-1-2e8893d7bd77> in <module>()
> ----> 1 import idlpy as IDL
>
> /Applications/exelis/idl85/lib/bridges/idlpy.py in <module>()
> 17 # Dynamically construct the library name from the Python major.minor version.
> 18 idllibrary = "pythonidl" + str(sys.version_info[0]) + str(sys.version_info[1])
> ---> 19 pyidl = __import__(idllibrary)
> 20
> 21
>
> ImportError: dlopen(/Applications/exelis/idl85/bin/bin.darwin.x86_64/pyth onidl27.so, 2): Library not loaded: libidl.8.5.dylib
> Referenced from: /Applications/exelis/idl85/bin/bin.darwin.x86_64/pythonidl27 .so
> Reason: image not found
>
> I checked and /Applications/exelis/idl85/bin/bin.darwin.x86_64/pythonidl27 .so and
> /Applications/exelis/idl85/bin/bin.darwin.x86_64/libidl.8.5. dylib
>
> both exist. Any help would be greatly appreciated!

Hello there,

I tried to set up the IDL-python bridge on my mac and I got the same error (I installed IDL 8.5.1 and python is pre-installed on my macOS Sierra 10.12.2). When I typed

np = Python.Import('numpy')
The error messaged popped out as:

% DLM_LOAD: Error loading sharable executable.
Symbol: IDL_Load, File = /Applications/exelis/idl85/bin/bin.darwin.x86_64/idl_python2 7.so
dlopen(/Applications/exelis/idl85/bin/bin.darwin.x86_64/idl_ python27.so, 1): Library not loaded: libpython2.7.dylib
Referenced from: /Applications/exelis/idl85/bin/bin.darwin.x86_64/idl_python2 7.so
Reason: image not found

It looks like you also ran into the libpython2.7 dylib Libarary not loaded issue. I was wondering if you have fixed that.

Cheers,
Huazeng
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating an imcountour for a bpt
Next Topic: How to check for existence of an HDF5 group

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 13:15:01 PDT 2025

Total time taken to generate the page: 0.23435 seconds