Many thanks Matt, It works now fine! for me the command that worked was: C: \Users\<UserName>\xraylarch\python -m pip install --upgrade “xraylarch[larix]”, i. e. "--upgrade. . . " instead of "–update. . . " "update" received a message "command
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd
Many thanks Matt,

It works now fine!

for me the command that worked was:

C:\Users\<UserName>\xraylarch\python -m pip install --upgrade “xraylarch[larix]”,

i.e. "--upgrade..." instead of "–update..."
"update" received a message "command not found".

thank you for a great software!

with best regards,

Gleb.


On 15/09/2025 16:54, matt.newville@gmail.com wrote:

Hi Gleb,

 

Sorry for the trouble.  I’ve seen a few similar reports.   I think this will be fixed with

 

 

        C:/Users/<UserName>/xraylarch/python -m pip install –update “xraylarch[larix]”

 

(note the added “[larix]” bit, and you will need the double quotes).    This should be the default way to update Larch – it’s just that some people want to be able to install Larch without any GUI at all.  That’s reasonable, but it also means that the “current instruction” of

 

        …./python -m pip install –update xraylarch

 

Does not look for changes to packages needed by the GUI.  Which includes ‘darkdetect’ and recent updates to ‘wxmplot’.

 

Sorry for the trouble, and we will solve this for the next release.

 

For everyone,  please use

 

    C:/Users/<UserName>/xraylarch/python -m pip install –update “xraylarch[larix]”

 

On Linux or macOS that would be something like:

    

   /home/<Username>/xraylarch/bin/python -m pip install –update “xraylarch[larix]”

 

Or

   /Users/<Username>/xraylarch/bin/python -m pip install –update “xraylarch[larix]”

 

 

Thanks,

 

--Matt

Hello, I tried to update Larch 2025.1 (that was installed at C:\Users\<MyName>\xraylarch and worked fine on Win10) to the latest version of 2025.3.0, using the "Update_larch" shortcut icon. it was "updated" within a few seconds and the

ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

From: Gleb Pokrovski via Ifeffit <ifeffit@millenia.cars.aps.anl.gov>
Date: Monday, September 15, 2025 at 9:43
AM
To: ifeffit@millenia.cars.aps.anl.gov <ifeffit@millenia.cars.aps.anl.gov>
Cc: Gleb Pokrovski <gleb.pokrovski@get.omp.eu>
Subject: [Ifeffit] Re: Larch 2025.3.0 update problem on Win 10

Hello,

I tried to update Larch 2025.1 (that was installed at C:\Users\<MyName>\xraylarch and  worked fine on Win10)
to the latest version of 2025.3.0, using the "Update_larch" shortcut icon. 
it was "updated" within a few seconds and the command window closed, 
but when launching  "Larix" (i.e. clicking on the larix shortcut icon) the  message posted below is displayed
in the terminal that then closes after a few seconds. I re-ran Update_larch 2 times with the same effect.
Paradoxically, all other applications e.g., XRD viewer, XRF mapper open when clicking on the corresponding icon, and display the latest version 2025.3...
-----------------------------------------------
# run in conda environment "base":
# C:/Users/glebou/xraylarch/Scripts/larix.exe
Exception in thread Thread-1 (importer):
Traceback (most recent call last):
  File "C:\Users\glebou\xraylarch\Lib\threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "C:\Users\glebou\xraylarch\Lib\threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\glebou\xraylarch\Lib\site-packages\larch\wxxas\larix_app.py", line 58, in importer
    from larch.wxxas.xasgui import LarixFrame
  File "C:\Users\glebou\xraylarch\Lib\site-packages\larch\wxxas\xasgui.py", line 54, in <module>
    from .xas_controller import XASController
  File "C:\Users\glebou\xraylarch\Lib\site-packages\larch\wxxas\xas_controller.py", line 11, in <module>
    import darkdetect
ModuleNotFoundError: No module named 'darkdetect'
Traceback (most recent call last):
  File "C:\Users\glebou\xraylarch\Lib\site-packages\wx\core.py", line 3427, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\glebou\xraylarch\Lib\site-packages\larch\wxxas\larix_app.py", line 62, in ShowMain
    from larch.wxxas.xasgui import LarixFrame
  File "C:\Users\glebou\xraylarch\Lib\site-packages\larch\wxxas\xasgui.py", line 54, in <module>
    from .xas_controller import XASController
  File "C:\Users\glebou\xraylarch\Lib\site-packages\larch\wxxas\xas_controller.py", line 11, in <module>
    import darkdetect
ModuleNotFoundError: No module named 'darkdetect'
----------------------------------------------------------------------------------

Probably the update option fails to properly update from 2025.1 to 2025.3 directly ?
should I go for a complete re-installation?

thank you 
best regards
Gleb Pokrovski

On 10/09/2025 20:47, Matthew Newville via Ifeffit wrote:

Hi Folks, A new version of Larch and the Larix GUI are now available for download and for automated update. The last message about Larch 2025.2.0 was in late May, though there were updates pushed on in late July too. Since then, there have been

ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

Hi Folks,

 

A new version of Larch and the Larix GUI are now available for download and for automated update.  The last message about Larch 2025.2.0 was in late May, though there were updates pushed on in late July too.  Since then, there have been many updates and improvements, especially to the Larix GUI.

 

A more complete list of changes is at https://github.com/xraypy/xraylarch/releases/tag/2025.3.0 (and see  https://github.com/xraypy/xraylarch/releases/tag/2025.2.2 too), but a few of the most obvious changes include:

 

1.      The “List of Groups/Files” in Larix and many related “List of Groups” windows have a richer set of options with the Right Mouse Button. All these actions also now have "keyboard shortcuts" or "accelerators" (Ctrl- / Alt- keys) that do most actions to move and select groups. This allows much faster and easier manipulation of the list of datasets.

2.      Configuring lotting options such as linewidths, colors, themes, and so forth is easier and better. The "plot" tab is "Edit Preferences" now has (only) a "Save Plot Configuration" to save the configuration of the current Plot Window #1 (to the file ".larch/wxmplot.yaml"). From the Plot Window,  you can configure these settings (themes, colors, etc) for any plot.  When you are happy with those, saving them from the Larix Preferences window will save those settings for future sessions.

3.      Saving and Loading Session Files is more robust, and saving will happen in the background, without hanging the main window.

4.      The main Larix window now has a Title (ie, “Top Window Bar”) that shows the name of the “Current Session File”.  You can change that with “Save Session As”.  The Plot Windows (or most of them anyway) will have Titles that show this Session File name and the name of the Analysis Panel or Data Task window that generated the plot.  If you are running 2 Larix sessions, this makes it much easier to tell what windows go together.

5.      On startup, you may be prompted to open recently automatically saved Session files for Sessions that did not exist cleanly.  There has long been a list of “autosaved sessions” that you can import, but this will tell you if any session did not close well.

6.      2025.2.0 introduces a Generic XY Data Analysis Panel, for non-XAS data.  You can now choose any X, Y arrays for a group as the XY data, and overplot several groups of scaled or unscaled datasets.  And the Curve Fit Panel allows pretty generic curve-fitting for X, Y data.

There have been many bug fixes and other improvements, too.

As always, Mauro Rovezzi and Shelly Kelly and her group at the APS deserve a lot of credit for either making or inspiring these changes.  There have also been bug reports and pull requests from a growing number of people.  The GitHub repository is really the best place for this, but thanks to everyone.

 

Let us know if you have any questions, comments, or suggestions.

 

--Matt



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