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 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL to python bridge Library not loaded: libidl.8.5.dylib [message #93151] Tue, 03 May 2016 02:44 Go to next message
joe.llama is currently offline  joe.llama
Messages: 3
Registered: April 2016
Junior Member
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!
IDL to python bridge Library not loaded: libidl.8.5.dylib [message #93304 is a reply to message #93151] Thu, 09 June 2016 15:17 Go to previous messageGo to next message
guygma is currently offline  guygma
Messages: 3
Registered: June 2016
Junior Member
I get same issue but with homebrew install if python on both 2.7 and 3.4 (adjusted the environment variables accordingly). Have you tried reaching out to Excelis?
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 messageGo to next 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
Re: IDL to python bridge Library not loaded: libidl.8.5.dylib [message #94457 is a reply to message #93304] Sun, 28 May 2017 15:49 Go to previous message
tianhuachengyue is currently offline  tianhuachengyue
Messages: 7
Registered: November 2015
Junior Member
On Thursday, June 9, 2016 at 3:17:35 PM UTC-7, guy...@gmail.com wrote:
> I get same issue but with homebrew install if python on both 2.7 and 3.4 (adjusted the environment variables accordingly). Have you tried reaching out to Excelis?

Hi,
I ran into the same issue for python 2.7 (pre-installed on macOS 10.12.2):

libpython2.7 dylib Libarary not loaded

Have you already fixed it?

Cheers,
Huazeng
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 08:51:08 PDT 2025

Total time taken to generate the page: 0.00729 seconds