GPIO library ok in root but not user

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
colin_t
 
Posts: 2
Joined: Tue Sep 09, 2014 2:01 am

GPIO library ok in root but not user

Post by colin_t »

I just received my BBB and installed the GPIO library. then I discovered If I develop my python programs in Geany I can't get the IO to work.
are there plans to correct this or will I have to do all my I/O programming in root and loose the benefits of a GUI interface?

User avatar
colin_t
 
Posts: 2
Joined: Tue Sep 09, 2014 2:01 am

Re: GPIO library ok in root but not user

Post by colin_t »

Ok I found a fix
in the set build command I added sudo before python in the Compile and execute options
my Led now blinks

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPIO library ok in root but not user

Post by adafruit_support_mike »

Yep.. the OS puts access restrictions on hardware IO. You need to execute the scripts as root, or with sudo.

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”