Help Setting Up IDL Python Bridge Linux [message #93549] |
Wed, 17 August 2016 13:57  |
jacobdparker
Messages: 3 Registered: August 2016
|
Junior Member |
|
|
I am having trouble getting IDL to be able to see Python. So far I have the following .cshrc setup
setenv PYTHONPATH /usr/local/exelis/idl/bin/bin.linux.x86_64:/usr/local/exelis /idl/lib/bridges
setenv LD_LIBRARY_PATH /usr/local/anaconda3/lib:/usr/local/exelis/idl/bin/bin.linux .x86_64
source /usr/local/exelis/idl/bin/idl_setup
When I installed anaconda it already added itself to my path so I don't believe I need to do it again. This is what I am seeing in the terminal.
jake@george ~ $ tcsh
george:~> python
Python 3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:53:06) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'
>>>
george:~> echo $path
/usr/local/anaconda3/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /usr/local/ssw/site/bin /usr/local/ssw/gen/bin /usr/local/ssw/gen/perl
george:~> echo $PYTHONPATH
/usr/local/exelis/idl/bin/bin.linux.x86_64:/usr/local/exelis /idl/lib/bridges
george:~> echo $LD_LIBRARY_PATH
/usr/local/anaconda3/lib:/usr/local/exelis/idl/bin/bin.linux .x86_64
george:~> idl
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: 16236.
Licensed for use by: Montana State University - Solar Physics
IDL> >>>
>>> import sys
% PYTHON::RUN: PYTHON::LOAD: Unable to find a valid Python installation.
I am sure that I am missing something very simple and admit to being pretty new at this stuff. Hopefully getting it up here will help the next newb out along the way.
Thanks in advance,
Jake
|
|
|
|
|
Re: Help Setting Up IDL Python Bridge Linux [message #93566 is a reply to message #93565] |
Fri, 19 August 2016 15:01  |
jacobdparker
Messages: 3 Registered: August 2016
|
Junior Member |
|
|
Thanks for the reply. I was just checking back to say that I had solved the problem. You are correct that now python__define.pro doesn't recognize 3.5. I solved the problem by doing the following:
define a python 3.4 environment in anaconda
conda create -n py34 python=3.4 anaconda
then I changed my path in .bashrc from
/home/jake/anaconda3 to /home/jake/anaconda3/envs/py34/bin
now my .cshrc reads the following
setenv PYTHONPATH /usr/local/exelis/idl85/bin/bin.linux.x86_64:/usr/local/exel is/idl85/lib/bridges
setenv LD_LIBRARY_PATH /home/jake/anaconda3/envs/py34/lib:/usr/local/exelis/idl85/b in/bin.linux.x86_64
source /usr/local/exelis/idl85/bin/idl_setup
Thanks for your help.
Jake
|
|
|