Comments (8)
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.
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.
Could you share the simple Dockerfile you got to work? I am getting the initial error, trying the exact same thing.
from python-geosupport.
@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.
@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.
@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.
@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.
@benjaminsingleton Did you get it working on your Mac?
from python-geosupport.
Related Issues (20)
- Python 2.7 TypeError: unicode argument expected, got 'str' HOT 1
- Tests failing on Geosupport 18d HOT 1
- g.address() method for house_number and street_name together (i.e. freeform)? HOT 1
- Data-Agnostic Test Cases HOT 6
- Using regular+tpad for function 1B resulted more miss than just regular HOT 6
- how to use the browse flag HOT 6
- Census tract formatting issue (missing spaces)
- Zip Code inconsistancies between input and output HOT 1
- adding fips into the BOROUGH look up dictionary HOT 1
- Unicode error when running on linux OS HOT 5
- Move docs to readthedocs
- Add "truck route type" field in WA2
- New Mode Switch of E (Enhanced) for Function 3 and 3C
- Add Police Sector and Police Service Area fields
- Trying to get the Linux version of Geosupport running w/ this library on CentOS8 HOT 1
- Initializing Geosupport HOT 1
- Multi-platform testing
- Interactive help string formatting issue HOT 4
- Hello from geoclient HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-geosupport.