Skip to content

Commit

Permalink
move dependencies to requirements.txt to avoid conda conflicts, susbe…
Browse files Browse the repository at this point in the history
…quent jupyter fix
  • Loading branch information
dafeliton committed Nov 13, 2024
1 parent 7ad8f19 commit 47461fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,22 @@ RUN pip uninstall pillow fiona -y && \

# pygeos is deprecated and has been merged with shapely. (pygeos works around python GIL)
# https://github.com/shapely/shapely

# geopandas/cartopy/etc. error when importing sqlite3 from python:
# ImportError: /opt/conda/lib/python3.11/lib-dynload/_sqlite3.cpython-311-x86_64-linux-gnu.so: undefined symbol: sqlite3_deserialize
# Moved to requirements.txt

RUN mamba install -c conda-forge -y \
geopandas \
cartopy \
shapely \
pysal \
contextily \
osmnx \
jupyterlab_widgets
jupyterlab_widgets && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER && \
mamba clean --all

RUN mamba install -c esri arcgis -y

RUN mamba install numpy -y

RUN pip install --upgrade pip setuptools wheel
RUN pip install --upgrade nbconvert

# RUN mamba install -c conda-forge geopandas cartopy pygeos pysal contextily osmnx jupyterlab_widgets -y

USER $NB_UID

COPY arcgis_test.ipynb /opt
Expand Down
7 changes: 6 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ shapely
pyshp
pandas
censusdata
graphviz
graphviz
geopandas
cartopy
pysal
contextily
osmnx

0 comments on commit 47461fe

Please sign in to comment.