dony71
1
I install this skill below
however installation unsuccessful due to error below
Any idea why?
File “/opt/mycroft/skills/picroft_example_skill_gpio/init.py”, line 56, in
import GPIO
File “/opt/mycroft/skills/picroft_example_skill_gpio/GPIO.py”, line 59, in
GPIO.add_event_detect(17,GPIO.BOTH,ButtonHandeler)
RuntimeError: Failed to add edge detection
2020-06-11 02:26:28.962 | ERROR | 24 | mycroft.skills.skill_loader:_communicate_load_status:286 | Skill picroft_example_skill_gpio failed to load
dony71
2
I google and find this
https://www.raspberrypi.org/forums/viewtopic.php?t=205327
But I’m running as root, and change gpio still issue
I found also need to add 99-com.rules but still issue
pcwii
3
try to update the gpio user
if you are running picroft venv.
in the virtual environmnet sudo adduser mycroft gpio
sudo adduser mycroft gpio
dony71
4
After add this, I have different error now
2020-06-12 17:47:52.744 | INFO | 61 | mycroft.skills.skill_loader:load:114 | ATTEMPTING TO LOAD SKILL: picroft_example_skill_gpio
2020-06-12 17:47:52.754 | ERROR | 61 | mycroft.skills.skill_loader:_load_skill_source:215 | Failed to load skill: picroft_example_skill_gpio (RuntimeError(‘Conflicting edge detection already enabled for this GPIO channel’,))
Traceback (most recent call last):
File “/opt/mycroft/mycroft/skills/skill_loader.py”, line 208, in _load_skill_source
(’.py’, ‘rb’, imp.PY_SOURCE)
File “/usr/lib/python3.6/imp.py”, line 235, in load_module
return load_source(name, filename, file)
File “/usr/lib/python3.6/imp.py”, line 172, in load_source
module = _load(spec)
File “”, line 684, in _load
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/opt/mycroft/skills/picroft_example_skill_gpio/init.py”, line 56, in
import GPIO
File “/opt/mycroft/skills/picroft_example_skill_gpio/GPIO.py”, line 59, in
GPIO.add_event_detect(11,GPIO.BOTH,ButtonHandeler)
RuntimeError: Conflicting edge detection already enabled for this GPIO channel
2020-06-12 17:47:52.759 | ERROR | 61 | mycroft.skills.skill_loader:_communicate_load_status:286 | Skill picroft_example_skill_gpio failed to load