[ckan-dev] datapusher

Nigel Babu nigel.babu at okfn.org
Fri Apr 4 05:05:33 UTC 2014


Hey Fabrizio,

Is this an xls file or an xlsx file?

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 31 March 2014 14:08, Fabrizio Fornari <ckanappoggio at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140404/5d5dfee5/attachment-0003.html>


More information about the ckan-dev mailing list