Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datalad-catalog error, jsonschema version #434

Open
bpinsard opened this issue Mar 22, 2024 · 2 comments
Open

datalad-catalog error, jsonschema version #434

bpinsard opened this issue Mar 22, 2024 · 2 comments
Labels

Comments

@bpinsard
Copy link

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
Copy link
Member

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

@jsheunis
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants