Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-09 Thread Marko Limbek
Hi Walter It is as you say. Thanks for long explanation. I am using the newer version. Now I also understand difference between single underscore and double underscore. I would still have problems if I would want to programme them for instance. Well I always try to be independent and I want to an

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-09 Thread Walter Prins
Hi Marko, On 9 March 2012 08:34, Marko Limbek wrote: >  File "C:\Dropbox\Exc_MarkoL_Zenel\Python\crosstabs\src\src\rw.py", > line 715, in >    mySavReaderObject.getNumberofVariables(savFileName, > mySavReaderObject.fh, mySavReaderObject.spssio) > AttributeError: 'SavReader' object has no attribu

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-09 Thread Marko Limbek
Hi Walter I understand, thank you. Maybe I am trying to do what is not meant to be done. I tried as you suggested mySavReaderObject = SavReader(savFileName) mySavReaderObject.getNumberofVariables(savFileName, mySavReaderObject.fh, mySavReaderObject.spssio) but it won't work File "C:\Dropbox\E

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-08 Thread Walter Prins
Hi Marko, I'm going out on a limb here as I know next to nothing about either SPSS or Albert-Jan's wrapper module, and so with that caveat, some comments/observations: On 8 March 2012 14:59, Marko Limbek wrote: > I overcame commenting. I managed to read my own file and print it. Now > I am tryin

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-08 Thread Marko Limbek
On Wed, Mar 7, 2012 at 11:36 PM, Steven D'Aprano wrote: > Marko Limbek wrote: > >> I put the recommended code >> >> savFileName = >> "C:/dropbox/Exc_MarkoL_Zenel/Valicon/crosstabs/Tabela/ipk108_kosovo_data_finale_c1-1.sav" >> with SavReader(savFileName) as sav: >>    header = sav.next() >>    for

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-07 Thread Steven D'Aprano
Marko Limbek wrote: I put the recommended code savFileName = "C:/dropbox/Exc_MarkoL_Zenel/Valicon/crosstabs/Tabela/ipk108_kosovo_data_finale_c1-1.sav" with SavReader(savFileName) as sav: header = sav.next() for line in sav: process(line) but I am get errors Will you tell u

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-07 Thread Marko Limbek
s ever done for >> us? >> ~~ >> >> >> From: Marko Limbek >> To: cwi...@compuscan.co.za >> Cc: tutor@python.org >> Sent: Monday, March 5, 2012 2

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-05 Thread Albert-Jan Roskam
t have the Romans ever done for us? ~~  > > From: Marko Limbek >To: cwi...@compuscan.co.za >Cc: tutor@python.org >Sent: Monday, March 5, 2012 2:05 PM >Subject: Re: [Tutor] Que

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-05 Thread Steven D'Aprano
Marko Limbek wrote: Thank you! That was easy. Now I have another problem. I use RPy and read the spss database with method read.spss inside a nested R code in Python, that looks like that: import rpy r(""" library(foreign) baza <- read.spss(""" + analysis[0] + """) print(baza$demo_izob0) """)

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-05 Thread Christian Witts
On 2012/03/05 03:05 PM, Marko Limbek wrote: Thank you! That was easy. Now I have another problem. I use RPy and read the spss database with method read.spss inside a nested R code in Python, that looks like that: import rpy r(""" library(foreign) baza<- read.spss(""" + analysis[0] + """) p

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-05 Thread Marko Limbek
Thank you! That was easy. Now I have another problem. I use RPy and read the spss database with method read.spss inside a nested R code in Python, that looks like that: import rpy r(""" library(foreign) baza <- read.spss(""" + analysis[0] + """) print(baza$demo_izob0) """) Now when my text

Re: [Tutor] Question about writing to Excel with slavic characters

2012-03-05 Thread Christian Witts
On 2012/03/05 02:37 PM, Marko Limbek wrote: Hi everyone. I am new to list and few months old to Python. I am writing some text to Excel and I open the new book and try to write to the book and the save it using book.save Now when I write slavic characters in the text to Excel (č, š, ž, for in

[Tutor] Question about writing to Excel with slavic characters

2012-03-05 Thread Marko Limbek
Hi everyone. I am new to list and few months old to Python. I am writing some text to Excel and I open the new book and try to write to the book and the save it using book.save Now when I write slavic characters in the text to Excel (č, š, ž, for instance 0xc5), I get an error, I can't save it.