Open turbomam opened 1 year ago
gen-linkml returns a similar error
gen-linkml src/linkml/include_linkml.yaml
ValueError: Slot: permissible_values - attribute text value (File "
", line 29, col 15: list) does not match key (List)
matching the case of the text
to the PV's key gets make all
to complete
permissible_values:
List:
text: list
Thanks Mark, sorry for confusion, I had fixed that locally, thought it was in main but it wasn't.
Even with that fix made I am still getting
include-linkml git:(main) ✗ linkml2sheets -s src/linkml/include_linkml.yaml src/data/sheets/*.tsv -d src/data/sheets --overwrite
Traceback (most recent call last):
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/bin/linkml2sheets", line 8, in <module>
sys.exit(export_schema())
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/lib/python3.9/site-packages/schemasheets/schema_exporter.py", line 297, in export_schema
exporter.export(sv, specification=f, to_file=outpath)
File "/Users/putmanti/Library/Caches/pypoetry/virtualenvs/linkml-poetry-gp-template-AkzsagWH-py3.9/lib/python3.9/site-packages/schemasheets/schema_exporter.py", line 90, in export
writer.writerow(row)
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/csv.py", line 154, in writerow
return self.writer.writerow(self._dict_to_list(rowdict))
File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/csv.py", line 149, in _dict_to_list
raise ValueError("dict contains fields not in fieldnames: "
ValueError: dict contains fields not in fieldnames: 'desc', 'slot'
desc and slot are column headers in a sheet tsv src/data/sheets/INCLUDE_Portal_V1_LinkML_Schema_Classes_Slots.tsv
note you don't need to include text
at all, you can just say:
permissible_values:
List:
...
@putmantime , I'm trying to acquaint myself with this repo in order to check out the linkml2sheets problems you mentioned on the Monarch LinkML Slack channel yesterday
After cloning and running
poetry install
, I didmake all