View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0012804||Scribus||Scripter||public||2014-11-04 05:06||2014-11-04 05:06|
|Platform||Mac||OS||X||OS Version||10.10 (Yosemite)|
|Summary||0012804: importcsv2table Script fails on certain csv files|
|Description||When a CSV file exported by Excel does not have quotes (e.g., they are numbers only) it seems to fail. I get the message: |
Could not open file new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
I fixed it temporarily for myself by changing: reader = csv.reader(file(csvfile)) to reader = csv.reader(open(csvfile, 'rU')) on line 105, but haven't tested it on a variety of files (just the one file I am working on, though I can't determine where to expect an error from).
|Tags||No tags attached.|