Hello, I'm sorry if I missed information related to troubleshooting of larch installation. My earlier larch version stopped loading and I uninstalled it in order to install the latest one. After doing that I can't find XAS viewer. No folder containing it was created after installation (unlike before). I went to “Scripts” in "xraylarch", found larch exe and many other exe files but they don’t load (open and crash). I uninstalled and installed it around 4 times. I also uninstalled anaconda and python for potential conflict, after that Larch installation went without errors, but still … the same issue. Please, let me know. Thank you in advance! Daria
Is Larix there? From github documentation: "Larch includes a few GUI applications that provide user-friendly and interactive data visualization for many common X-ray analysis tasks. The most notable of these are Larix <https://urldefense.us/v3/__https://xraypy.github.io/xraylarch/larix.html*lar... > (was XAS Viewer), GSE Map Viewer <https://urldefense.us/v3/__https://xraypy.github.io/xraylarch/wxmap_viewer.h... >, and Larch XRF <https://urldefense.us/v3/__https://xraypy.github.io/xraylarch/xrf_viewer.htm... > (formerly XRF Viewer)." -R. On 2024-11-15 7:31 p.m., Daria Boglaienko via Ifeffit wrote:
Hello, I'm sorry if I missed information related to troubleshooting of larch installation. My earlier larch version stopped loading and I uninstalled it in order to install the latest one. After doing that I can't find XAS viewer. No folder ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hello,
I'm sorry if I missed information related to troubleshooting of larch installation. My earlier larch version stopped loading and I uninstalled it in order to install the latest one. After doing that I can't find XAS viewer. No folder containing it was created after installation (unlike before). I went to “Scripts” in "xraylarch", found larch exe and many other exe files but they don’t load (open and crash). I uninstalled and installed it around 4 times. I also uninstalled anaconda and python for potential conflict, after that Larch installation went without errors, but still … the same issue.
Please, let me know.
Thank you in advance! Daria
ifeffit mailing list:https://urldefense.us/v3/__https://millenia.cars.aps.anl.gov/mailman3/lists/... to unsubscribe, send mail toifeffit-leave@millenia.cars.aps.anl.gov
Hi Daria, Sorry for the trouble. Just as a general comment, and because I see this too often, "I uninstalled and reinstalled it N times" hardly ever works. I understand that it is a fairly easy thing to do, but it is rare for reinstalling to fix problems other than corrupted files or the occasional conflict between libraries. There is no need to do that more than once. A bug report like this is really hard for us to diagnose. Like, why did an earlier version stop loading? Something must have changed there. Do you have any idea what that could be? Is that important? You say that you also uninstalled Anaconda and Python, implying you may have had a different Python environment installed. If you install Larch from the installer or GetLarch script, it will always install a completely isolated Python environment. You can use an existing Python or conda environment if you want, but if you do that, you do sort of take responsibility for doing at least some troubleshooting of running Python programs. I'll assume that you installed from the provided installer. If you open your Anaconda Prompt for the version of xraylarch that you installed, you should get a prompt like: (base) C:\Users\yourname> and you should be able to type "larix" there to start the Larix application. You said that you see files in the Scripts directory, so that means that at least most of the installation work. If you get "larix is not a recognized command", then try to figure out why your Anaconda prompt is not set up correctly or set the Path to include the appropriate Scripts folder. If you get some other message, read and try to understand the messages printed out. Is some package missing? Perhaps pip install missing_library will fix that. If you don't understand the message, please post the entire message, preferably as text with reasonable contrast. Shells on Windows often default to red text on a black background, which is very hard to read (at least, for me). Please do not post an image of that. Copy the text and post that. If Larix does run, then typing larch -m will create the Larch folder on your desktop and include the shortcuts to starting the programs. If it does not, then post the error messages. --Matt
Thank you very much for the quick response.
The error message is when I type larix in Anaconda Prompt:
Import Error: cannot import name ‘get_desktop’ from ‘pyshortcuts’ (C:\Users\…\AppData\Local\xraylarch\Lib\site-packages\pyshortcuts\__init__.py)
Thank you for helping!
Daria
________________________________
From: Matt Newville
Hi Daria,
Very sorry for the trouble -- my fault. Please try "pip install --upgrade pyshortcuts".
________________________________
From: Daria Boglaienko
participants (4)
-
Daria Boglaienko
-
Matt Newville
-
Matthew Newville
-
Robert Gordon