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

Home » Public Forums » archive » python bridge setup - IDL8.6.1 Mac OS X Sierra
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: python bridge setup - IDL8.6.1 Mac OS X Sierra [message #94686 is a reply to message #94685] Fri, 18 August 2017 13:31 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi Will,

It looks like something changed with Anaconda between 3.5 and 3.6, where it now has the @rpath in the library name. When you run the IDL_DIR/lib/bridges/setup.py command, it is supposed to modify your IDL python binaries with the Anaconda location. But it fails because it isn't expecting that "@rpath".

So, I've modified the setup.py to now handle both cases. If you want to try this, open up IDL_DIR/lib/bridges/setup.py and modify lines 92-102:

try:
cmd = ["install_name_tool", "-change", pylib, pylibpath, pythonidllibpath]
print("\n" + " ".join(cmd))
check_call(cmd)
cmd = ["install_name_tool", "-change", "@rpath/" + pylib, pylibpath, pythonidllibpath]
print("\n" + " ".join(cmd))
check_call(cmd)
cmd = ["install_name_tool", "-change", pylib, pylibpath, idlpythonlibpath]
print("\n" + " ".join(cmd))
check_call(cmd)
cmd = ["install_name_tool", "-change", "@rpath/" + pylib, pylibpath, idlpythonlibpath]
print("\n" + " ".join(cmd))
check_call(cmd)
except Exception as e:
print("\n*** install_name_tool failed.")
print("\n*** Check the paths above, or run the script as 'sudo python setup.py'.")
exit()

Then run "python setup.py install". Hopefully you should then be able to call Python from within IDL.

Let me know if this works.

Cheers,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug with min/max and non-finite values
Next Topic: comparing two variables

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

Current Time: Wed Oct 08 13:58:44 PDT 2025

Total time taken to generate the page: 0.00417 seconds