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

Home » Public Forums » archive » New free DLL for calling Python from IDL!
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: New free DLL for calling Python from IDL! [message #89199 is a reply to message #89190] Fri, 01 August 2014 06:33 Go to previous messageGo to previous message
Matt[3] is currently offline  Matt[3]
Messages: 23
Registered: April 2011
Junior Member
I've just tried setting this up on a newer system, which has the same basic setup, but potentially "cleaner" installs of IDL and Anaconda. I now get a different message:

IDL> random=pyimport("random")
% PYIMPORT: Error loading sharable executable.
Symbol: IDL_Load, File = /usr/local/exelis/idl83/bin/bin.linux.x86_64/Slither.so
libpython2.7.so.1.0: cannot open shared object file: No such file or directory
% Execution halted at: $MAIN$

Again, when I call Python using Spawn, I get sensible-looking outputs.

Could this perhaps be because there are effectively two Python builds on my machine? One is the system Python (2.6.6), and the other Anaconda, which I've installed in the /opt directory. IDL seems to see the right one when I use Spawn (2.7.8), but perhaps Slither sees the other?

Cheers,

Matt


On Thursday, 31 July 2014 12:10:39 UTC+1, Fabien wrote:
> On 31.07.2014 13:03, Matt wrote:
>
>> IDL> py = pyimport('__main__')
>
>> ImportError: No module named numpy
>
>
>
> well this is strange because you're just importing python... Does
>
> anaconda have a startup file for python, importing things like numpy,
>
> iPython, etc automatically? That doesn't really explain why it doesn't
>
> work, but would be a starting point maybe...
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: superresolution
Next Topic: How to find the confidence interval of a variable data at 95% or 66%?

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

Current Time: Thu Oct 09 20:03:28 PDT 2025

Total time taken to generate the page: 1.43830 seconds