heroku / heroku-geo-buildpack

0 stars 2 forks source link

PROJ 7.2.0 or above #27

Closed thushw closed 2 years ago

thushw commented 2 years ago

Hey there - I tried to install PROJ 7.2.0 as this is the minimum required for pyproj==3.2.1, but it looks like either the heroku stack or the buildpack doesn't support it.

Is there a workaround I could use?

Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.36 KiB | 1.36 MiB/s, done.
Total 4 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpacks:
remote:        1. https://github.com/heroku/heroku-geo-buildpack.git
remote:        2. heroku/python
remote: -----> Geo Packages (GDAL/GEOS/PROJ) app detected
remote: -----> Installing GDAL-2.4.0
remote: -----> Installing GEOS-3.7.2
remote: -----> Installing PROJ-7.2.0
remote:  !     Requested PROJ Version (7.2.0) is not available for this stack (heroku-20).
remote:  !     Aborting.
remote:  !     Push rejected, failed to compile Geo Packages (GDAL/GEOS/PROJ) app.
remote:

The error when I try with the defaults:

remote:        Collecting pyproj==3.2.1
remote:          Downloading pyproj-3.2.1.tar.gz (213 kB)
remote:          Installing build dependencies: started
remote:          Installing build dependencies: finished with status 'done'
remote:          Getting requirements to build wheel: started
remote:          Getting requirements to build wheel: finished with status 'error'
remote:          ERROR: Command errored out with exit status 1:
remote:           command: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp4ozi2bq8
remote:               cwd: /tmp/pip-install-5wi8xvbd/pyproj_b7297c30ebd24095b9eaf930a66f0e3f
remote:          Complete output (1 lines):
remote:          ERROR: Minimum supported PROJ version is 7.2.0, installed version is 5.2.0. For more information see: https://pyproj4.github.io/pyproj/stable/installation.html
edmorley commented 2 years ago

@thushw Hi!

I've just uploaded PROJ v8.2.1 in #36. To use it, you'll need to set the env var PROJ_VERSION to 8.2.1: https://github.com/heroku/heroku-geo-buildpack#default-versions https://github.com/heroku/heroku-geo-buildpack#available-versions

If there are any issues with the new version let me know :-)