Hi Daria,

Very sorry for the trouble -- my fault.  Please try "pip install --upgrade 
pyshortcuts".
________________________________
From: Daria Boglaienko <dbogl...@fiu.edu>
Sent: Sunday, November 17, 2024 9:14 PM
To: Matthew Newville <newvi...@cars.uchicago.edu>; XAFS Analysis using Ifeffit 
<ifeffit@millenia.cars.aps.anl.gov>
Subject: Re: [Ifeffit] Re-Installing Larch for Windows

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 <newvi...@cars.uchicago.edu>
Sent: Saturday, November 16, 2024 10:23 AM
To: XAFS Analysis using Ifeffit <ifeffit@millenia.cars.aps.anl.gov>
Cc: Daria Boglaienko <dbogl...@fiu.edu>
Subject: Re: [Ifeffit] Re-Installing Larch for Windows


Note: This message originated from outside the FIU Faculty/Staff email system.

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

ifeffit mailing list:  
https://millenia.cars.aps.anl.gov/mailman3/lists/ifeffit.millenia.cars.aps.anl.gov/
to unsubscribe, send mail to ifeffit-le...@millenia.cars.aps.anl.gov

Reply via email to