[Mon Jun 22 10:11:10.052296 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:10,052 DEBUG [ckan.config.middleware.pylons_app] Pylons route match: {'action': u'import_datapackage', 'controller': u'ckanext.datapackager.controllers.datapackage:DataPackageController'} Origin: extension
[Mon Jun 22 10:11:10.052676 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:10,052 DEBUG [ckan.config.middleware] Route support answers for POST /import_datapackage: [(False, 'flask_app'), (True, 'pylons_app', 'extension')]
[Mon Jun 22 10:11:10.052798 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:10,052 DEBUG [ckan.config.middleware] Serving request via pylons_app app
[Mon Jun 22 10:11:10.063865 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:10,063 DEBUG [ckan.logic] check access OK - package_create user=carlo
[Mon Jun 22 10:11:14.506420 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,301 DEBUG [ckan.logic] check access OK - package_create user=carlo
[Mon Jun 22 10:11:14.536244 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,536 DEBUG [ckan.logic.action.create] package_create validate_errs={'extras': [{}, {}, {}, {}, {}, {}, {'key': [u'There is a schema field with the same name']}]} user=carlo package=covid-19 data={'name': u'covid-19', 'title': u'Novel Coronavirus 2019', 'owner_org': u'6d3859b7-0227-45c2-a190-dbc2d2762697', 'private': True, 'state': 'draft', 'extras': [
{'value': u'data-package', 'key': u'profile'},
{'value': u'c3742992a149dcb6bdd66203b3b12abc', 'key': u'hash'},
{'value': '[{"specType": "simple", "spec": {"series": ["Confirmed", "Deaths"], "group": "Date", "type": "line"}, "resources": ["worldwide-aggregated"], "title": "Total world to date"}, {"specType": "simple", "spec": {"series": ["China", "US", "United_Kingdom", "Italy", "France", "Germany", "Spain", "Iran"], "group": "Date", "type": "line"}, "resources": ["key-countries-pivoted"], "title": "Number of confirmed cases in key countries"}, {"specType": "simple", "spec": {"series": ["Mortality rate"], "group": "Date", "type": "bar"}, "resources": [{"name": "worldwide-aggregated", "transform": [{"expressions": ["data[\\'Deaths\\'] / data[\\'Confirmed\\'] * 100 + \\'%\\'"], "type": "formula", "asFields": ["Mortality rate"]}]}], "title": "Mortality rate in percentage"}, {"specType": "simple", "spec": {"series": ["Increase rate"], "group": "Date", "type": "bar"}, "resources": ["worldwide-aggregated"], "title": "Increase rate from previous day in confirmed cases worldwide"}]', 'key': u'views'},
{'value': 638756590, 'key': u'bytes'},
{'value': 1064829, 'key': u'count_of_rows'},
{'value': '{"findability": "published", "created": "2020-03-22T16:03:58.514457", "modified": "2020-06-22T09:20:30.191018", "flowid": "core/covid-19/309", "owner": "core", "ownerid": "core"}', 'key': u'datahub'},
{'value': u'core/covid-19', 'key': u'id'}], 'type': 'dataset'}
[Mon Jun 22 10:11:14.540607 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,540 DEBUG [ckan.logic] check access OK - package_create user=carlo
[Mon Jun 22 10:11:14.542718 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,542 DEBUG [ckan.lib.base] rendering /usr/lib/ckan/default/ckanext-datapackager/ckanext/datapackager/templates/datapackage/import_datapackage.html [jinja2]
[Mon Jun 22 10:11:14.587477 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,587 DEBUG [ckan.logic] check access OK - dashboard_new_activities_count user=carlo
[Mon Jun 22 10:11:14.587948 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,587 DEBUG [ckan.logic] check access OK - dashboard_activity_list user=carlo
[Mon Jun 22 10:11:14.635208 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,635 DEBUG [ckan.logic] check access OK - ckanext_pages_list user=carlo
[Mon Jun 22 10:11:14.635528 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,635 DEBUG [ckan.logic] check access OK - ckanext_pages_update user=carlo
[Mon Jun 22 10:11:14.639263 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,639 DEBUG [ckan.lib.base] rendering /usr/lib/ckan/default/src/ckan/ckan/templates/snippets/home_breadcrumb_item.html [jinja2]
[Mon Jun 22 10:11:14.640425 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,640 DEBUG [ckan.lib.base] rendering /usr/lib/ckan/default/src/ckan/ckan/templates/package/snippets/resources.html [jinja2]
[Mon Jun 22 10:11:14.641786 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,641 DEBUG [ckan.lib.base] rendering /usr/lib/ckan/default/src/ckan/ckan/templates/package/snippets/resources.html [jinja2]
[Mon Jun 22 10:11:14.642352 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,642 DEBUG [ckan.lib.base] rendering /usr/lib/ckan/default/ckanext-datapackager/ckanext/datapackager/templates/datapackage/snippets/import_datapackage_form.html [jinja2]
[Mon Jun 22 10:11:14.643209 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,643 DEBUG [ckan.lib.base] rendering /usr/lib/ckan/default/ckanext-datapackager/ckanext/datapackager/templates/datapackage/snippets/import_datapackage_basic_fields.html [jinja2]
[Mon Jun 22 10:11:14.646658 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,646 DEBUG [ckan.logic] check access OK - organization_list_for_user user=carlo
[Mon Jun 22 10:11:14.652808 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,652 DEBUG [ckan.logic] check access OK - sysadmin user=carlo
[Mon Jun 22 10:11:14.653950 2020] [wsgi:error] [pid 9284:tid 139863850792704] 2020-06-22 10:11:14,653 INFO [ckan.lib.base] /import_datapackage render time 4.598 seconds
Overview
Environment:
ckan 2.8.2
relevant plugins: spatial, dcat, pages, ...
Unable to import datapackage from examples like:
The error I get is always the same so I report it only once:
NOTE:
I see same error reported here, not sure if it can help:
geosolutions-it/ckanext-dcatapit#171
Please preserve this line to notify @amercader (lead of this repository)