Open trichter opened 7 months ago
Hi there, I have troubles installing telewavesim as I run in the following error, while trying to install it via pip:
Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
As I think this is related to the issue trichter pointed out above I hope someone knows a way to fix this.
As a work-around you can try to install in a conda environment with an old numpy and python version.
The following is working for me:
conda create -n telews -c conda-forge "python=3.10" "numpy<1.22" obspy pytest fortran-compiler
conda activate telews
pip install telewavesim
pytest -v --pyargs telewavesim # run tests
Thank you for your quick reply, we did the same here as a workaround and setup an environment with python 3.10.
Occasionally we should move from
numpy.distutils
to meson. I think telewavesim cannot be installed alongside python3.12 due to setuptools/numpy.distutils conflicts. numpy.distutils is also removed from numpy.