-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python 3.5/3.6/3.7 librebound.cpython-36m-x86_64-linux-gnu.so import error #39
Comments
Hey Garett, Thanks so much for the great testing and detailed write-up! I'm away until Tue but will look into this then. This will help a lot. |
Hey Garett, I was able to reproduce your issue on my Ubuntu workstation. The problem was that to install, reboundx needs to figure out where rebound is. It was doing that by importing rebound, but the problem when you Could you check that the new version on PyPI (3.0.1) fixes the problem for you (just run the same commands again)? |
Hi Dan, The update you made fixes the problem for me. When I was testing the bug before the bug would show up when I did Thanks Dan |
Thank you! |
I'm having issues with
import reboundx
givingOSError: librebound.cpython-35m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory
on Linux within a python virtualenv. The commands I'm using are:virtualenv -p python3 venv
source venv/bin/activate
pip install rebound reboundx
(then start a python session in the virtualenv)
python
When I run
import reboundx
I get:This example uses Python/3.5.3, but I also get the same issue with Python/3.6 and Python/3.7. It might seem obvious that the errors are different for each version of python giving
librebound.cpython-35m-x86_64-linux-gnu.so
,librebound.cpython-36m-x86_64-linux-gnu.so
, andlibrebound.cpython-37m-x86_64-linux-gnu.so
but I've included copies of all 3 just incase it comes up with a Google search result for those who don't know.The issue does not appear when the same commands are used in macOS (10.14.6). There was a similar issue brought up before (#26) that was closed April 2018. The previous solution was,
However, this solution is outdated.
After digging around, it seems to work if
reboundx
is installed from a git repo. So if I use a local copy ofreboundx
and first update it withgit pull origin master
to git-hashfc75c72e43a27f7a54a98a4c7e5f314182341e88
(Fri Aug 16 11:44:19) and I install it usingpip install -e .
then everything seems to work.Even so, this does not always work if a local git repo of
rebound
is also installed usingpip install -e .
, but it does always seem to work ifrebound
is installed withpip install rebound
. When installed usingpip install rebound
therebound
git-hash is1d360a4bbe951b7826dc4654cd1a820259571fb2
(Thu Aug 15 10:01:27 2019). But the newest git-hash inrebound
is currently74addbcedc64a44541f2e2a0c38ba3bd52c064e4
(Fri Aug 16 09:41:21), so maybe this is arebound
issue and not areboundx
issue. But the error is given onimport reboundx
so I'm submitting it here.The text was updated successfully, but these errors were encountered: