datalad / datalad-catalog

Create a user-friendly data catalog from structured metadata
https://datalad-catalog.netlify.app
MIT License
15 stars 11 forks source link

datalad-catalog error, jsonschema version #434

Open bpinsard opened 8 months ago

bpinsard commented 8 months ago

Installed datalad-catalog, and I got the folllowing error:

$datalad catalog-create --catalog data-cat
[ERROR  ] Internal error, cannot import interface 'datalad_catalog.create': ImportError(cannot import name 'Draft202012Validator' from 'jsonschema' (/usr/lib/python3/dist-packages/jsonschema/__init__.py))
usage: datalad [-c (:name|name=value)] [-C PATH] [--cmd] [-l LEVEL] [--on-failure {ignore,continue,stop}]
               [--report-status {success,failure,ok,notneeded,impossible,error}] [--report-type {dataset,file}]
               [-f {generic,json,json_pp,tailored,disabled,'<template>'}] [--dbg] [--idbg] [--version]
               {} ...
datalad: error: invalid choice: 'catalog-create' (choose from )

updated jsonschema and it fixed the issues, so a minimum version should be pinned in the setup.cfg file.

jsheunis commented 7 months ago

Thanks for the issue @bpinsard! I'll look into it.

jsheunis commented 5 months ago

Hi @bpinsard Can you perhaps report the environment and versions of datalad and datalad-catalog for this issue. I could not reproduce this locally.