TransWikia.com

AttributeError: /usr/lib/libgdal.so.1: undefined symbol: OGR_F_GetFieldAsInteger64

Ask Ubuntu Asked by Sarthak tiwari on November 6, 2021

I am getting the error AttributeError: /usr/lib/libgdal.so.1: undefined symbol: OGR_F_GetFieldAsInteger64 when I try to deploy Django project on google cloud can anyone please give the
GDAL dockerfile for google cloud Django
my dockerfile

FROM gcr.io/google-appengine/python

RUN apt-get update && apt-get install -y 
  binutils 
  gdal-bin 
  python-gdal

# Create a virtualenv for dependencies. This isolates these packages from
    # system-level packages.
RUN virtualenv /env -p python3.7

# Setting these environment variables are the same as running
# source /env/bin/activate.
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH

# Copy the application's requirements.txt and run pip to install all
# dependencies into the virtualenv.
ADD  requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
# Add the application source code.
ADD . /app

# Run a WSGI server to serve the application. gunicorn must be declared as
# a dependency in requirements.txt.
entrypoint gunicorn -b :$PORT tiwari.tiwari.wsgi

One Answer

Try adding ubuntugis-unstable

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

sudo apt-get update

and install packages from it:

sudo apt-get install libgdal-dev

As ppa:nextgis/dev caused me a some trouble when installing sp package here and seem to also cause there

Answered by anjaneyulubatta505 on November 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP