Re: [Tutor] python problems on android

2014-01-04 Thread blechnum
Ok. Will try and explain the problem. I wrote a script in python and found I could use it on my android phone with SL4a. It was really useful. Haven't used it for a few months. A few days ago I decided to improve it and found it no longer works. the problem seems to be that when it reaches

Re: [Tutor] python problems on android

2014-01-04 Thread Keith Winston
Perhaps you could include the script? On Sat, Jan 4, 2014 at 5:47 AM, blech...@fireflyuk.net wrote: Ok. Will try and explain the problem. I wrote a script in python and found I could use it on my android phone with SL4a. It was really useful. Haven't used it for a few months. A few days

[Tutor] python problems on android

2014-01-04 Thread blechnum
I havent included the script as it seems to be the use ' input' on my phone that now wont work. At the command line (on my computer) I can type h = input( enter character ) and when i type a response and enter it, then type h and return, i am given back the response i put in. I type j

Re: [Tutor] python problems on android

2014-01-04 Thread Keith Winston
Well, I probably can't help you, I haven't installed SL4 (yet), and am a Python beginner myself anyway. I imagine others might be more prepared to help you with a copy of the script. However: something about the way you are responding to this thread keeps breaking it, so you end up starting a new

Re: [Tutor] python problems on android

2014-01-04 Thread Matthew Ngaha
On Sat, Jan 4, 2014 at 11:24 AM, blech...@fireflyuk.net wrote: I havent included the script as it seems to be the use ' input' on my phone that now wont work. Even if the error is with 'input', it is still an odd error and no one will be able to debug your program or have a clue what's

Re: [Tutor] python problems on android

2014-01-04 Thread blechnum
Thank you. I see, it was running python 3.x when that didn't work I uninstalled it and used SL4a to reinstall it installed Python 2.x (Thanks, sorry for being slow to catch on and for multiple threads) So raw_input should work instead of input

Re: [Tutor] python problems on android

2014-01-04 Thread Mark Lawrence
On 04/01/2014 10:47, blech...@fireflyuk.net wrote: Ok. Will try and explain the problem. I wrote a script in python and found I could use it on my android phone with SL4a. It was really useful. Haven't used it for a few months. A few days ago I decided to improve it and found it no longer works.

Re: [Tutor] python problems on android

2014-01-04 Thread Alan Gauld
On 04/01/14 11:24, blech...@fireflyuk.net wrote: At the command line (on my computer) I can type h = input( enter character ) and when i type a response and enter it, then type h and return, i am given back the response i put in. I type j , get 'j' back Now on my phone i can do the same.

Re: [Tutor] python problems on android

2014-01-04 Thread Dave Angel
On Sat, 04 Jan 2014 12:16:29 +, blech...@fireflyuk.net wrote: Thank you. I see, it was running python 3.x when that didn't work I uninstalled it and used SL4a to reinstall it installed Python 2.x So raw_input should work instead of input If you're stuck with 2.x then you could

[Tutor] python problems on android

2014-01-03 Thread blechnum
Hi. I wrote a few python programs and had them running on my phone up to last september. Haven't had time to work on them again till now. Only now, they... don't work ! Not sure why and its very frustrating. one of the errors is in response to an input request like this g = input (type h to

Re: [Tutor] python problems on android

2014-01-03 Thread Dave Angel
On Fri, 03 Jan 2014 22:18:00 +, blech...@fireflyuk.net wrote: one of the errors is in response to an input request like this g = input (type h to use last settings ) stops the program with this File string, line1, in module NameError: name 'h' is not defined after I entered h

[Tutor] python problems on android

2014-01-03 Thread blechnum
Thanks Dave. I was using 3.2.2 and uninstalled it earlier as it was giving me strange messages. Just reinstalled to remind myself what these were. here goes, WARNING: linker: libpython3.2m.so has text relocations this is wasting memory and is a security risk. Please fix the warning

Re: [Tutor] python problems on android

2014-01-03 Thread Devin Jeanpierre
On Fri, Jan 3, 2014 at 4:26 PM, blech...@fireflyuk.net wrote: Thanks Dave. Your email doesn't appear to be in response to anything. I think your email client is broken, and you should switch to a different one. -- Devin ___ Tutor maillist -

[Tutor] python problems on android

2014-01-03 Thread Roger
Hi. I wrote a few python programs and had them running on my phone up to last september. Haven't had time to work on them again till now. Only now, they... don't work ! Not sure why and its very frustrating. one of the errors is in response to an input request like this g = input (type h to use

Re: [Tutor] python problems on android

2014-01-03 Thread Danny Yoo
Hi Roger, Check whether or not you are running Python 3 or Python 2. I strongly suspect you should be using 3, but have run it as a Python 2 program by accident. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: