Hi Nikita, using conda and pip together in one environment can sometimes lead to issues. I had this problem a lot, and not only with larch. What worked very well for me was using the pixi package manager (https: //pixi. prefix. dev/latest/). You
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd
Hi Nikita,

using conda and pip together in one environment can sometimes lead to issues. I had this problem a lot, and not only with larch. What worked very well for me was using the pixi package manager (https://pixi.prefix.dev/latest/). You can create one project environment for larch, set larix callable globally and never think about it again. Since then, all larch updates and installs work reliably across my win/lin and m3 devices, so it may also work for you.

Best,
Sebastian




On Wed, 25 Feb 2026 at 15:00, <ifeffit-request@millenia.cars.aps.anl.gov> wrote:
Send Ifeffit mailing list submissions to
        ifeffit@millenia.cars.aps.anl.gov

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        ifeffit-request@millenia.cars.aps.anl.gov

You can reach the person managing the list at
        ifeffit-owner@millenia.cars.aps.anl.gov

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ifeffit digest..."

Today's Topics:

   1. Re: error message when installing Larch on macbookpro M1
      (Matthew Newville)


----------------------------------------------------------------------

Message: 1
Date: Tue, 24 Feb 2026 16:11:21 +0000
From: Matthew Newville <newville@cars.uchicago.edu>
Subject: [Ifeffit] Re: error message when installing Larch on
        macbookpro M1
To: "ifeffit@millenia.cars.aps.anl.gov"
        <ifeffit@millenia.cars.aps.anl.gov>
Cc: Nikita Vostrov <nik.vostrov@gmail.com>
Message-ID:  <MN6PR11MB821907E82A5C52338AA4C4E39674A@MN6PR11MB8219.nam
        prd11.prod.outlook.com>
Content-Type: multipart/alternative;    boundary="_000_MN6PR11MB821907
        E82A5C52338AA4C4E39674AMN6PR11MB8219namp_"

Hi Nikita,

Sorry for the trouble.  I have not been able to reproduce this myself, and I've seen others successfully install on a Macbook M1 (I am pretty sure the details of the architecture do not matter) with the PKG installer and GetLarch.sh script.  I have also seen a few other broken installations, too.  The packages that come from the Materials Project (including spglib) seem to be the most fragile.

If you reach the point where 'spglib' fails to build, it is almost certain you have a working conda Python environment that can be fixed in a Terminal (under Applications->Utilities).  I would suggest opening a Terminal window and run
   ~/xraylarch/bin/conda install -c conda-forge spglib pymatgen

That may take some time, and it may install many more packages.  But it should work.
Then you can run
   ~/xraylarch/bin/python -m pip install "xraylarch[larix]"
   ~/xraylarch/bin/larch -m

Again, each of those may take some time.  And, at the time, the 'larch -m" command will print out a lot of useless messages (only on MacOS, and on the list of things to fix).

--Matt


________________________________
From: Nikita Vostrov via Ifeffit <ifeffit@millenia.cars.aps.anl.gov>
Sent: Monday, February 23, 2026 11:23 AM
To: ifeffit@millenia.cars.aps.anl.gov <ifeffit@millenia.cars.aps.anl.gov>
Cc: Nikita Vostrov <nik.vostrov@gmail.com>
Subject: [Ifeffit] Re: error message when installing Larch on macbookpro M1

Hello, I still get the same error posted in this thread even with the Python 3. 13. 10 installation script (also on m1 macbook). Sincerely, Nikita. ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

Hello,

I still get the same error posted in this thread even with the Python
3.13.10 installation script (also on m1 macbook).

Sincerely,

Nikita.


-------------- next part --------------
A message part incompatible with plain text digests has been removed ...
Name: not available
Type: text/html
Size: 11504 bytes
Desc: not available

------------------------------

Subject: Digest Footer

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

------------------------------

End of Ifeffit Digest, Vol 310, Issue 1
***************************************