import csv
with open(r"licenses.csv") as in_file, open(r"licenses-out.csv", 'w') as out_file:
semicolonin = csv.reader(in_file, delimiter=';')
commaout = csv.writer(out_file, delimiter=',')
for row in semicolonin:
commaout.writerow(row)
This seems to fix the fixture loading problem and the GitHub preview.
Running
invenio-cli services setup --force
fails on line 38 (a line with double quotes) in the new CSV dialect sniffing logic added in https://github.com/inveniosoftware/invenio-rdm-records/pull/1721.Also, going to https://github.com/zenodo/zenodo-rdm/blob/master/app_data/vocabularies/licenses.csv, GitHub shows:
Instead of just fixing the problem on this line, I converted the file to use comma delimiters as done in https://github.com/inveniosoftware/invenio-rdm-records/pull/1721.
I used the following snippet:
This seems to fix the fixture loading problem and the GitHub preview.
Remark: we are not including the URL changes from https://github.com/inveniosoftware/invenio-rdm-records/pull/1721 in
zenodo-rdm
.