Informatievlaanderen / OSLO-SpecificationGenerator

Generates HTML specification pages based on RDF vocabularies.
1 stars 7 forks source link

Generating application profile in HTML from CSV #1

Closed jensscheerlinck closed 7 years ago

jensscheerlinck commented 7 years ago

A couple of questions related to the generation of application profiles:

Traceback (most recent call last): File "./bin/generate_vocabulary.py", line 80, in process_args() File "/projects/digimelding/local/lib/python2.7/site-packages/click/core.py", line 722, in call return self.main(args, kwargs) File "/projects/digimelding/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/projects/digimelding/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "/projects/digimelding/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(args, **kwargs) File "./bin/generate_vocabulary.py", line 51, in process_args schema_local=schema_local) File "/projects/digimelding/local/lib/python2.7/site-packages/specgen-0.1.1-py2.7.egg/specgen/init.py", line 206, in voc_to_ap converted = convert_csv(csv) File "/projects/digimelding/local/lib/python2.7/site-packages/specgen-0.1.1-py2.7.egg/specgen/extractap.py", line 27, in convertcsv domains = list(set(domains) - set(pydash.map(codelists.copy(), 'EA-Name'))) AttributeError: 'list' object has no attribute 'copy'

DieterDePaepe commented 7 years ago

I can answer the first question: the CSV file is generated by using the tsv command of the EA-to-RDF tool.

jensscheerlinck commented 7 years ago

Thanks @DieterDePaepe Second question was related to the python virtualenv using an older version of python. This was resolved by created the env with the command: virtualenv -p python3 envname