Replies: 7 comments 10 replies
-
|
(Not that I'm sure we'll use the embedded python in the end, could not get pyutils.pipinstall,'scipy' to work (it was deemed incorrectly installed when trying to use it). Using conda to install everything (python3.13 + scipy etc) worked (though quite a laborious process!). Cheers, and I hope all is well over there :) |
Beta Was this translation helpful? Give feedback.
-
|
hey, thanks for reporting these issues! We had a few "growing pains" with the embedded Python on Linux and Mac. You're absolutely correct about the IDL_DLM_PATH - it just needed to be split on the ":", and that has been fixed for IDL 9.3. We actually switched the Python that we're embedding, from a custom compiled one to a prebuilt one, and that also fixed a lot of the other issues. I just tried your pyutils.pipinstall,'scipy' and that seems to now work fine as well. We're hoping to do a beta release of IDL 9.3 soon (no promises yet!) so keep any eye out for that. In the meantime, if you wanted to install "scipy" in IDL's embedded Python, you could try setting the environment variable: I think that should install scipy in expected location for IDL's embedded Python, and then it should work within IDL. The --force is just so it doesn't notice that scipy is already installed in your standard Python and try to not install it... |
Beta Was this translation helpful? Give feedback.
-
|
Ditto for an installation using |
Beta Was this translation helpful? Give feedback.
-
|
Oops, didn't hit send on this one yesterday (will try your route as well now): I did an lsof on IDL before and after loading any python (on RHEL8). A number of files were opened, but filtering out those that belong to the IDL distribution and those that are on my home directory (~/.idl/idl-python313), only one system library had been added: On RHEL9 where it doesn't work, there is only However, on RHEL8 there is a link from libutil.so -> libutil.so.1 -> libutil-2.28.so. So presumably the library is opened as "libutil.so" on both. |
Beta Was this translation helpful? Give feedback.
-
|
So, I finally got it to work - even on on RHEL9, and on both IDL9.1 and 9.2: and Then I have this in my .tcshrc: and I can do: However, with IDL92, attempting to import scipy right away loads the embedded python 3.13: But somehow this picks up the right python: So, it works. With the external vs. embedded python in IDL92, is there simply a path problem? Cheers, |
Beta Was this translation helpful? Give feedback.
-
|
Great! Thanks for the update. The docs are perhaps not entirely clear, but that As to why the scipy doesn't work in the embedded Python, I think our embedded Python was missing some required library in IDL 9.2. Regardless, it works in IDL 9.3 with both our embedded Python. In the meantime, it sounds like you have a decent workaround until the next version comes out. Thanks so much for being a guinea pig on all of this embedded Python testing! It really helps to have someone who is willing to try different things and report back what works and what doesn't. I'm going to close this discussion for now. If you find other Python bridge issues, feel free to open up a new discussion. |
Beta Was this translation helpful? Give feedback.
-
|
Hi again @chris-torrence! Now that we've gotten to use the python function we needed to, it seems to take a long time. I'm 99.9% certain it's not the bridge, we're simply doing a call Or whether python code itself runs significantly slower inside the bridge than as a standalone process, of course. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry @znorman-harris for bringing up another non-plugin-related thing, but the normal bug reporting... argh. We're starting to use the python bridge and have stumbled upon a problem:
However, with no IDL_DLM_PATH set upon invocation of IDL:
To me it seems like an extremely simple bug: IDL_DLM_PATH is not handled correctly when looking for the embedded python, it is simply used verbatim without splitting on ":".
Beta Was this translation helpful? Give feedback.
All reactions