Since it has a metadata.yml file for version 0.16.2, (which we don’t use anymore), it is both a renku-python 0.16.2 (because of metadata.yml) and a renku-python 1.2.2 (because of .renku/metadata/project · master · Romain Guiet / ABBA-BIOP_VM · GitLab that was created when the project was created) project at the same time, which isn’t valid. If you use renku-python <1.0.0, it’ll see the metadata.yml, think this is a valid 0.16.2 project, and check .renku/datasets/ folder for datasets (which doesn’t exists, so there’s no datasets in this project). If you use renku-python 1.2.2, it’ll correctly check .renku/metadata/datasets instead and list the datasets just fine:
$ renku --version
1.2.3
$ renku dataset ls
ID NAME TITLE VERSION
-------------------------------- ----------------------------------------------------------------- ----------------------------------------------------------------- ---------
5e71211c69e249f8b3925da4c36d5529 serial-coronal-sections-of-an-adult-sections-brain-sample-dataset Serial Coronal Sections Of An Adult Sections Brain Sample Dataset
ddcae20bdf084189a3ce5aae09aefa7d allen-mouse-ccf-v3-labels-modulo-65000 Allen Mouse CCF v3 Labels Modulo 65000
Replacing the contents of .renku/metadata.yml with
# Dummy file kept for backwards compatibility, does not contain actual version
'http://schema.org/schemaVersion': '9'
and I created a new project, I managed to add the “light” dataset with the import function , but if I try to do the same with the “heavy” dataset I get the error below :
Yes, the second is what I meant. Are you working in interactive sessions or locally? You have to update the Renku CLI for this to work. If you do renku --version it should tell you the version. You can upgrade it locally by running pip install --upgrade renku or for the interactive sessions by modifying the Dockerfile here (Set to 1.2.4 or 1.2.2, both should be OK).
As for the template, this line also has to be changed to read ARG RENKU_VERSION={{ __renku_version__ | default("1.2.2") }}. That way, renkulab will automatically fill in the correct version when creating a project.