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
rtree version 0.9 install error: OSError: libspatialindex_c.so: cannot open shared object file #120
Comments
worth mentioning that |
Seeing the same issue as of this morning on our CI server. The system (running Scientific Linux 7) has libspatialindex v1.8.5 installed:
However, I have no shared library named
The changes in this diff resulted in
|
Sorry for the churn. I was trying to clean up a messy area of the code that seemed to be getting patched by downstream packaging groups. #56 implies that |
@DanielFEvans can you please try current master? If it fixes your issue, I will cut a 0.9.1 release immediately. |
Appears that there was a change in Python 3.6 to cause I wonder if you could make more people happy with a fallback if
Of course, that still doesn't work if you've got a |
suggestion added in b85e2c8 |
@hobu - latest master installs without error, unlike 0.9.0. Thanks! |
0.9.1 released to fix this issue. https://pypi.org/project/Rtree/ |
Mmmm, this is still failing for me. It used to work with rtree v0.8.3 but now it fails with v0.9.1 (I am doing exactly the same thing, just with a different version of rtree since I install on servers with ansible) |
0.9.2 was just released. Is that what is failing for you? If so, I need more information. The 0.9.2 code is an adaptation of what was there in 0.8.3. |
Thanks for the quick response. Yes, it is still failing with 0.9.2 My ansible script fails as follow:
and it fails with
Attempting the same thing manually yields:
but note that the lib is there:
Thanks again and let me know if you need anything more than this. |
@davidedelvento which platform and packages do you have installed? I just added ubuntu 16.04 and 18.04 pip tests that install and run correctly. |
See https://github.com/Toblerity/rtree/pull/131/files for the libspatialindex package I am installing on ubuntu. |
The package that must be installed on trusty is |
@hobu thanks a lot for this quick response. I am running on Ubuntu 16.04.6 LTS and installing libspatialindex v1.8.5 from sources (I do not recall why at the moment and the commit comment on the ansible script that does that install does not clarify why not using the distro for this package). Meanwhile, though, I do not understand how install from source should cause this issue (which was not happening in rtree v0.8.3). As you can see with the logs above, the libraries are there and the error says |
If you're building from source, use the latest 1.9.3 if you can. https://libspatialindex.org/ I don't understand how rtree 0.8.x specifically looked in |
I think I have it figured out now in #131 by building a test case. Release coming today. |
Hi,
running
pip install "rtree>=0.8,<1"
fails with this error:I installed
libspatialindex_c.so
manually by running the following, but the above error still happens even though/usr/local/lib/libspatialindex_c.so
exists now :The text was updated successfully, but these errors were encountered: