Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@SephReed

Description

@SephReed
Issue body actions

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

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.