Dear Anthony,

I’m the official MacPorts maintainer of Demeter. Although I have an M1 mac, I have not even tried to install it there. This fact might give you an idea of how active my efforts have been lately. (Sorry about that, community. Volunteers who use Demeter in their daily life on a Mac would be most welcome to take over or share the load here!)

I suspect your immediate problem is with your shell’s path. Can you…

  1. Make sure demeter installed what you expect it to install? Try “port contents demeter | less”. I expect to find /opt/local/bin/athena in the list of contents.
  2. Make sure the directory where athena is installed is “in your path”. Specifically, try “echo $PATH” and make sure that /opt/local/bin is in the colon-separated list of path elements.
  3. If athena is installed, but not in the path, you can do “/opt/local/bin/athena” to start it. For future convenience, you can read up on how to add to your PATH variable via zsh startup files.

However, even after all that, you might still have a problem. The root of the bigger problem is that ifeffit is no longer actively maintained, but it’s required for Demeter. The authors of the two packages have discussed the problem with me, but we have not come up with any satisfactory solution. You might investigate whether Larch (ifeffit’s successor) could help solve your problems outside of Athena? (That’s available in a port named py-xraylarch, which we added earlier in 2022. Or you can use pypi/pip to install Larch using Python’s package management outside of the MacPorts framework.) In principle, Larch might be capable of being mixed in to Demeter as a replacement for ifeffit, but in practice it would take some real work. (Or so the authors think.)

Bruce, Matt: please correct any misunderstandings I’ve expressed in the previous paragraph!

Best wishes,
Joe Fowler
NIST Boulder Labs

On Dec 4, 2022, at 6:22 PM, 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 the World Wide Web, visit
https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmillenia.cars.aps.anl.gov%2Fmailman%2Flistinfo%2Fifeffit&data=05%7C01%7Cjoe.fowler%40nist.gov%7Ceadc4d1750fd4ace7d7b08dad65f7e35%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638058002913728737%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=V4sqfkev1eA1kzGvCcKr5Wka%2BKbWpIwc6W12TtWaIMY%3D&reserved=0
or, 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. Installing Demeter on Mac (Apple M1) (agironda)

From: agironda <agironda@uw.edu>
Subject: [Ifeffit] Installing Demeter on Mac (Apple M1)
Date: December 4, 2022 at 5:33:43 PM MST
To: "ifeffit@millenia.cars.aps.anl.gov" <ifeffit@millenia.cars.aps.anl.gov>


Hi,
 
I’m a graduate student in Gerald Seidler’s group at University of Washington. I’ve gone through the process of installing Demeter on my M1 mac using macports. I believe it has completed successfully and all dependencies have been installed/established.
 
However, calling “athena” or other commands do nothing -here’s a screenshot from my terminal.
 
<image001.png>
 
Transcription: 
anthonygironda@Anthonys-MacBook-Air-4 ~ % sudo port install xorg-server demeter
 
Password:
--->  Computing dependencies for xorg-server
--->  Cleaning xorg-server
--->  Computing dependencies for demeter
--->  Cleaning demeter
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
anthonygironda@Anthonys-MacBook-Air-4 ~ % athena 
zsh: command not found: athena
anthonygironda@Anthonys-MacBook-Air-4 ~ % 
 
 
I understand Demeter compatibility on Mac is not largely supported, but has someone encountered this and found a workaround?
 
I’m a bit of a novice at command line, so I appreciate your consideration and help.
 
Sincerely,
Anthony Gironda


_______________________________________________
Ifeffit mailing list
Ifeffit@millenia.cars.aps.anl.gov
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit