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

Andrius Merkys merkys at debian.org
Mon Dec 28 06:54:49 GMT 2020


reopen 977293
forwarded https://github.com/dilshod/xlsx2csv/issues/213
thanks

Dear Sébastien,

On 2020-12-27 18:16, Sébastien Hinderer wrote:
> 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.

It seems that xlsx2csv requires seekable files/streams. Then /dev/stdout
cannot be used, alas. Talking to upstream is the right course of action.

> 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 for reporting this upstream! Forwarded: pseudo-header works only
for new bug reports, for existing ones you have to use the control
server [1]. I have reopened the bug and added forward address on the top
three lines of this e-mail.

[1] https://www.debian.org/Bugs/server-control

Best,
Andrius



More information about the debian-science-maintainers mailing list