本文介绍了Beanstalk迁移因Geodjango失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在AWS beantalk中部署geodjango.

I want to deploy geodjango in aws beanstalk.

我已经尝试过此解决方案.它曾经工作过.

I have already tried this solution. It worked before.

commands:
  01_yum_update:
    command: sudo yum -y update
  02_epel_repo:
    command: sudo yum-config-manager -y --enable epel
  03_install_gdal_packages:
    command: yum --enablerepo=epel -y install gdal gdal-devel

packages:
  yum:
    git: []
    postgresql96-devel: []
    gettext: []
    libjpeg-turbo-devel: []
    libffi-devel: []

但是现在它显示此错误.

But right now it's showing this error.

AttributeError: /usr/lib64/libgdal.so.1: undefined symbol: GDALGetMetadataDomainList
   (ElasticBeanstalk::ExternalInvocationError)

这是完整的错误日志

推荐答案

就像使用Django==2.2.1弄乱了东西.当前运行的requirements.txt如下:

Looks like using Django==2.2.1 messing the things. The current requirements.txt which worked is as follows:

Django==2.1.8
django-cors-headers==2.5.2
django-debug-toolbar==1.11
django-extensions==2.1.6
django-model-utils==3.1.2
djangorestframework==3.9.2
psycopg2-binary==2.8.2
pytz==2019.1
six==1.12.0
sqlparse==0.3.0

这篇关于Beanstalk迁移因Geodjango失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 11:15