3

What is a way to convert a batch of .xlsx files to .xls format? I would prefer it to be a command-line solution, but anything is better than opening each manually, and manually saving in the new format.

~~Edit~~

So is there a way to get around that error?

errored: Leaking python objects bridged to UNO for reason pyuno runtime is not initialized, 
(the pyuno.bootstrap needs to be called before using any uno classes) 
python: tpp.c:63: __pthread_tpp_change_priority: 
Assertion `new_prio == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <= __sched_fifo_max_prio)' failed. 
Aborted
David Oneill
  • 12,044
  • 15
  • 56
  • 71

2 Answers2

2

You can use unoconv:

sudo apt-get install unoconv
ls *.xlsx | xargs unoconv -f xls

You may need to start "unoconv -l" on a differente terminal to provide the OO listener service.

João Pinto
  • 17,029
  • 5
  • 55
  • 68
  • errored: Leaking python objects bridged to UNO for reason pyuno runtime is not initialized, (the pyuno.bootstrap needs to be called before using any uno classes) python: tpp.c:63: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <= __sched_fifo_max_prio)' failed. Aborted – David Oneill Jan 19 '11 at 00:07
1

You can use ssconvert:

ssconvert --export-type=Gnumeric_Excel:excel_dsf "/path/uno.xlsx" "/path/dos.xls"
Tony
  • 111
  • 1
  • That did some stuff, although the resulting file is in "Unsupported format" according to gnumeric. Here's the error: "(ssconvert:28773): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed" – David Oneill Jun 01 '15 at 21:10