GeoDjango Heroku Buildpack错误:未检测到GEOS

时间:2015-09-15 08:24:27

标签: django heroku geodjango

我正在使用GeoDjango buildpack for Heroku并继续遇到一个我无法解决的问题并且正在绕圈子进行。我希望有人可以提供帮助。

应用程序似乎构建正常:

Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 356 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching custom git buildpack... done
remote: -----> Python app detected
remote:        Using geos version: 3.4.2
remote:        Installed
remote:        GEOS installed and accessible with env variable 'GEOS_LIBRARY_PATH'
remote:        Using proj version: 4.8.0_1
remote:        Installed
remote:        Proj.4 installed and accessible with env variable 'PROJ4_LIBRARY_PATH'
remote:        Using gdal version: 1.11.1
remote:        Installed
remote:        GDAL installed and accessible with env variable 'GDAL_LIBRARY_PATH'
remote: -----> Installing dependencies with pip
remote: You are using pip version 7.0.1, however version 7.1.2 is available.
remote: You should consider upgrading via the 'pip install --upgrade pip' command.
remote: 
remote: -----> Preparing static assets
remote:        Collectstatic configuration error. To debug, run:
remote:        $ heroku run python manage.py collectstatic --noinput
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote: 
remote: -----> Compressing... done, 141.3MB
remote: -----> Launching... done, v33

但是当我更改模型文件然后尝试运行时,问题就出现了:

heroku run python manage.py syncdb

我收到错误:

django.core.exceptions.ImproperlyConfigured: GEOS is required and has not been detected. Are you sure it is installed?

我的设置文件包含:

GEOS_LIBRARY_PATH = environ.get('GEOS_LIBRARY_PATH')
GDAL_LIBRARY_PATH = environ.get('GDAL_LIBRARY_PATH')

我对Django和Heroku比较新,有什么明显我做错了吗?我怀疑它可能是路径问题,但我不确定如何解决它。

非常感谢

0 个答案:

没有答案