You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/srv/app/src/ckanext-harvest/ckanext/harvest/cli.py", line 276, in run_test
utils.run_test_harvester(id, force_import)
File "/srv/app/src/ckanext-harvest/ckanext/harvest/utils.py", line 405, in run_test_harvester
lib.run_harvest_job(job_obj, harvester)
File "/srv/app/src/ckanext-harvest/ckanext/harvest/tests/lib.py", line 59, in run_harvest_job
queue.fetch_and_import_stages(harvester, harvest_object)
File "/srv/app/src/ckanext-harvest/ckanext/harvest/queue.py", line 515, in fetch_and_import_stages
success_import = harvester.import_stage(obj)
File "/srv/app/src/ckanext-dcat/ckanext/dcat/harvesters/rdf.py", line 322, in import_stage
existing_dataset = self._get_existing_dataset(harvest_object.guid)
File "/srv/app/src/ckanext-dcat/ckanext/dcat/harvesters/base.py", line 183, in _get_existing_dataset
datasets = self._read_datasets_from_db(guid)
File "/srv/app/src/ckanext-dcat/ckanext/dcat/harvesters/base.py", line 171, in _read_datasets_from_db
.filter(model.Package.extras['guid'] == f'"{guid}"') \
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/operators.py", line 461, in __getitem__
return self.operate(getitem, index)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/ext/associationproxy.py", line 951, in operate
self.remote_attr.operate(op, *other, **kwargs)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/attributes.py", line 322, in operate
return op(self.comparator, *other, **kwargs)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/operators.py", line 461, in __getitem__
return self.operate(getitem, index)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/properties.py", line 426, in operate
return op(self.__clause_element__(), *other, **kwargs)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/operators.py", line 461, in __getitem__
return self.operate(getitem, index)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 873, in operate
return op(self.comparator, *other, **kwargs)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/operators.py", line 461, in __getitem__
return self.operate(getitem, index)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/type_api.py", line 77, in operate
return o[0](self.expr, op, *(other + o[1:]), **kwargs)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/default_comparator.py", line 181, in _getitem_impl
_unsupported_impl(expr, op, other, **kw)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/default_comparator.py", line 185, in _unsupported_impl
raise NotImplementedError(
NotImplementedError: Operator 'getitem' is not supported on this expression`
The text was updated successfully, but these errors were encountered:
hcvdwerf
changed the title
There is still something wrong with read_from_db
There is still something wrong with read_from_db when running CKAN 2.11.1
Jan 29, 2025
The changed code
https://github.com/ckan/ckanext-dcat/commit/6bcf6931158ce995487a0828accf926ecfb375b1
The error
The local environment file
The text was updated successfully, but these errors were encountered: