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 answers
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
- Python Geopandas unable to convert latitude longitude to points
- Need assistance suppressing specific UserWarning in Python code execution
- How to find mean value of k nearest points when some values are NaN?
- Rotate a multipolygon without changing the inner spatial relation
- How can I position a pie chart within another plot according to x, y coordinates?
- Geopandas not returning correct buffer in meters
- TypeError: 'MultiPolygon' object is not iterable (VS Code: Python geopandas)
- Optimizing Python Code for Generating a Large Grid Map with Ocean Nodes Only
- Solving upside plot and projection problems in Geopandas and Altair
- Merging Geodataframe Polygons to Meet Population Threshold in Python
- geofileops gives wrong result in intersection when data is big
- Adding shapely polygon to geopandas
- Center of geopandas.geodataframe.GeoDataFrame
- calculate linestring endpoints from point, perpendicular to a given angle
- Remove white spaces in subplots matplolib
Related Questions in R-TREE
- More efficient way to find all intersections using rtree
- How to set Boost RTree coordinate system
- Error in Loading Serialized Map Data with InMemMap.deserialize
- question about node split algorithm in rtree
- How to properly use indexable in Boost?
- 4th dimension with boost.geometry.index.rtree
- Grid Layout Algorithm For Positioning Rectangle Into Available Space
- Calculating the Height of an R-Tree: Where Did I Go Wrong?
- Memory issue with CGAL RTree when working with 39,651,210 2D points
- Python - Loading an R-Tree from file
- boost r-tree error: The first type of std::pair has to be an Indexable. How do I fix this?
- AttributeError: 'GeoDataFrame' object has no attribute 'overlay'
- Geometric data structure for storing points from [0, 1)^d with toroidal topology
- How can I use `boost::geometry::index::rtree` to find every neighbor inside a surrounding sphere?
- boost Rtree of points, which spatial query method (covered_by, intersects and within) is more efficient to search points covered by a bouding box?
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
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?
Popular Tags
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)
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.