italia / ckan-it

This project provides everything you need to run CKAN plus a set of extensions for supporting Italian open data in a set of Docker images.
Other
17 stars 19 forks source link

Issue load vocabolary #28

Closed fraaur closed 5 years ago

fraaur commented 5 years ago

hi, I'm trying to install docker image but when i execute the command . docker exec -ti /ckan-init.sh

the following error message appears:

File "/usr/bin/paster", line 11, in sys.exit(run()) File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 102, in run invoke(command, command_name, options, args[1:]) File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke exit_code = runner.run(args) File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 236, in run result = self.command() File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/commands/dcatapit.py", line 151, in command self.load() File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/commands/dcatapit.py", line 214, in load load_subthemes(theme_map, eurovoc) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/model/subtheme.py", line 282, in load_subthemes Subtheme.map_themes(themes_g, eurovoc_g) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/model/subtheme.py", line 211, in map_themes cls.add_for_theme(eurovoc_g, theme, sub_theme) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/model/subtheme.py", line 146, in add_for_theme theme_tag = ThemeToSubtheme.get_tag(theme) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/model/subtheme.py", line 69, in get_tag raise ValueError("No tag for {}".format(name)) ValueError: No tag for AGRI

can you help me?

giorgialodi commented 5 years ago

Hi @fraaur, thanks for pointing out. We are investigating the issue. We will keep you posted.

giorgialodi commented 5 years ago

Hi @fraaur, it is likely that the issue is caused by an error in loading the controlled vocabularies that are external and coming from the EU Publication Office (including the Data-Themes vocabulary related to your exception). When locating these vocabularies the process fails since the EU Publication Office has recently changed its system and thus all the download URLs of EU vocabularies being used by us in the DCAT-AP_IT metadata profile. We are trying to fix this issue; we will let you know.

giorgialodi commented 5 years ago

Hi @fraaur yep, from internal tests, it seems to us that the problem can be actually the one I reported in the previous message with the external EU vocabularies. We are working in order to overcome the issue. When ready we will let you know.

Shappiro commented 5 years ago

Hi @giorgialodi seems to me that this is only an URL loading issue during init phase:

a

So, maybe only some small (but very needed, as e.g. the frequencies vocabulary is required at dataset creation phase from CKAN UI) tweaks are needed, for example

From paster --plugin=ckanext-dcatapit vocabulary load --url http://publications.europa.eu/mdr/resource/authority/language/skos/languages-skos.rdf --name languages --config "$CKAN_INI_PATH" To paster --plugin=ckanext-dcatapit vocabulary load --url http://publications.europa.eu/resource/authority/frequency --name languages --config "$CKAN_INI_PATH" If that's the case, I could give it a go :-)

Shappiro commented 5 years ago

Hm, sorry for that, obviously the right URLs are more hidden than I previously thought... Hope to have some news from the EU agencies soon: did you have any feedback from them?

Thanks