Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpio-admin: could not flush data to /sys/class/gpio/export: Device or resource busy #67

Open
SephReed opened this issue May 15, 2016 · 0 comments

Comments

@SephReed
Copy link

SephReed commented May 15, 2016

After following the instructions, and copying the example, I am receiving this error:

gpio-admin: could not flush data to /sys/class/gpio/export: Device or resource busy
Traceback (most recent call last):
File "gpio.py", line 4, in
with pins.pin(1, direction=In) as pin:
File "/home/pi/gpio/quick2wire-python-api/quick2wire/gpio.py", line 45, in enter
self.open()
File "/home/pi/gpio/quick2wire-python-api/quick2wire/gpio.py", line 101, in open
gpio_admin("export", self.soc_pin_number, self._pull)
File "/home/pi/gpio/quick2wire-python-api/quick2wire/gpio.py", line 16, in gpio_admin
subprocess.check_call(["gpio-admin", subcommand, str(pin)])
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gpio-admin', 'export', '18']' returned non-zero exit status 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant