adafruit / adafruit/adafruit-beaglebone-io-python

ValueError: Set gpio direction failed, missing file or invalid permissions.

Open
#359 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
479
Forks
214
PR merge metrics
No merged PRs in 30d

Description

debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[4dd50b306e4eb31a05bb72a9573febc3695f1f05]
eeprom:[A335BNLT00C02151SBB37547]
dogtag:[BeagleBoard.org Debian Image 2017-03-19]
bootloader:[/dev/mmcblk1]:[U-Boot 2017.03-00002-gd12b1519b4]
kernel:[4.4.54-ti-r93]
nodejs:[v4.8.0]
device-tree-override:[dtb=am335x-boneblack-emmc-overlay.dtb]

THIS IS MY PYTHON CODE
import Adafruit_BBIO.GPIO as GPIO
import time
GPIO.setup("P8_10",GPIO.OUT)

IF I RUN THIS
File "blink.py", line 3, in
GPIO.setup("P8_10",GPIO.OUT)
ValueError: Set gpio direction failed, missing file or invalid permissions.

I GET THIS ERROR HOW TO RESOLVE THIS

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the GPIO.setup("P8_10", GPIO.OUT) call in blink.py and the reported BeagleBone image, kernel, device-tree override, and Node.js versions from version.sh. Check how this library handles GPIO direction and permissions for that pin, then verify whether the issue is reproducible and document a confirmed resolution or the missing environment requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.