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

Home » Public Forums » archive » Error in IDL-Python Bridge
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: Error in IDL-Python Bridge [message #91877 is a reply to message #91875] Tue, 08 September 2015 12:35 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Tuesday, September 8, 2015 at 11:26:13 AM UTC-6, chu xiangning wrote:
> Dear Paulo and Chris,
> Thanks for your answers. I checked the folder bin.linux.x86_64, there's no file named python27.so. There are idl_python27.dll and idl_python27.dlm.
> When I run the following command, I have no problem:
> dlm_load,'python27'
> When I run python.import, I got an error below:
> plt = Python.Import('matplotlib.pyplot')
> % PYTHON_IMPORT: Exception: /usr/local/exelis/idl85/bin/bin.linux.
> x86_64/idl: undefined symbol: Py_DecRef.
> % Execution halted at: $MAIN$
>

Hi,

That python shared library is part of Anaconda, not IDL. It is probably in anaconda/lib, and is actually named something like "libpython2.so". It looks like you already have that directory on your LD_LIBRARY_PATH.

What happens when you try that import command from within Python itself?

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Another idiosyncracy?
Next Topic: launch a file

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

Current Time: Wed Oct 08 11:36:18 PDT 2025

Total time taken to generate the page: 0.00433 seconds