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 #91867 is a reply to message #91862] Mon, 07 September 2015 18:17 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
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.
[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 17:07:15 PDT 2025

Total time taken to generate the page: 0.00397 seconds