Re: import module pyttsx in windows IDLE failed

2015-11-16 Thread input/ldompeling
Now I get this error: Traceback (most recent call last): File "C:\raspberrypi\recipe-578839-1.py", line 1, in import pyttsx File "C:\Users\loek\AppData\Local\Programs\Python\Python35\lib\site-packages\pyttsx\__init__.py", line 18, in from engine import Engine ImportError: No module

Re: import module pyttsx in windows IDLE failed

2015-11-16 Thread input/ldompeling
In reply to "MRAB" who wrote the following: Have you installed pyttsx? No, I did not. Where can I find pyttsx to install ? Thanks - > On 2015-11-16 17:12, input/ldompel...@casema.nl wrote: > > When I try to run this module in Win

import module pyttsx in windows IDLE failed

2015-11-16 Thread input/ldompeling
When I try to run this module in Windows IDLE I get this message: How can I solve this problem. Thanks Traceback (most recent call last): File "C:\raspberrypi\recipe-578839-1.py", line 1, in import pyttsx ImportError: No module named 'pyttsx' This is what I found on the internet:

Re: time module

2015-11-08 Thread input/ldompeling
> Ambiguous requirement: any normal counter starts from zero... But what > "zero" represents may differ... Seconds since Jan 1 1970? Seconds since > midnight? Seconds since start of program? Thanks for the reply Yes, I would like seconds since start of program. Can I not doing something like tim

time module

2015-11-07 Thread input/ldompeling
hi, I like to have a function that prints time in seconds. I am looking for something for example that seconds count from zero. I search the internet for time module in python but could not found anathing usefull. Has someone an example for it. Thanks -- - ---

Re: raw_input and break

2015-11-06 Thread input/ldompeling
Hi, I tried to define SEQUENCE with: The script is working now, exept that I do'nt get a menu in terminal for "s" to stop. - def SEQUENCE(): while notDone: if mindist > us_dist(15): for (dir

Re: raw_input and break

2015-11-05 Thread input/ldompeling
He, Thank you for making some time for it. Is this your code ? I am also using python 3 I got an error with execute the scipt: --- Enter command> Traceback (most recent call last): File "test06.py", line 44, in for (dir, t

Re: raw_input and break

2015-11-05 Thread input/ldompeling
Oke, lets try your code.Can you help me with that. This is my code: - from gopigo import * import time set_right_speed(150) set_left_speed(105) enable_servo() fwd() print("forward 1x") time.sleep(4) stop() while True: servo(90) mindist = 80

Re: raw_input and break

2015-11-05 Thread input/ldompeling
>The code in capture_key.py may look a bit scary, but just as I took it >without bothering the details you can take the resulting module without >caring about the code in it. Alternatively you can search >https://pypi.python.org Thanks for the link. I realy appreciate it. Can you also tell me wha

Re: raw_input and break

2015-11-05 Thread input/ldompeling
In reply to "Peter Otten" who wrote the following: > input/ldompel...@casema.nl wrote: > > > > choices = raw_input("letter s to stop:") > > > > Oh no, this is not what I want. Now it is waiting for input when its go > > further with the script. Because I have an while True: so I want that the

Re: raw_input and break

2015-11-05 Thread input/ldompeling
In reply to "Peter Otten" who wrote the following: > input/ldompel...@casema.nl wrote: > > > while True: > > enable_servo() > > servo(90) > > mindist = 80 > > choices = input("letter s to stop:") > > if choices == 's': > > print ("stop") > > break > > if mindis

Re: raw_input and break

2015-11-05 Thread input/ldompeling
In reply to "tian.su.y...@gmail.com" who wrote the following: > =E5=9C=A8 2015=E5=B9=B411=E6=9C=884=E6=97=A5=E6=98=9F=E6=9C=9F=E4=B8=89 UTC= > -6=E4=B8=8B=E5=8D=883:45:09=EF=BC=8Cinput/ld...@casema.nl=E5=86=99=E9=81=93= > =EF=BC=9A > > I have an continues loop with "while True:" > > Now I want to

Re: raw_input and break

2015-11-04 Thread input/ldompeling
In reply to "Joel Goldstick" who wrote the following: > On Wed, Nov 4, 2015 at 4:44 PM, wrote: > > > I have an continues loop with "while True:" > > Now I want to use "raw_input" and when I press "s" on the keybord that it > > will > > "break" the continues loop. > > > > I tried: > > choices =

raw_input and break

2015-11-04 Thread input/ldompeling
I have an continues loop with "while True:" Now I want to use "raw_input" and when I press "s" on the keybord that it will "break" the continues loop. I tried: choices = raw_input if choises == s: break But even when I not press "s" it "break" I want that I not press "s" the script continues. A

Re: GoPiGo script

2015-11-02 Thread input/ldompeling
Thank you for the explanation for it. I must tell you that i yust beginning with python. I bought the book beginning programming with python. In reply to "Dennis Lee Bieber" who wrote the following: > On Mon, 02 Nov 2015 13:29:04 GMT, input/ldompel...@casema.nl declaimed the > following:

Re: GoPiGo script

2015-11-02 Thread input/ldompeling
He mike, Thank you or making this script. Only I get errors for sleep. I also tried to change it to time.sleep() but that also gives errors. File "test05.py", line 23 sleep(2) ^ SyntaxError: invalid syntax ---

Re: GoPiGo script

2015-11-02 Thread input/ldompeling
I tried to use def loop(): now for to restart the script. but its only restart "fwd()" print ("forward 1x") and then stop. It does not look further for the if function. Is there another way to restart this script ? I also tried with (while True:) but that does nothing. Thanks ---

Re: GoPiGo script

2015-10-31 Thread input/ldompeling
> It does not only print; it also calls enable_servo, servo and fwd > repeatedly. > Then I am misinformed, because someone told me in this group to use while True: Is there another function that I can use for to restart this script? Thanks In reply to "MRAB" who wrote the following: > On

Re: GoPiGo script

2015-10-31 Thread input/ldompeling
> The body of the 'while' loop extends from the line: > > enable_servo() > > to the line: > > print ("forward1x") > > Would that explain it? When i run this scipt its only print a lot off print1x. Do you mean that ? Thanks In reply to "MRAB" who wrote the following: > On 2015-10-3

Re: GoPiGo script

2015-10-31 Thread input/ldompeling
I intended the rules under while True: The script is working now only the wheels go's only forward "(fwd)",so the sensor not detect any obstacles.(sensor=us_dist(15). --- from gopigo import * import time set_right_spe

Re: my first script for the GoPiGo

2015-10-22 Thread input/ldompeling
In reply to "MRAB" who wrote the following: > On 2015-10-22 16:07, input/ldompel...@casema.nl wrote: > > I want that this script runs to times from the upper line to the buttom > > line. > > I tried with for x in range(2): but that didn't work > > You say "didn't work", but in what way didn't it

my first script for the GoPiGo

2015-10-22 Thread input/ldompeling
I want that this script runs to times from the upper line to the buttom line. I tried with for x in range(2): but that didn't work The GoPiGo is a small robot on wheels. The API codes are here: http://www.dexterindustries.com/GoPiGo/programming/python-programming-for-the- raspberry-pi-gopigo/ f