Open etj opened 6 years ago
Hi all, I am getting a similar error when harvesting a specific PA (for which a previous haversting was working fine). The error I have is the following: Error when processsing dataset: AttributeError("'Query' object has no attribute 'where'",) / Traceback (most recent call last): File "/usr/lib/ckan/default/src/ckanext-dcat/ckanext/dcat/harvesters/rdf.py", line 209, in gather_stage for dataset in parser.datasets(): File "/usr/lib/ckan/default/src/ckanext-dcat/ckanext/dcat/processors.py", line 181, in datasets profile.parse_dataset(dataset_dict, dataset_ref) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/dcat/profiles.py", line 352, in parse_dataset **names) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/interfaces.py", line 321, in get_license_from_dcat l = License.get_by_lang(lang, name) File "/usr/lib/ckan/default/src/ckanext-dcatapit/ckanext/dcatapit/model/license.py", line 188, in get_by_lang LocalizedLicenseName.license_id == cls.id)\ AttributeError: 'Query' object has no attribute 'where’
Do you think the two errors share the same reason? @etj @tdipisa @cezio
@giorgialodi, I'm not sure but it could be. This kind of exceptions usually require some debug.
@tdipisa thanks for the reply. I need to better understand it otherwise I am not able to harvest an important PA. I am doing another check at the moment. I will let you know
The PA said to me that they are able to load correctly the licence vocabulary.
Only happens when the license vocabulary is not loaded