The OpenRefine Python Client from Paul Makepeace provides a library for communicating with an OpenRefine server. This fork extends the command line interface (CLI) and is distributed as a convenient one-file-executable (Windows, Linux, Mac). It is also available via Docker Hub, PyPI and Binder.
GNU General Public License v3.0
83
stars
19
forks
source link
templating with options --mode=record-based and --splitToFiles=true fails with exception "missing or bad template" #6
templating export with options --splitToFiles=true and --mode=record-based fails with the following exception:
22:54:17.182 [ org.mortbay.log] /command/core/export-rows/templating.txt: java.io.IOException: M
issing or bad template (8ms)
Traceback (most recent call last):
File "refine.py", line 31, in
File "google/refine/__main__.py", line 269, in main
File "google/refine/cli.py", line 319, in templating
File "google/refine/refine.py", line 454, in export_templating
File "google/refine/refine.py", line 370, in do_raw
File "google/refine/refine.py", line 85, in urlopen
Exception: HTTP 500 "Missing or bad template" for http://127.0.0.1:8889/command/core/export-rows/templati
ng.txt
{'engine': '{"facets": [], "mode": "record-based"}', 'suffix': '', 'format': 'template', 'encodin
g': 'UTF-8', 'project': '1822473731467', 'prefix': '', 'separator': '', 'template': '{{forNonBlank(with(r
ow.columnNames[0],cn,cells[cn].value),v,"===|||THISISTHEBEGINNINGOFANEWRECORD|||===")}}{{
templating export with options
--splitToFiles=true
and--mode=record-based
fails with the following exception:last working version: v0.3.4