Skip to content

Commit 2894231

Browse files
authored
Pin libsqlite=3.50.4 to workaround undefined symbol: sqlite3_total_changes64 error (#63)
* Activate try-gmt environment in setup-miniconda step * Bump jupyterlab to 4.5.1, jupyter-offlinenotebook to 0.3.2, geopandas to 1.1.2 * Set use-mamba: true instead of conda-solver: libmamba * install repo2docker into test environment only No need to install from environment.yml twice, since repo2docker does a separate clean install. * Install repo2docker using pip instead of conda/mamba. Should pull in jupyter-repo2docker 2025.12.0 instead of 2025.8.0 * Pin jupyterlab to 4.4.9 Match version at https://github.com/jupyterhub/repo2docker/blob/2025.12.0/repo2docker/buildpacks/conda/environment.py-3.10-linux-64.lock#L175 * Pin libsqlite to 3.50.4 Match https://github.com/jupyterhub/repo2docker/blob/2025.12.0/repo2docker/buildpacks/conda/environment.py-3.10-linux-64.lock#L31, try to prevent other versions of sqlite/libsqlite from being pulled in.
1 parent 5340d2b commit 2894231

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/repo2docker.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,21 @@ jobs:
99
repo2docker:
1010
name: Run repo2docker
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
shell: bash -l {0}
1215

1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16-
17-
- name: Setup Miniconda
18-
uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
1919
with:
20-
conda-remove-defaults: "true"
21-
conda-solver: libmamba
22-
miniforge-version: latest
23-
24-
- name: Install dependencies
25-
shell: bash -l {0}
26-
run: conda install jupyter-repo2docker
20+
persist-credentials: false
2721

28-
- name: Show installed package
29-
shell: bash -l {0}
30-
run: conda list
22+
- name: Set up Python and install repo2docker
23+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
24+
with:
25+
python-version: "3.13"
26+
pip-install: jupyter-repo2docker
3127

3228
- name: Run repo2docker
33-
shell: bash -l {0}
3429
run: jupyter-repo2docker --no-run --ref ${{ github.event.pull_request.head.sha }} https://github.com/${{ github.event.pull_request.head.repo.full_name }}

environment.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ dependencies:
66
- python=3.13
77
- gmt=6.6.0
88
- pygmt=0.17.0
9-
- jupyterlab=4.3.6
10-
- jupyter-offlinenotebook=0.3.1
9+
- jupyterlab=4.4.9
10+
- jupyter-offlinenotebook=0.3.2
1111
# Optional dependencies
12-
- geopandas=1.1.1
12+
- geopandas=1.1.2
13+
# Temporary pin libsqlite to workaround `undefined symbol: sqlite3_total_changes64`
14+
# https://github.com/GenericMappingTools/try-gmt/pull/63
15+
- libsqlite=3.50.4

0 commit comments

Comments
 (0)