cffconvert icon indicating copy to clipboard operation
cffconvert copied to clipboard

Make compatible with jsonschema 4

Open johentsch opened this issue 3 years ago • 4 comments

Hi folks,

currently cffconvert downgrades jsonschema to 3.2.0 upon pip install. This makes Jupyter notebook and lab fail with a ModuleNotFoundError: No module named 'jsonschema.protocols' error.

This means that users who have the current versions of jupyter installed need to create a new environment for cffconvert specially. This could be avoided by making the code compatible with jsonschema==4.

johentsch avatar Jan 18 '23 07:01 johentsch

Hi @johentsch, thanks for the report. The jsonschema compatibility is a known issue, I just haven't been able to find some time to look into it but hopefully it won't be too long before this is fixed.

jspaaks avatar Jan 23 '23 08:01 jspaaks

Related discussion: https://github.com/citation-file-format/cff-converter-python/pull/281#issuecomment-1622395770

jspaaks avatar Jul 10 '23 13:07 jspaaks

Note this was updated in main, but it's not released yet.

jspaaks avatar Sep 04 '23 10:09 jspaaks

As jupyter is no requiring jsonschema >= 4, it would be great to have a release to be able to have jupyter and cffconvert in the same environment

maxnoe avatar Apr 30 '24 11:04 maxnoe