Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Trouble with Python CSV Module

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
larry77
Posts: 580
Joined: 2006-09-24 17:59
Has thanked: 5 times
Been thanked: 1 time

Trouble with Python CSV Module

#1 Post by larry77 »

Dear All,
I run Debian stable on my box.
I would like to convert an Excel file to csv (comma-separated value, a simple text format).

I have been using for a long time the xlsx2csv parser

https://csvkit.readthedocs.io/en/latest/index.html

installed not using pip but with

Code: Select all

$ sudo apt install xlsx2csv
However, when I use the parser on any Excel file I get this error, which I have never had in the past

Code: Select all

$ xlsx2csv SA-Covid19.xlsx test.csv
Traceback (most recent call last):
  File "/usr/bin/xlsx2csv", line 1063, in <module>
    options.quoting = csv.QUOTE_MINIMAL
AttributeError: module 'csv' has no attribute 'QUOTE_MINIMAL'
Does anybody know what is going on? Any suggestion is appreciated.

Post Reply