I am deploying a GIS app on heroku. I developed it in my computer and when I deploy it, rtree is missing. I am not able to install it via pip, since the pip installation is buggy, as stated by the rtree developers themselves. How can I get this dependency into heroku?
How do you install Rtree in Heroku?
287 Views Asked by Rodolfo Oocampo At
2
There are 2 best solutions below
0
Robin Uphoff
On
There is a Rtree library for linux (https://pypi.org/project/Rtree-linux/), which worked for me, without using any Buildpack. Just add Rtree-linux==x.x.x to your requirements.
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in HEROKU
- How to get Heroku Support to answer an email?
- Duplicate GET requests - Rails & Heroku
- I am struggling to get a 200 success request for my Heroku-hosted API on Rapid API for GET requests. I only receive a '404 page not found' error
- Heroku Deployment Error: Failed to Push Some Refs to Git Repository
- NOT WORKING domain.com/cv WORK domain.com/cv/ www.bluetrendy.com/cv www.bluetrendy.com/cv/ any ideas?
- I'm going nuts with Heroku session management issues
- Images stored on google drive are not loading on a website hosted on heroku
- Deploy Springboot app on heroku which is using google storage services
- How to run mitmproxy in Heroku?
- Celery Task Tracing ValueError: Unpacking Issue in a Flask Web App Migration, python backend
- Unable to push changes via git behind Proxy with Heroku
- Failed docker deployment: Cannot find module '/app/heroku'
- Request timeout error (H12) on Heroku deployment for website scraping and Excel generation
- Stripe doesn't work after deploying on Heroku by Django
- I got CORS error when trying to do a request in my app in Heroku
Related Questions in GEOPANDAS
- Pandas and GeoPandas indexing and slicing
- Calculate Distance to Nearest Feature with Geopandas
- Circular dependency issue - Python
- shapely's scale function in geopandas returns points of similar magnitude
- Shortest path between many 2D points (travelling salesman within Shapely LineString?)
- Fill polygon with pattern instead of color Geopandas
- Find Distance to Nearest GPS Coordinates (Nearest Neighbors Search)
- Find distance inside on a Geopandas geometry edge, based on points and bearing
- Maintaining the geostructure when indexing a geodataframe
- import fiona : ImportError: cannot import name 'calc_gdal_version_num'
- expanding multipolygon in geopandas dataframe
- How to add field to polygon from spatial join with points using geopandas
- Convert multipolygon geometry into list
- set_xlim() does not work with text labels
- geopandas : ambiguity of indexing contains() method
Related Questions in R-TREE
- ELKI DBSCAN for million files
- Python rtree nearest - what exactly it does?
- How to go about learning R-tree?
- How to iterate over a boost R-tree?
- Unsure of which multidimensional nearest neighbour algorithm to use
- Performance of RTree vs kd-trees
- Find closest line to each point on big dataset, possibly using shapely and rtree
- Storing or accessing objects in boost r-tree
- How to use an R-Tree for knnsearch in Matlab
- Boost r-tree "correct" way to access objects
- How to use a R-Tree in Cassandra as indexing
- K nearest neighbour search with weights on dimensions
- What clustering algorithm is suitable for 2d rectangles without knowing the number of clusters ahead of time?
- sqlite not using index on android
- STR trees and how they are different from an R-tree?
Related Questions in LIBSPATIALINDEX
- AttributeError: 'GeoDataFrame' object has no attribute 'overlay'
- How to install libspatialindex to enable Rtree in windows?
- pyinstaller EXE OSError: could not find or load spatialindex_c-64.dll
- Install libspatialindex on Google Cloud AI platform
- Windows 10 Rtree installation successful from .whl file, but error when running code
- how to find nearest point within querybox(query area) using rtree, python
- Is it possible to redefine a macro without the use of ‘undef’?
- How do you install Rtree in Heroku?
- OSError: Could not find libspatialindex_c library file on Mac OSX
- How to install libspatialindex on Google Colaboratory
- libSpatialIndex: loading/storing index on disk
- Error while bulk loading in C/C++
- what should be the format of input data file which is passed as an object to MyDataStream stream(argv[1])
- (Re)loading the R Tree with spatialindex library
- C++ spatialindex library: loading/storing main memory RTree from/to disk
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I know this question is old, but I'd thought I'd put my solution in case anyone was still having this problem.
For me at least, the reason the pip installation of RTree 0.9.4 was failing was due to the following error:
According to this known error with pip installation for RTree (https://github.com/Toblerity/rtree/issues/120), I figured it could be due to a problem with libspatialindex not being properly installed/configured on the heroku servers.
To solve this problem with libspatialindex, I added a buildpack to Heroku. This one worked for me: https://github.com/ihat/heroku-libspatialindex-buildpack.git
You need to still add the standard python buildpack after the libspatialindex one.
Image of Heroku Dashboard Buildpack Installation Order
This allowed RTree to install correctly for me through the automatic heroku pip installation process.