Skip to content

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

Description

@SephReed

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions