Re: [Tutor] os.system vs subprocess.Popen args problems

2013-09-02 Thread eryksun
On Mon, Sep 2, 2013 at 10:19 AM, learner404 wrote: > > I can't understand why the command below works with os.system but not with > subprocess.Popen (on windows, recording video with FFMPEG.exe) > > cmd=('ffmpeg -f dshow -i video="%s" -f dshow -i audio="%s" -q 5 "%s"')% > (videoinputName, audioinp

Re: [Tutor] help with postgreSQL and .csv

2013-09-02 Thread R. Alan Monroe
> my goal is to make it write all the picture url values separated by > a ';' in just one field and to input the data correctly.   I haven't used postgresql much. Could it be you're just missing path_picture as part of your data value? i.e. UPDATE hotel SET path_picture = + hotel_url UPDATE hotel

[Tutor] Using tkinter for cross platform application

2013-09-02 Thread Max Bedacht
Hello; I'm looking for a quick, if possible, solution to a problem I'm having. I have developed an application which I'm packaging to run on Windows, Linux and eventually OS-X. I have gone through myriad iterations, bouncing between Python 2.7 and 3.3 and between 32 and 64 bit Linux, Windows XP and

[Tutor] help with postgreSQL and .csv

2013-09-02 Thread Ismar Sehic
hello. i wrote the following code, to insert some values from a csv file to my postgres table : *** *import psycopg2* *conn = psycopg2.connect("host = ***.***.***.*** user=*** dbname = ** ")* *cur = conn.cursor()* *import csv* *with open('HotelImages.csv', 'rb') as f: * *

Re: [Tutor] os.system vs subprocess.Popen args problems

2013-09-02 Thread Oscar Benjamin
On 2 September 2013 15:19, learner404 wrote: > Hello, > > I can't understand why the command below works with os.system but not with > subprocess.Popen (on windows, recording video with FFMPEG.exe) > > cmd=('ffmpeg -f dshow -i video="%s" -f dshow -i audio="%s" -q 5 > "%s"')%(videoinputName, audioi

[Tutor] os.system vs subprocess.Popen args problems

2013-09-02 Thread learner404
Hello, I can't understand why the command below works with os.system but not with subprocess.Popen (on windows, recording video with FFMPEG.exe) cmd=('ffmpeg -f dshow -i video="%s" -f dshow -i audio="%s" -q 5 "%s"')%(videoinputName, audioinputName, videoFileOutput) os.system(cmd) *works* subpro