Closed jnibauer closed 2 years ago
From your description of the first installation method, it seems that you tried to install petar in AMUSE in standalone PeTar code. This does not work since the Makefile in amuse-interface is designed for installation in AMUSE source code.
For your second method using pip. I have tried and also found that petar is not properly installed. When I implement the petar interface in AMUSE, I use the the traditional way to install AMUSE (using configure and make directly from AMUSE source code https://github.com/amusecode/amuse). Could you try this and see whether petar-amuse is properly installed?
For the issue of installation with pip, please add a new issue in AMUSE git.
Hello, I am trying to install Peter as an AMUSE community code. I am executing the following command from the amuse root directory
make -C /home/jacob/PetarDir/PeTar/amuse-interface
which throws the error `src/PeTar/src/petar.hpp:62:9: fatal error: particle_simulator.hpp: No such file or directoryinclude`
Indeed, I cannot locate the file particle_simulator.hpp in /Petar/src, even after successfully running ./configure.
Alternatively, I have attempted
pip install amuse-petar
which also results in an error. Namely, `Building wheels for collected packages: amuse-petar Building wheel for amuse-petar (pyproject.toml) ... error error: subprocess-exited-with-errorrlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup exec(compile(code, file, 'exec'), locals()) File "setup.py", line 49, in
setup(
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 136, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/tmp/pip-build-env-3r7plnfo/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-jx3a2yhj/amuse-petar_ffc7ce9b3b00417987d9f09a3253e7db/support/setup_codes.py", line 1099, in run
raise Exception("No succesful builds detected. Aborting.")
Exception: No succesful builds detected. Aborting.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for amuse-petar Failed to build amuse-petar ERROR: Could not build wheels for amuse-petar, which is required to install pyproject.toml-based projects`