Closed manulera closed 5 months ago
The error goes away when downgrading to pydantic 1.10
@manulera are you using a recent version of the Bioregistry?
You can't use the latest release because of schema-automator restrictions:
$ poetry add bioregistry@0.10.65
Updating dependencies
Resolving dependencies... (0.2s)
Because schema-automator (0.3.0) depends on bioregistry (>=0.5.87,<0.6.0)
and no versions of schema-automator match >0.3.0,<0.4.0, schema-automator (>=0.3.0,<0.4.0) requires bioregistry (>=0.5.87,<0.6.0).
So, because convert-json-schema depends on both schema-automator (^0.3.0) and bioregistry (0.10.65), version solving failed.
@manulera the issue here is that the Bioregistry version number is way overspecified in schema-automator, just unpin it
Hi @cthoyt I got it to work using pydantic 1, so that's solved for me, but shouldn't something be done at the package so that the "to reproduce" above works?
If you want to capture exactly the environment that made this work using code that's over a year old before a massive refactoring to make pydantic 1/2 work, I think this is the responsibility of the requirements file in schema-automator
The funny thing is that this repo doesn't even use the Bioregistry. In #121, I simply removed that requirement. Should solve your issue.
Describe the bug When installing the package and using
schemauto import-json-schema
, you getProbably related to https://github.com/biopragmatics/bioregistry/issues/899
To Reproduce