X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04 Dec 2015 04:38 AM by  anon
Object Reference Type Required in this context: PYTHON
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
04 Dec 2015 04:38 AM
    Hi All, I am trying to bridge Python and IDL (Python 2.7.10 and IDL 82). I have the system environment variable as: PATH->C:\Python27;C:\Anaconda;C:\Program Files\Exelis\IDL82\bin\bin.x86_64;%PATH% PYTHONHOME -> C:\Anaconda PYTHONPATH -> C:\Program Files\Exelis\IDL82\bin\bin.x86_64;C:\Program Files\Exelis\IDL82\lib\bridges In IDL command line, I try to check by: ran = Python.Import('numpy.random') But shell display % Object reference type required in this context: PYTHON % Execution halted at: $MAIN$ And in Python IDLE Shell: from idlpy import IDL it gives import error. ImportError: No module named idlpy What am I missing here?

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    04 Dec 2015 08:43 AM
    Hi Biplov, The IDL-Python bridge is only available for IDL 8.5. This is mentioned on the main page for the Python Bridge, but it is hidden on the right side of the page which isn't very clear. I would recommend upgrading to IDL 8.5 if you can to take advantage of the cool new feature! We are also releasing a service pack which should be out in a few weeks which has some improvements for the bridge as well. Let me know if you have any questions! -Zach (VIS)
    You are not authorized to post a reply.