Re: Stuck with urllib.quote and Unicode/UTF-8

2011-05-07 Thread Marian Steinbach
An addition/correction: It seems as if my input variable address is not Unicode. This is what I get for print [address]: ['K\xf6ln, Nordrhein-Westfalen'] Isn't this utf-8 encoding? And I'm using Python 2.5.2. -- http://mail.python.org/mailman/listinfo/python-list

Stuck with urllib.quote and Unicode/UTF-8

2011-05-07 Thread Marian Steinbach
ess=' + urllib.quote(address.encode('utf-8')) + '&sensor=false&language=DE' This gives me an error like UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 1: ordinal not in range(128) Again, the input string for address is u"Köln, N

a chance from you.

2011-02-28 Thread marian
You'll like the way I was convinced a girl for winning the new Volvo S60: http://www.unlimitednaughty.ro/camera/video/concurent/Marian-Briceag Give me a chance by sharing this video to everyone on the group. Please, please SHARE it :) . p.s.: for English turn on the captions (the cc, under

Problems calling batch files (*.bat) from Python???

2008-08-23 Thread Marian Popa
Sleep os.chdir("D:\\Marian\\Proiecte\\AMT\\Trace") os.startfile("launch_trace.bat") #subprocess.call("D:\\Marian\\Proiecte\\AMT\\Trace\\trace.bat") #pr = win32process.CreateProcess(None, "D:\\Marian\\Proiecte\\AMT\\Trace\\trace.bat", None, N

Launch an application and continue the script's execution

2008-08-22 Thread Marian Popa
eep from ctypes import windll, c_double amt = windll.LoadLibrary("D:\\Marian\\Proiecte\\AMT\\Libs\\AMT_Temp_DLL.dll") amt.InitUIForDLL() amt.SetKL30() Sleep(1000) amt.SetKL15() Sleep(1000) os.chdir("D:\\Marian\\Proiecte\\AMT\\Trace") os.startfile("launch_trace.bat"

this where I am so far !

2005-12-19 Thread Marian
Any one who  have a clue how can I add and remove records from a list. if the record is dictionary type)  This the program I am working on. I have no idea how can I remove and add some more courses !  import cPickle, shelve def write_file():         C

Please i need a hand with writing a simple task.

2005-12-19 Thread Marian
Can you pleae help me with this task. I have really hard time with my textbook desolving this problem.  The Task:  Write a program that will create a text file, print the contents of the text file as you create the file. Read the contents of the file after it's been created, add a record and pri

Re: pyFMOD writing a callback function in Python

2005-02-16 Thread Marian Aldenhövel
Hi, Check out pySonic, a new FMOD wrapper written with Pyrex. Much more Pythonic. I have only found Win32-Downloads. The same is true for pyFMOD. What options do I have to make it work on Linux? Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian

Re: pyFMOD writing a callback function in Python

2005-02-11 Thread Marian Aldenhövel
e stuff again. You should also be aware that you have to keep the callback_function object alive *as long as the FMOD library is using it*! While very obvious I am prone to forget that sometime :-). Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenh

pyFMOD writing a callback function in Python

2005-02-10 Thread Marian Aldenhövel
lback, but that seems very inappropriate in Python... Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "Wir brauchen keine Opposition, wir sind bereits Demokraten." -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to run IDLE Under Windows

2005-02-06 Thread Marian Aldenhövel
Hi, > Any ideas as to what might me wrong? TclError: unknown color name "white " There is a space after "white" in this error-message. If this string comes from some per-user configuration that may well explain your problem. Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 531

Re: pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
Hi, Just curious what is not suitable about FMOD? Nothing. See my other posting. It just took me some time... Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "Wir brauchen keine Opposition, wir sind bereits Demokraten.&quo

Re: pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
time.sleep(1) And plays fine. Now I need to read up on FMODs API to find out how to eliminate the "while True;" but that should not be a problem. This would give me a very rich API with full control. I am having fun! Thank you all. Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123

Re: pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
Hi, Perhaps Zinf? I could not find anything about remote-controlling it. Did not install it, however. Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "Wir brauchen keine Opposition, wir sind bereits Demokraten." -- http://mail.

Re: pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
Hi, > Could it be a hardware problem? I don't think so. I can play sounds on this machine and I can also play this very file using Windows Media Player. I suspect it's software, but I do not know at which level the problem may lie. Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123

Re: pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
whatever I really use. Should I ever get to that point - as I said, this is a toy project and they tend to die suddenly :-). Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "Wir brauchen keine Opposition, wir sind bereits Demokraten.&quo

Re: pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
es seem to play... Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "Wir brauchen keine Opposition, wir sind bereits Demokraten." -- http://mail.python.org/mailman/listinfo/python-list

pygame.mixer.music not playing

2005-02-06 Thread Marian Aldenhövel
ed to look at pymad (which I could not get to work on Windows, no C-Compiler on this machine and I could not find binaries) and audiere (no skipping, at least in the python binding. A feature I would like to have.) Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://w

Re: Printing Filenames with non-Ascii-Characters

2005-02-03 Thread Marian Aldenhövel
Hi, > Python's drive towards uncompromising explicitness pays off big time when you're dealing with multilingual data. Except for the very implicit choice of 'ascii' as an encoding when it cannot make a good guess of course :-). All in all I agree, however. Ciao, MM -- Maria

Re: Printing Filenames with non-Ascii-Characters

2005-02-02 Thread Marian Aldenhövel
lieve the error message it gave. Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "There is a procedure to follow in these cases, and if followed it can pretty well guarantee a generous measure of success, success here defined as

Re: Printing Filenames with non-Ascii-Characters

2005-02-02 Thread Marian Aldenhövel
ng to do? To enable Python to print everything that can actually be printed and not barf at things it could print but cannot because it defaults to plain ascii? Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "There is a procedure to fo

Re: Printing Filenames with non-Ascii-Characters

2005-02-02 Thread Marian Aldenhövel
sure about Linux. The result maybe slightly differ. I think I will worry about that later. I can create files using german umlauts on the linux box. I am sure I will find a way to move those names into my Python program. I will not move data between the systems so there will not be much of a problem

Printing Filenames with non-Ascii-Characters

2005-02-01 Thread Marian Aldenhövel
n? I am running Python 2.3.4 on Windows XP and I want to run the program on Debian sarge later. Ciao, MM -- Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013. http://www.marian-aldenhoevel.de "There is a procedure to follow in these cases, and if followed it can pretty well guarantee a