Hi Kasper,
I thought that might be the case. I've also run into Python problems mostly to do with compatability issues between various versions of packages. But Conda seems to keep that sorted.
I'll go back to not using CMAKE_INSTALL_PREFIX.
Okay, done. And the compile/install went fine but I had two problems (now fixed).
Running cadabra2 from the command line gave me
Cadabra 2.5.11 (build 3798.56252610b8 dated 2025-04-08)
Copyright (C) 2001-2025 Kasper Peeters <info@cadabra.science>
Traceback (most recent call last):
File "<input>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local//opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/cadabra2_defaults.py'
I fixed that by creating a soft link
cd /usr/local
sudo ln -s /opt opt
Then cadabra2 reported
Traceback (most recent call last):
File "/usr/local/bin//cadabra2", line 139, in <module>
prefix, res = convert_line(line, sh.convert_data, True)
^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)
I fixed that by deleting prefix, f
rom the left hand side (on lines 88 and 139 in the cadabra2 script).
I can now run cadabra2 from the command line.
EDIT: The above hack is wrong. I have reverted back to the original version of cadabra2. That runs as expected.