Closed Yeqzids closed 6 years ago
Are you using a virtual environment (or conda environment)? If not I definitely recommend doing that. If you are not familiar with it, there are instructions at the top of here: http://rebound.readthedocs.io/en/latest/python_quickstart.html
I am using conda, but my reboundx is installed via pip because there is no conda package for Linux. I will try virtualenv to see if it helps. Thanks!
you can pip install into a conda environment (that's what I do). Let me know if it resolves the issue
Yes, this solved my problem. Thanks!
In case anyone runs into similar problems like me... upgrade rebound (not reboundx) to 3.5.13 appears to solve the problem.
I had the same error with Python_3.10, Rebound_4.3.2 and Reboundx_4.1.0, but it was solved by putting this line in my .bashrc
file
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib/python3.10/site-packages"
@pavlikva where do I put this in my .bashrc file in order to resolve this error, I am having the exact same issue as you are right now with Python_3.10, Rebound_4.3.2 and Reboundx_4.1.0.
Anywhere. I put it at the end. Then reload bash.
@pavlikva ,it still did not work, I put it at the end of the .bashrc file, and then reload it using the command source ~/.bashrc. Did I do something wrong?
It works, after adding the PATH variable.
Does echo $SHELL gives you /bin/bash? If your shell is different, then the path variable must be consistent with the shell syntax.
import reboundx
gives meOSError: librebound.cpython-36m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory
unless I do it under the python3.6/site-packages directory. Anyone has this error? I almost suspect I missed something obvious...python 3.6.5 rebound 3.5.12, reboundx 2.18.1 installed via pip