[ckan-dev] datapusher

Fabrizio Fornari ckanappoggio at gmail.com
Mon Mar 31 08:38:04 UTC 2014


I guys, I have a problem configuring the Datapusher in a new instance of
ckan v2.2. The log is this one:

[Mon Mar 31 01:21:14 2014] [error] Fetching from:
http://127.0.0.1:5000/dataset/50e7581b-2597-4fd1-86ce-715fe84afc76/resource/2586f474-1f2b-4d5c-8673-72d2b86a550e/download/eudavmuw.xls
[Mon Mar 31 01:21:14 2014] [error] Error notifying listener
[Mon Mar 31 01:21:14 2014] [error] Traceback (most recent call last):
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/ckan/datapusher/lib/python2.7/site-packages/apscheduler/scheduler.py",
line 239, in _notify_listeners
[Mon Mar 31 01:21:14 2014] [error]     cb(event)
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/ckan/datapusher/lib/python2.7/site-packages/ckanserviceprovider/web.py",
line 163, in job_listener
[Mon Mar 31 01:21:14 2014] [error]     update_dict['error'] =
json.dumps(event.exception.message)
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/python2.7/json/__init__.py", line 231, in dumps
[Mon Mar 31 01:21:14 2014] [error]     return _default_encoder.encode(obj)
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/python2.7/json/encoder.py", line 201, in encode
[Mon Mar 31 01:21:14 2014] [error]     chunks = self.iterencode(o,
_one_shot=True)
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
[Mon Mar 31 01:21:14 2014] [error]     return _iterencode(o, 0)
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/python2.7/json/encoder.py", line 178, in default
[Mon Mar 31 01:21:14 2014] [error]     raise TypeError(repr(o) + " is
not JSON serializable")
[Mon Mar 31 01:21:14 2014] [error] TypeError: ReadError('Unsupported
Excel format, or corrupt file',) is not JSON serializable
[Mon Mar 31 01:21:14 2014] [error] Job "push_to_datastore (trigger:
RunTriggerNow, run = True, next run at: None)" raised an exception
[Mon Mar 31 01:21:14 2014] [error] Traceback (most recent call last):
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/ckan/datapusher/lib/python2.7/site-packages/apscheduler/scheduler.py",
line 512, in _run_job
[Mon Mar 31 01:21:14 2014] [error]     retval = job.func(*job.args,
**job.kwargs)
[Mon Mar 31 01:21:14 2014] [error]   File
"/usr/lib/ckan/datapusher/src/datapusher/datapusher/jobs.py", line
276, in push_to_datastore
[Mon Mar 31 01:21:14 2014] [error]     raise util.JobError(e)
[Mon Mar 31 01:21:14 2014] [error] JobError: Unsupported Excel format,
or corrupt file


I am just uploading an xls file. With csv everything is fine but xls
give me this error. What may be the problem?


Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140331/8c0a70c5/attachment-0003.html>


More information about the ckan-dev mailing list