2013-02-13 46 views
0

我成功地實現了自定義收割機在我的本地CKAN安裝(1.8),但是當我移動另一個(應該是相同的配置)的機器,我得到這個錯誤:CKAN定製收割機「__junk」驗證

2013-02-13 11:18:21,670 DEBUG [ckanext.patstatweb.harvesters] In PatStatWebHarvester fetch_stage 
2013-02-13 11:18:21,981 DEBUG [ckanext.patstatweb.harvesters] In PatStatWebHarvester import_stage 
2013-02-13 11:18:22,357 INFO [ckanext.harvest.harvesters.base] Package with GUID 9d15e19d1b17ac432dd704542a384304f7a37992 does not exist, let's create it 
2013-02-13 11:18:22,384 ERROR [ckanext.harvest.harvesters.base] {' junk': 'The input field __junk was not expected.'} 
Traceback (most recent call last): 
    File "/home/ckan/pyenv/src/ckanext-harvest/ckanext/harvest/harvesters/base.py", line 165, in _create_or_update_package 
    new_package = get_action('package_create_rest')(context, package_dict) 
    File "/home/ckan/pyenv/src/ckan/ckan/logic/action/create.py", line 723, in  package_create_rest 
    dictized_after = _get_action('package_create')(context, dictized_package) 
    File "/home/ckan/pyenv/src/ckan/ckan/logic/action/create.py", line 137, in package_create 
    raise ValidationError(errors) 
ValidationError: {' junk': 'The input field __junk was not expected.'} 
2013-02-13 11:18:22,392 ERROR [ckanext.harvest.harvesters.base] Invalid package with GUID 9d15e19d1b17ac432dd704542a384304f7a37992: {'__junk': ['The input field __junk was not expected.']} 

對此有何見解?

回答

2

的問題是由錯誤與CKAN的機構設置和收割機插件

這解決了問題https://github.com/okfn/ckan/pull/391

+0

@mammadori造成的,你可以測試這個補丁並確認(或不),其有用? – 2013-03-19 19:11:45