I tried to install ngsolve with MPI support enabled on our new HPC with the above posted modifications to setup.py via pip install from local archives.
However I get the error message:
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
fatal: Kein Git-Repository (oder irgendeines der Elternverzeichnisse): .git
Traceback (most recent call last):
File "/tmp/pip-req-build-0zffjx8q/tests/get_python_version_string_from_git.py", line 8, in <module>
git_version = check_output(['git', 'describe', '--tags'], cwd=cwd).decode('utf-8').strip()
File "/software/rapids/r23.10/Python/3.10.4-GCCcore-11.3.0/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/software/rapids/r23.10/Python/3.10.4-GCCcore-11.3.0/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'describe', '--tags']' returned non-zero exit status 128.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-req-build-0zffjx8q/setup.py", line 30, in <module>
version = check_output([sys.executable,'tests/get_python_version_string_from_git.py'], cwd='.').decode('utf-8').strip()
File "/software/rapids/r23.10/Python/3.10.4-GCCcore-11.3.0/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/software/rapids/r23.10/Python/3.10.4-GCCcore-11.3.0/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/data/horse/ws/s0570488-Utility/bin/python3', 'tests/get_python_version_string_from_git.py']' returned non-zero exit status 1.
[end of output]
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.
Does anybody have dealt with this problem before and knows a simple solution to installing ngsolve with MPI support enabled via pip install?
Best
Philipp