Giter Site home page Giter Site logo

Comments (8)

ishiland avatar ishiland commented on May 29, 2024

You are running via docker container or on a stand alone Ubuntu machine? I would check the system resources that are available leading up to that error. Is it possible the environment does not have enough memory?

from python-geosupport.

benjaminsingleton avatar benjaminsingleton commented on May 29, 2024

I was able to get python-geosupport working in a different (more simple) docker container, so I need to continue to troubleshoot the seg fault. As you suggested, it could be possible that the environment does not have enough memory. I'll report back when I have confidence in the root cause. Thanks for the feedback.

from python-geosupport.

bbhoss avatar bbhoss commented on May 29, 2024

Could you share the simple Dockerfile you got to work? I am getting the initial error, trying the exact same thing.

from python-geosupport.

benjaminsingleton avatar benjaminsingleton commented on May 29, 2024

@bbhoss This works for me. I had to make a small change to the source code, which you can see in my fork.

FROM python:3.7-alpine

# Change version as necessary
ARG GEOSUPPORT_VERSION="18c"

RUN apk update && \
    apk add bash curl git libgcc unzip && \
    curl https://www1.nyc.gov/assets/planning/download/zip/data-maps/open-data/gdelx_$GEOSUPPORT_VERSION.zip -O -J -L && \
    unzip gdelx_$GEOSUPPORT_VERSION.zip -d /geosupport && \
    export UNZIPPED_FOLDER_NM="$(ls /geosupport/)" && \
    mv /geosupport/$UNZIPPED_FOLDER_NM /geosupport/app && \
    rm gdelx_$GEOSUPPORT_VERSION.zip
 
ENV GEOFILES="/geosupport/app/fls/" \
    LD_LIBRARY_PATH="/geosupport/app/lib"

RUN pip install git+git://github.com/benjaminsingleton/python-geosupport.git

RUN apk del curl unzip

CMD ["/bin/sh"]

from python-geosupport.

docmarionum1 avatar docmarionum1 commented on May 29, 2024

@benjaminsingleton You're running it on python:3.7-alpine? Or are you running on OSX?

I saw the change in your fork and it's checking if the version is in ['linux', 'darwin']. alpine should have worked with sys.platform.startswith('linux') without the change you made. 'darwin' is suppose to be for OSX.

from python-geosupport.

benjaminsingleton avatar benjaminsingleton commented on May 29, 2024

@docmarionum1 You're right. You don't need to use my fork when using alpine linux. I forgot that I was trying to get the package to work on my Mac at one point.

This works:

FROM python:3.7-alpine

# Change version as necessary
ARG GEOSUPPORT_VERSION="18c"

RUN apk update && \
    apk add bash curl git libgcc unzip && \
    curl https://www1.nyc.gov/assets/planning/download/zip/data-maps/open-data/gdelx_$GEOSUPPORT_VERSION.zip -O -J -L && \
    unzip gdelx_$GEOSUPPORT_VERSION.zip -d /geosupport && \
    export UNZIPPED_FOLDER_NM="$(ls /geosupport/)" && \
    mv /geosupport/$UNZIPPED_FOLDER_NM /geosupport/app && \
    rm gdelx_$GEOSUPPORT_VERSION.zip
 
ENV GEOFILES="/geosupport/app/fls/" \
    LD_LIBRARY_PATH="/geosupport/app/lib"

RUN pip install python-geosupport

RUN apk del curl unzip

CMD ["/bin/sh"]

from python-geosupport.

benjaminsingleton avatar benjaminsingleton commented on May 29, 2024

@ishiland I was able to get the package to work on a fresh build of my Docker image. I'm honestly not sure what was the root cause of the earlier error, but I'm going to close the issue since it seems to have resolved itself.

from python-geosupport.

docmarionum1 avatar docmarionum1 commented on May 29, 2024

@benjaminsingleton Did you get it working on your Mac?

from python-geosupport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.