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 #91870 is a reply to message #91867] Tue, 08 September 2015 08:20 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, September 7, 2015 at 7:17:13 PM UTC-6, Paulo Penteado wrote:
> On Sunday, September 6, 2015 at 9:02:04 PM UTC-3, chu xiangning wrote:
>> plt = Python.Import('matplotlib.pyplot')
>> Error:
>> % PYTHON_IMPORT: Exception: No module named PySide.
>> % Execution halted at: $MAIN$
>>
>> I don't have problems running "ran = Python.Import('numpy.random')".
>> I don't have problem running in ipython "import matplotlib.pyplot".
>>
>
> I have seen this exact problem when using a current Anaconda Python, both with Python 2.7 and 3.4. This seems to happen because PySide was dropped in recent versions of Anaconda:
>
> "Version 2.0 reduces the size of the installers, adds installers for Python 3.4, updates over 40 packages, and moves from PySide to PyQt"
> http://continuum.io/blog/anaconda-2-released
>
> In the case of Anaconda Python 2.7, I can solve it with its installer:
>
> conda install pyside
>
> In the case of Anaconda's Python 3.4, PySide does not seem to be in their repository, so I installed it with pip:
>
> pip install pyside
>
> However, this still does not fix, for me, all the problems with using matplotlib from IDL. What I get next is
>
> IDL> plt = Python.Import('matplotlib.pyplot')
> % Loaded DLM: PYTHON27.
> % PYTHON_IMPORT: Exception: /usr/local/exelis/idl85/bin/bin.linux.x86_64/idl: undefined symbol:
> Py_DecRef.
>
> I still did not have a chance to look further into this.

Hi Paulo,

That sounds like a path issue, either with $PATH or $LD_LIBRARY_PATH. That Py_DecRef is part of the C API for Python, and should be found within the python27.so.

Best of luck!

-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:43:39 PDT 2025

Total time taken to generate the page: 0.00449 seconds