[17.0] l10n_eu_nace Error importing NACE industries
Module
l10n_eu_nace
Describe the bug
RPC_ERROR Odoo Server Error Traceback (most recent call last): (...) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://publications.europa.eu/webapi/rdf/sparql?format=json&query=%0A++++++++++++PREFIX+%3A+%3Chttp%3A%2F%2Fdata.europa.eu%2Fux2%2Fnace2%2F%3E%0A++++++++++++PREFIX+cc%3A+%3Chttp%3A%2F%2Fcreativecommons.org%2Fns%23%3E%0A++++++++++++PREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0A++++++++++++PREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0A++++++++++++PREFIX+eli%3A+%3Chttp%3A%2F%2Fdata.europa.eu%2Feli%2Fontology%23%3E%0A++++++++++++PREFIX+euvoc%3A+%3Chttp%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23%3E%0A++++++++++++PREFIX+fn%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2005%2Fxpath-functions%23%3E%0A++++++++++++PREFIX+gn%3A+%3Chttp%3A%2F%2Fwww.geonames.org%2Fontology%23%3E%0A++++++++++++PREFIX+grddl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2003%2Fg%2Fdata-view%23%3E%0A++++++++++++PREFIX+iso-thes%3A+%3Chttp%3A%2F%2Fpurl.org%2Fiso25964%2Fskos-thes%23%3E%0A++++++++++++PREFIX+luc%3A+%3Chttp%3A%2F%2Fwww.ontotext.com%2Fowlim%2Flucene%23%3E%0A++++++++++++PREFIX+nace21%3A+%3Chttp%3A%2F%2Fdata.europa.eu%2Fux2%2Fnace2.1%2F%3E%0A++++++++++++PREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0A++++++++++++PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0A++++++++++++PREFIX+rdf4j%3A+%3Chttp%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23%3E%0A++++++++++++PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A++++++++++++PREFIX+sesame%3A+%3Chttp%3A%2F%2Fwww.openrdf.org%2Fschema%2Fsesame%23%3E%0A++++++++++++PREFIX+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0A++++++++++++PREFIX+skosxl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2008%2F05%2Fskos-xl%23%3E%0A++++++++++++PREFIX+temporalDescriptions%3A%0A++++++++++++%3Chttp%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%2FtemporalDescriptions%23%3E%0A++++++++++++PREFIX+vann%3A+%3Chttp%3A%2F%2Fpurl.org%2Fvocab%2Fvann%2F%3E%0A++++++++++++PREFIX+voaf%3A+%3Chttp%3A%2F%2Fpurl.org%2Fvocommons%2Fvoaf%23%3E%0A++++++++++++PREFIX+wgs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23%3E%0A++++++++++++PREFIX+xkos%3A+%3Chttp%3A%2F%2Frdf-vocabulary.ddialliance.org%2Fxkos%23%3E%0A++++++++++++PREFIX+xml%3A+%3Chttp%3A%2F%2Fwww.w3.org%2FXML%2F1998%2Fnamespace%3E%0A++++++++++++PREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0A++++++++++++SELECT+%3FLEVEL+%3Fcode+%3FparentCode+%3FEN+%3FES+WHERE+%7B%0A++++++++++++++++%3Fs+skos%3AinScheme+%3Anace2+%3B%0A++++++++++++++++skos%3AaltLabel+%3FLabelEN%3B%0Askos%3AaltLabel+%3FLabelES%3B%0A++++++++++++++++skos%3Anotation+%3Fcode%3B%0A++++++++++++++++skos%3Abroader+%3Fparent%3B%0A++++++++++++++++%5Eskos%3Amember+%3FMember.%0A++++++++++++++++%3Fparent+skos%3Anotation+%3FparentCode+.%0A++++++++++++++++FILTER+%28LANG%28%3FLabelEN%29+%3D+%22en%22%29%0A++++++++BIND+%28STR%28%3FLabelEN%29+as+%3FEN%29%0AFILTER+%28LANG%28%3FLabelES%29+%3D+%22es%22%29%0A++++++++BIND+%28STR%28%3FLabelES%29+as+%3FES%29%0A++++++++++++++++FILTER+%28%3FMember+%3D+%3Asections+%7C%7C+%3FMember+%3D+%3Adivisions++%7C%7C%0A++++++++++++++++%3FMember+%3D+%3Agroups+%7C%7C+%3FMember+%3D+%3Aclasses%29%0A++++++++++++++++BIND+%28STR%28%3FMember%29+AS+%3FNACELEVEL%29%0A++++++++++++++++BIND+%28STRAFTER%28%3FNACELEVEL%2C+%22%2Fnace2%2F%22%29+AS+%3FLEVEL%29%0A++++++++++++++++%3FMember+skos%3AprefLabel+%3FMemberLabel+.%0A++++++++++++++++FILTER+%28LANG%28%3FMemberLabel%29+%3D+%22en%22%29%0A++++++++++++++++BIND+%28xsd%3Ainteger%28REPLACE%28%3Fcode%2C+%22%5C%5CD%22%2C+%22%22%29%29+AS+%3Fcode_formatted%29%0A++++++++++++++++%7D+ORDER+BY+%3Fcode_formatted%0A++++++++
To Reproduce
17.0:
Steps to reproduce the behavior:
- Install the module
- Go to “Contacts” > “Configuration” > “Import NACE industries” and click on the “Import NACE” button.
- Error Dialog appears.
Expected behavior Connect to the server and download the nace list.
Additional context Tumbleweed with python 3.12