dtamayo / reboundx

A library for adding additional forces to the REBOUND N-body integration package
GNU General Public License v3.0
80 stars 60 forks source link

Problem in installing REBOUND X #66

Closed navonilsaha closed 3 years ago

navonilsaha commented 3 years ago

Hi all, I recently upgraded to a Mac system , I was using REBOUND and REBOUND X in my previous Linux machine. Now, in this new Mac machine I was able to install Rebound successfully and it's running ,but I am somehow not being able to install Rebound X , It always gives me an error message and then terminate the installation whenever I try to install it using "pip install reboundx" . I have attached two Screenshots of the same . Also to just let you know , I have tried this in both my Global as well as Virtual environment , but still Rebound X is not getting installed. Previously , I had a conversation with @hannorein , and he suggested me to post the issue here in the forum. I would be really thankful to you all if you can help me out with this.

Screenshot 2021-06-23 at 12 12 58 PM Screenshot 2021-06-23 at 12 13 15 PM
hannorein commented 3 years ago

Hi Navonil,

You're screenshots don't show the actual error, just some warnings (which you can ignore). Can you post the actual error message?

Hanno

navonilsaha commented 3 years ago

Sir, I have tried to post the errors as text. I have also attached the Screenshot showing the error messages.

ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"'; file='"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ws/tgmz9ld1k5cymz491fnh6vm0000gn/T/pip-wheel-as3ui8j cwd: /private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/

src/rebxtools.c:77:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:77:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ src/rebxtools.c:170:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:170:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ 1 warning and 4 errors generated. error: command '/usr/bin/clang' failed with exit code 1

ERROR: Failed building wheel for reboundx

src/rebxtools.c:77:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:77:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ src/rebxtools.c:170:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:170:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ 1 warning and 4 errors generated. error: command '/usr/bin/clang' failed with exit code 1

ERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"'; file='"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-record-5su17wyc/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/reboundx Check the logs for full command output.

Screenshot 2021-06-26 at 6 33 28 PM Screenshot 2021-06-26 at 6 33 51 PM
dtamayo commented 3 years ago

Thank you for the bug report! I'm back tomorrow and will resolve it. If you need it immediately you can always install an older version of REBOUND and REBOUNDx

On Sat, Jun 26, 2021, 9:11 AM Navonil Saha @.***> wrote:

Sir, I have tried to post the errors as text. I have also attached the Screenshot showing the error messages.

ERROR: Command errored out with exit status 1: command: @.**/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"'; file='"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file*, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ws/tgmz9ld1k5cymz491fnh6vm0000gn/T/pip-wheel-as3ui8j cwd: /private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/

src/rebxtools.c:77:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:77:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ src/rebxtools.c:170:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:170:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ 1 warning and 4 errors generated. error: command '/usr/bin/clang' failed with exit code 1

ERROR: Failed building wheel for reboundx

src/rebxtools.c:77:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:77:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ src/rebxtools.c:170:19: error: implicit declaration of function 'reb_get_com_without_particle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] com = reb_get_com_without_particle(com, p); ^ src/rebxtools.c:170:17: error: assigning to 'struct reb_particle' from incompatible type 'int' com = reb_get_com_without_particle(com, p); ^ ~~~~~~~~~ 1 warning and 4 errors generated. error: command '/usr/bin/clang' failed with exit code 1

ERROR: Command errored out with exit status 1: @.**/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"'; file='"'"'/private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-install-364w_mr9/reboundx_51c0bf23eaa2488c9ab893298ebf2ca6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file*, '"'"'exec'"'"'))' install --record /private/var/folders/ws/tg_mz9ld1k5cymz491fnh6vm0000gn/T/pip-record-5su17wyc/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/reboundx Check the logs for full command output. [image: Screenshot 2021-06-26 at 6 33 28 PM] https://user-images.githubusercontent.com/85501885/123513961-b76d1e00-d6ad-11eb-8b6f-5e2cdb2e1b81.png [image: Screenshot 2021-06-26 at 6 33 51 PM] https://user-images.githubusercontent.com/85501885/123513967-bdfb9580-d6ad-11eb-96f6-a3ab95997507.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dtamayo/reboundx/issues/66#issuecomment-868999082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2ABF7KT6NNLUDPLTF3HGLTUXGX3ANCNFSM47LJ3PYQ .

dtamayo commented 3 years ago

Thanks for your patience! The latest commit and latest version on PyPI (3.3.1) is a temporary fix that forces installation of REBOUND 3.16.0 so that things will install. Working on an actual patch now.

navonilsaha commented 3 years ago

Thank so much you sir. Yes,I could install it for now with the 3.16.0 version . Waiting for the latest version.

Best, Navonil

dtamayo commented 3 years ago

OK, REBOUNDx 3.4.0 should fix this problem. Could you check whether it does for you? If so, feel free to close the issue

navonilsaha commented 3 years ago

Yes Sir, thanks a lot it's working now. Thanks for all the help. Best, Navonil