Multimedia and Python

2017-02-13 Thread Cecil Westerhof
At the moment I use Bash scripts with Image Magick, ffmpeg and ghostscript to do some multimedia stuff. But I want to make the switch to Python. An initial search does point me to PyMedia. Is this the correct tool, or is there a better one? Initially I just want to cut a part from a MP3 file. Not

Re: Problems with scripts

2017-02-13 Thread Steve D'Aprano
On Tue, 14 Feb 2017 03:30 am, lauren.sophia1...@gmail.com wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't > accept "done" to stop the program and return answers. Please help! Hi Lauren, B

Re: Problems with scripts

2017-02-13 Thread Wildman via Python-list
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote: > So I tried both of these and they didn't change anything, the python shell > printed the same things... The first assignment is overly complicated. The extra input functions are useless. There is no loopback to check the input. Also,

Re: Problems with scripts

2017-02-13 Thread alister
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote: > So I tried both of these and they didn't change anything, the python > shell printed the same things... No answers (answering you homework for you will not teach you anything useful) but some hints to help you think about the problem 1)

Re: Problems with scripts

2017-02-13 Thread Lauren Fugate
So I tried both of these and they didn't change anything, the python shell printed the same things... -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems with scripts

2017-02-13 Thread Lauren Fugate
So I changed my code to this: print("How old are you: 17, 18, 19, or 20?") answer = input("> ") if int(answer) == 17 or 18 or 19 or 20: print("Wow, you are old!") else: print("You just can't follow drections, can you? Choose either 17, 18, 19, or 20.") input("> ") and now if I in

Re: Problems with scripts

2017-02-13 Thread Wildman via Python-list
On Mon, 13 Feb 2017 08:30:32 -0800, lauren.sophia1998 wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't accept > "done" to stop the program and return answers. Please help! > > 1) > print

Re: Problems with scripts

2017-02-13 Thread Joel Goldstick
On Mon, Feb 13, 2017 at 11:30 AM, wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't accept > "done" to stop the program and return answers. Please help! > > 1) > print("How old are you: 17

Problems with scripts

2017-02-13 Thread lauren . sophia1998
Hello! I have 2 python assignments that I just can't figure out. The first one returns the same thing no matter what I input and the second won't accept "done" to stop the program and return answers. Please help! 1) print("How old are you: 17, 18, 19, or 20?") answer = input("> ") if answer ==

Re: Problems with scp script in Python

2017-02-13 Thread Steve D'Aprano
On Mon, 13 Feb 2017 11:17 pm, jhlo...@gmail.com wrote: > I have an SCP script that auto completes just fine from the terminal > window in Pi.  When I use either subprocess or os to try and have it run > under Python it does not do the file transfer from Pi to my Ubuntu > machine.  What am I doing

Re: Problems with scp script in Python

2017-02-13 Thread Michael Torrie
On 2017-02-13 05:17 AM, jhlo...@gmail.com wrote: I have an SCP script that auto completes just fine from the terminal window in Pi. When I use either subprocess or os to try and have it run under Python it does not do the file transfer from Pi to my Ubuntu machine. What am I doing wrong? He

RE: Problems with scp script in Python

2017-02-13 Thread Joaquin Alzola
>I have an SCP script that auto completes just fine from the terminal window in >Pi. When I use either subprocess or os to try and have it run under Python it >does not do the file >transfer from Pi to my Ubuntu machine. What am I doing >wrong? Here is the script: >from subprocess import cal

Problems with scp script in Python

2017-02-13 Thread jhlobin
Sorry, I did use a colon after the remote machine address, mistyped above. It does work ok under the terminal window. -- https://mail.python.org/mailman/listinfo/python-list

Problems with scp script in Python

2017-02-13 Thread jhlobin
I have an SCP script that auto completes just fine from the terminal window in Pi.  When I use either subprocess or os to try and have it run under Python it does not do the file transfer from Pi to my Ubuntu machine.  What am I doing wrong?  Here is the script:  from subprocess import call  cm