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/
Locked
User avatar
WeissWurschtIs
 
Posts: 2
Joined: Tue Mar 31, 2015 1:31 pm

16 channel servo hat & Pi2 - Servo Example.py works in comma

Post by WeissWurschtIs »

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:
raspi-Desktop.png
raspi-Desktop.png (132.36 KiB) Viewed 200 times
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

User avatar
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

Post by adafruit_support_mike »

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:

Code: Select all

sudo idle

User avatar
WeissWurschtIs
 
Posts: 2
Joined: Tue Mar 31, 2015 1:31 pm

Re: 16 channel servo hat & Pi2 - Servo Example.py works in c

Post by WeissWurschtIs »

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

User avatar
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

Post by adafruit_support_mike »

WeissWurschtIs wrote:only four small letters, but a big step for me....
That's an amazingly good summary of learning Unix! ;-)

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”