Hi to all,
I do have an unsolvable mystery (for me).
I did all the installation work for getting the 16bit Servo hat to run and at the end the 'Servo_Example.py' did work via the command line but as soon as I want to start this example code via the Python2 IDE I do get an error message:
With my basic skills I do not have any clue how to get this done, as well I didn't find any other reference to this.
Thanks to all who a are trying to help me.
Best regards
Juergen
16 channel servo hat & Pi2 - Servo Example.py works in comma
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- WeissWurschtIs
- Posts: 2
- Joined: Tue Mar 31, 2015 1:31 pm
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: 16 channel servo hat & Pi2 - Servo Example.py works in c
The problem is that you have to use `sudo` to run the script, and IDLE doesn't know how to do that.
The easiest way to get around the problem is to launch IDLE from the command line with:
The easiest way to get around the problem is to launch IDLE from the command line with:
Code: Select all
sudo idle
- WeissWurschtIs
- Posts: 2
- Joined: Tue Mar 31, 2015 1:31 pm
Re: 16 channel servo hat & Pi2 - Servo Example.py works in c
Hi Mike,
only four small letters, but a big step for me.... Thanks a lot for giving me this hint, it worked fine.
Best regards
Juergen
only four small letters, but a big step for me.... Thanks a lot for giving me this hint, it worked fine.
Best regards
Juergen
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: 16 channel servo hat & Pi2 - Servo Example.py works in c
That's an amazingly good summary of learning Unix! ;-)WeissWurschtIs wrote:only four small letters, but a big step for me....
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/