thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
453 stars 156 forks source link

Unable to install from formula #149

Open ritesh opened 2 months ago

ritesh commented 2 months ago

I'm trying to install openEMS on mac using the instructions on the wiki for macOS (version 14.6.1, Sonoma).

brew tap thliebig/openems https://github.com/thliebig/openEMS-Project.git
brew install --HEAD openems

This fails firstly due to a mismatch in the version of hdf5. I tried to hack around this by changing the homebrew formula to depend on hdf5@1.10 (line 19). I'm a newbie, so I don't know if this will break other things!

depends_on "hdf5@1.10"

This seems to fix the compilation issues, but it fails to install the python dependencies - here I'm not sure how to proceed.

Last 15 lines from /Users/RiteshSinha/Library/Logs/Homebrew/openems/06.python3.12:
setup.py
build_ext
-I
/opt/homebrew/Cellar/openems/HEAD-494c95c/include
-L
/opt/homebrew/Cellar/openems/HEAD-494c95c/lib
-R
/opt/homebrew/Cellar/openems/HEAD-494c95c/lib
-j
16

Traceback (most recent call last):
  File "/private/tmp/openems-20240911-86729-fo4vs7/CSXCAD/python/setup.py", line 1, in <module>
    from setuptools import Extension, setup
ModuleNotFoundError: No module named 'setuptools'
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --version
/opt/homebrew/Library/Homebrew/ignorable.rb:27:in `block in raise'
BuildError: Failed executing: python3.12 setup.py build_ext -I /opt/homebrew/Cellar/openems/HEAD-494c95c/include -L /opt/homebrew/Cellar/openems/HEAD-494c95c/lib -R /opt/homebrew/Cellar/openems/HEAD-494c95c/lib -j 16
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: shell
When you exit this shell, you will return to the menu.

Has anyone had success in installing on macOS recently?

SengerM commented 2 weeks ago

Hi. Try pip install setuptools and run it again. You may try this PR as well.