Skip to content

Commit

Permalink
pin qgis to an older version
Browse files Browse the repository at this point in the history
latest version breaks sqlite in the python installation:
```
>>> import sqlite3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.11/sqlite3/__init__.py", line 57, in <module>
    from sqlite3.dbapi2 import *
  File "/opt/conda/lib/python3.11/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: /opt/conda/lib/python3.11/lib-dynload/_sqlite3.cpython-311-aarch64-linux-gnu.so: undefined symbol: sqlite3_deserialize
```

This prevents jupyter from starting up
  • Loading branch information
sunu committed Jun 26, 2024
1 parent 7524a49 commit 74a2157
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ RUN mkdir -p ${DESKTOP_FILES_DIR} ${MIME_FILES_DIR}
USER ${NB_UID}

# Setup qgis
# note: latest version of qgis was breaking the python installation
# so we are pinning to an older version for now
# todo: link to an issue with details

RUN mamba install -c conda-forge --yes \
qgis \
qgis==3.36.0 \
qgis-plugin-manager

COPY --chown=1000:1000 setup-qgis-plugins.bash /tmp/setup-qgis-plugins.bash
Expand Down

0 comments on commit 74a2157

Please sign in to comment.