Bug#977293: Read .xlsx from stdin, write .csv to stdout

Sébastien Hinderer Sebastien.Hinderer at ens-lyon.org
Sun Dec 27 16:16:54 GMT 2020


Forwarded: https://github.com/dilshod/xlsx2csv/issues/213

Dear Andrius,

Andrius Merkys (2020/12/14 08:16 +0200):
> Have you tried using /dev/stdin and /dev/stdout on the command line?
> This usually does the trick for commands not accepting '-'.

I tried finally and it does not work. It produces the following error:

Traceback (most recent call last):
  File "/usr/bin/xlsx2csv", line 1129, in <module>
    xlsx2csv.convert(outfile, sheetid)
  File "/usr/bin/xlsx2csv", line 216, in convert
    self._convert(sheetid, outfile)
  File "/usr/bin/xlsx2csv", line 266, in _convert
    outfile = open(outfile, 'w+', encoding=self.options['outputencoding'], newline="")
io.UnsupportedOperation: File or stream is not seekable.

Bug reported upstream at https://github.com/dilshod/xlsx2csv/issues/213

I did try to add the Forwarded: pseudo-header, I hope it worked.

Thanks,

Sébastien.



More information about the debian-science-maintainers mailing list