View Issue Details

IDProjectCategoryView StatusLast Update
0010140ScribusScripterpublic2011-07-21 09:12
Reportertak101 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformWindowsOSVistaOS Version6.0
Product Version1.4.0svn 
Summary0010140: csv scripting problem
DescriptionUsing Python 2.7.1 there are some problems with csv scripting. As this version is no longer supported, I like to know whether an update to python version 3 is planned
Steps To Reproducewhen reading a csv file with a field delimiter within a quoted field, two fields are read.

for instance, a csv-file with the following content:

"a;e";b;c
1:2;3

called with
reader = csv.reader(file(csvfile), delimiter=';', quotechar='"')

produces 4 field for the first line in stead of 3.

This is a python problem, but may be solved in python 3. So I really don't know where to report this.
TagsNo tags attached.
Patch

Activities

ale

2011-07-21 09:04

manager   ~0026621

basically: scribus should use the most common version of python...

on linux it's using the version the packagers choose...

on windows it's the version jean chooses...

still, i wonder how well the scripter behaves with python 3...

at least the current scripter shouldn't have any problem with any version of python, since there is almost no python code in there...
current scripts may break, but most scripts are so simple that it should not be hard to fix them!

the scripter 2 -- which will be added to scribus 1.5 -- will need more testing, since most of it is written in python.


abstract: just try to compile scribus with python 3 and it will probably work...

jghali

2011-07-21 09:12

administrator   ~0026622

> at least the current scripter shouldn't have any problem with any version of python, since there is almost no python code in there...

False, scripter heavily depends on python internals and massively use python C api.

>> abstract: just try to compile scribus with python 3 and it will probably work...

No, that would just be miraculous.

Issue History

Date Modified Username Field Change
2011-07-21 05:20 tak101 New Issue
2011-07-21 08:30 jghali Summary cvs scripting problem => csv scripting problem
2011-07-21 08:30 jghali Description Updated
2011-07-21 09:04 ale Note Added: 0026621
2011-07-21 09:06 jghali Steps to Reproduce Updated
2011-07-21 09:12 jghali Note Added: 0026622