{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/247","repository_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python","labels_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/247/comments","events_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/247/events","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/247","id":309598545,"number":247,"title":"\"ValueError: Set gpio mode failed, missing file or invalid permissions.\" when using GPIO.IN but only when using a cape.","user":{"login":"Irvin08","id":32175817,"avatar_url":"https://avatars0.githubusercontent.com/u/32175817?v=4","gravatar_id":"","url":"https://api.github.com/users/Irvin08","html_url":"https://github.com/Irvin08","followers_url":"https://api.github.com/users/Irvin08/followers","following_url":"https://api.github.com/users/Irvin08/following{/other_user}","gists_url":"https://api.github.com/users/Irvin08/gists{/gist_id}","starred_url":"https://api.github.com/users/Irvin08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Irvin08/subscriptions","organizations_url":"https://api.github.com/users/Irvin08/orgs","repos_url":"https://api.github.com/users/Irvin08/repos","events_url":"https://api.github.com/users/Irvin08/events{/privacy}","received_events_url":"https://api.github.com/users/Irvin08/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pdp7","id":313864,"avatar_url":"https://avatars2.githubusercontent.com/u/313864?v=4","gravatar_id":"","url":"https://api.github.com/users/pdp7","html_url":"https://github.com/pdp7","followers_url":"https://api.github.com/users/pdp7/followers","following_url":"https://api.github.com/users/pdp7/following{/other_user}","gists_url":"https://api.github.com/users/pdp7/gists{/gist_id}","starred_url":"https://api.github.com/users/pdp7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdp7/subscriptions","organizations_url":"https://api.github.com/users/pdp7/orgs","repos_url":"https://api.github.com/users/pdp7/repos","events_url":"https://api.github.com/users/pdp7/events{/privacy}","received_events_url":"https://api.github.com/users/pdp7/received_events","type":"User","site_admin":false},"assignees":[{"login":"pdp7","id":313864,"avatar_url":"https://avatars2.githubusercontent.com/u/313864?v=4","gravatar_id":"","url":"https://api.github.com/users/pdp7","html_url":"https://github.com/pdp7","followers_url":"https://api.github.com/users/pdp7/followers","following_url":"https://api.github.com/users/pdp7/following{/other_user}","gists_url":"https://api.github.com/users/pdp7/gists{/gist_id}","starred_url":"https://api.github.com/users/pdp7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdp7/subscriptions","organizations_url":"https://api.github.com/users/pdp7/orgs","repos_url":"https://api.github.com/users/pdp7/repos","events_url":"https://api.github.com/users/pdp7/events{/privacy}","received_events_url":"https://api.github.com/users/pdp7/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2018-03-29T02:41:27Z","updated_at":"2018-04-08T18:54:25Z","closed_at":null,"author_association":"NONE","body":"Hello, I have seen similar issues but the solutions to the other issues have not fixed my problem. I am running Debian 9.3 2018-01-28 4GB SD LXQT. I am able to run the following code without a cape attached:\r\n\r\nimport Adafruit_BBIO.GPIO as GPIO\r\nimport time\r\n \r\nGPIO.setup(\"P8_10\", GPIO.IN)\r\n \r\nold_switch_state = 0\r\n \r\nwhile True:\r\n    new_switch_state = GPIO.input(\"P8_10\")\r\n    if new_switch_state == 1 and old_switch_state == 0 :\r\n        print('Do not press this button again!')\r\n        time.sleep(0.1)\r\n    old_switch_state = new_switch_state\r\n\r\nHowever, when I attach a TI DLP2000, I receive the error \"ValueError: Set gpio mode failed, missing file or invalid permissions.\" The error does not occur if I use GPIO 10 as an output.\r\n\r\nThis is the result from running version.sh:\r\n\r\ndebian@beaglebone:~$ sudo /opt/scripts/tools/version.sh\r\ngit:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]\r\neeprom:[A335BNLT00C02917BBBK1187]\r\nmodel:[TI_AM335x_BeagleBone_Black]\r\ndogtag:[BeagleBoard.org Debian Image 2018-01-28]\r\nbootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.01-00002-g9aa111a004]\r\nkernel:[4.9.78-ti-r94]\r\nnodejs:[v6.14.0]\r\nuboot_overlay_options:[enable_uboot_overlays=1]\r\nuboot_overlay_options:[enable_uboot_cape_universal=1]\r\npkg:[bb-cape-overlays]:[4.4.20180322.0-0rcnee0~stretch+20180322]\r\npkg:[bb-wl18xx-firmware]:[1.20180328-0rcnee2~stretch+20180328]\r\npkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328]\r\ngroups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]\r\ndmesg | grep pinctrl-single\r\n[    1.405757] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568\r\nEND"},"comment":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/comments/379573265","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/247#issuecomment-379573265","issue_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/247","id":379573265,"user":{"login":"Irvin08","id":32175817,"avatar_url":"https://avatars0.githubusercontent.com/u/32175817?v=4","gravatar_id":"","url":"https://api.github.com/users/Irvin08","html_url":"https://github.com/Irvin08","followers_url":"https://api.github.com/users/Irvin08/followers","following_url":"https://api.github.com/users/Irvin08/following{/other_user}","gists_url":"https://api.github.com/users/Irvin08/gists{/gist_id}","starred_url":"https://api.github.com/users/Irvin08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Irvin08/subscriptions","organizations_url":"https://api.github.com/users/Irvin08/orgs","repos_url":"https://api.github.com/users/Irvin08/repos","events_url":"https://api.github.com/users/Irvin08/events{/privacy}","received_events_url":"https://api.github.com/users/Irvin08/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T18:54:25Z","updated_at":"2018-04-08T18:54:25Z","author_association":"NONE","body":"I put the first command and this was the output:\r\ninfo: checking archive\r\n2018-04-08 18:31:37 URL:https://rcn-ee.com/repos/latest/stretch-armhf/LATEST-omap-psp [193/193] -> \"LATEST-omap-psp\" [1]\r\n-----------------------------\r\nKernel Options:\r\nABI:1 LTS41 4.1.38-bone24\r\nABI:1 LTS44 4.4.126-bone22\r\nABI:1 LTS49 4.9.92-bone10\r\nABI:1 LTS414 4.14.32-bone14\r\nABI:1 STABLE 3.8.13-bone86\r\nABI:1 TESTING 4.16.0-bone8\r\nABI:1 EXPERIMENTAL 4.16.0-bone7\r\n-----------------------------\r\nKernel version options:\r\n-----------------------------\r\nLTS44: --lts-4_4\r\nLTS49: --lts-4_9\r\nLTS414: --lts-4_14\r\nSTABLE: --stable\r\nTESTING: --testing\r\n-----------------------------\r\ninfo: you are running: [4.9.78-ti-r94], latest is: [4.16.0-bone8] updating...\r\nIgn:1 http://deb.debian.org/debian stretch InRelease\r\nGet:2 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]\r\nHit:3 http://repos.rcn-ee.com/debian stretch InRelease\r\nGet:4 http://deb.debian.org/debian-security stretch/updates InRelease [63.0 kB]\r\nHit:5 http://deb.debian.org/debian stretch Release\r\nFetched 154 kB in 9s (16.5 kB/s)\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\n1 package can be upgraded. Run 'apt list --upgradable' to see it.\r\nChecking dpkg...\r\nChecking apt-cache...\r\ndebug: installing: [linux-image-4.16.0-bone8]\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nThe following packages were automatically installed and are no longer required:\r\n  enchant fonts-dejavu fonts-dejavu-extra gir1.2-atk-1.0 gir1.2-freedesktop\r\n  gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0 gir1.2-gtk-3.0 gir1.2-pango-1.0\r\n  gir1.2-peas-1.0 gnome-desktop3-data gnome-user-guide\r\n  gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio\r\n  gstreamer1.0-x gthumb-data hunspell-en-us libaa1 libavc1394-0 libcaca0\r\n  libcdparanoia0 libclutter-1.0-0 libclutter-1.0-common libclutter-gtk-1.0-0\r\n  libcogl-common libcogl-pango20 libcogl-path20 libcogl20 libdv4\r\n  libenchant1c2a libexempi3 libexiv2-14 libgirepository-1.0-1\r\n  libgnome-desktop-3-12 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0\r\n  libharfbuzz-icu0 libhunspell-1.4-0 libhyphen0 libiec61883-0 libjack-jackd2-0\r\n  libjavascriptcoregtk-4.0-18 libnotify4 liborc-0.4-0 libpangoxft-1.0-0\r\n  libpeas-1.0-0 libpeas-common libraw1394-11 libraw15 libshout3 libtag1v5\r\n  libtag1v5-vanilla libvisual-0.4-0 libwebkit2gtk-4.0-37 libyelp0 man-db\r\n  notification-daemon yelp yelp-xsl\r\nUse 'sudo apt autoremove' to remove them.\r\nSuggested packages:\r\n  linux-firmware-image-4.16.0-bone8\r\nThe following NEW packages will be installed:\r\n  linux-image-4.16.0-bone8\r\n0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.\r\nNeed to get 28.0 MB of archives.\r\nAfter this operation, 36.2 MB of additional disk space will be used.\r\nGet:1 http://repos.rcn-ee.com/debian stretch/main armhf linux-image-4.16.0-bone8 armhf 1stretch [28.0 MB]\r\nFetched 28.0 MB in 7s (3,853 kB/s)\r\nSelecting previously unselected package linux-image-4.16.0-bone8.\r\n(Reading database ... 90983 files and directories currently installed.)\r\nPreparing to unpack .../linux-image-4.16.0-bone8_1stretch_armhf.deb ...\r\nUnpacking linux-image-4.16.0-bone8 (1stretch) ...\r\nSetting up linux-image-4.16.0-bone8 (1stretch) ...\r\nupdate-initramfs: Generating /boot/initrd.img-4.16.0-bone8\r\nzz-uenv_txt: Updating /boot/uEnv.txt [uname_r=4.16.0-bone8]\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nE: Unable to locate package ti-sgx-es8-modules-4.16.0-bone8\r\nE: Couldn't find any package by glob 'ti-sgx-es8-modules-4.16.0-bone8'\r\nE: Couldn't find any package by regex 'ti-sgx-es8-modules-4.16.0-bone8'\r\nupdate-initramfs: Generating /boot/initrd.img-4.16.0-bone8\r\n\r\nAfter rebooting I got:\r\ndebian@beaglebone:~$ uname -r\r\n4.16.0-bone8\r\n\r\nAfter running the second command:\r\nbootloader:[/dev/mmcblk1]:[U-Boot 2018.01-00002-g9aa111a004]\r\nBootloader Recovery\r\n\r\nDownloading Device's Bootloader\r\n-----------------------------\r\n2018-04-08 18:40:23 URL:https://rcn-ee.com/repos/bootloader/latest/bootloader-ng [10359/10359] -> \"/tmp/tmp.FkSzHeqHZ7/dl/bootloader-ng\" [1]\r\n2018-04-08 18:40:25 URL:https://rcn-ee.com/repos/bootloader/am335x_evm/MLO-am335x_evm-v2018.03-r8 [91876/91876] -> \"/tmp/tmp.FkSzHeqHZ7/dl/MLO-am335x_evm-v2018.03-r8\" [1]\r\nSPL Bootloader: MLO-am335x_evm-v2018.03-r8\r\n--2018-04-08 18:40:25--  https://rcn-ee.com/repos/bootloader/am335x_evm/u-boot-am335x_evm-v2018.03-r8.img\r\nResolving rcn-ee.com (rcn-ee.com)... 2600:3c00::f03c:91ff:fe37:6ad5, 45.33.2.10\r\nConnecting to rcn-ee.com (rcn-ee.com)|2600:3c00::f03c:91ff:fe37:6ad5|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 432064 (422K)\r\nSaving to: ‘/tmp/tmp.FkSzHeqHZ7/dl/u-boot-am335x_evm-v2018.03-r8.img’\r\n\r\nu-boot-am335x_evm-v 100%[===================>] 421.94K   931KB/s    in 0.5s\r\n\r\n2018-04-08 18:40:27 (931 KB/s) - ‘/tmp/tmp.FkSzHeqHZ7/dl/u-boot-am335x_evm-v2018.03-r8.img’ saved [432064/432064]\r\n\r\nUBOOT Bootloader: u-boot-am335x_evm-v2018.03-r8.img\r\n-----------------------------\r\nWarning: this script will flash your bootloader with:\r\nu-boot-mmc-spl.bin: [MLO-am335x_evm-v2018.03-r8]\r\nu-boot.bin: [u-boot-am335x_evm-v2018.03-r8.img]\r\nfor: [am335x_evm]\r\n-----------------------------\r\nlog: dd if=/tmp/tmp.FkSzHeqHZ7/dl/MLO-am335x_evm-v2018.03-r8 of=/dev/mmcblk1 seek=1 bs=128k\r\nlog: dd if=/tmp/tmp.FkSzHeqHZ7/dl/u-boot-am335x_evm-v2018.03-r8.img of=/dev/mmcblk1 seek=1 bs=384k\r\n\r\nAre you 100% sure, on selecting [am335x_evm] (y/n)? y\r\nlog: dd if=/tmp/tmp.FkSzHeqHZ7/dl/MLO-am335x_evm-v2018.03-r8 of=/dev/mmcblk1 seek=1 bs=128k\r\n0+1 records in\r\n0+1 records out\r\n91876 bytes (92 kB, 90 KiB) copied, 0.0155197 s, 5.9 MB/s\r\nlog: dd if=/tmp/tmp.FkSzHeqHZ7/dl/u-boot-am335x_evm-v2018.03-r8.img of=/dev/mmcblk1 seek=1 bs=384k\r\n1+1 records in\r\n1+1 records out\r\n432064 bytes (432 kB, 422 KiB) copied, 0.0514906 s, 8.4 MB/s\r\n-----------------------------\r\nBootloader Updated\r\nBootloader Recovery Complete\r\n \r\nLastly I ran\r\ndebian@beaglebone:~$ sudo /opt/scripts/tools/version.sh\r\ngit:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]\r\neeprom:[A335BNLT00C02917BBBK1187]\r\nmodel:[TI_AM335x_BeagleBone_Black]\r\ndogtag:[BeagleBoard.org Debian Image 2018-01-28]\r\nbootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.03-00002-gac9cce7c6a]\r\nkernel:[4.16.0-bone8]\r\nnodejs:[v6.14.0]\r\nuboot_overlay_options:[enable_uboot_overlays=1]\r\nuboot_overlay_options:[enable_uboot_cape_universal=1]\r\npkg:[bb-cape-overlays]:[4.4.20180405.0-0rcnee0~stretch+20180405]\r\npkg:[bb-wl18xx-firmware]:[1.20180328-0rcnee2~stretch+20180328]\r\npkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328]\r\ngroups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]\r\ndmesg | grep pinctrl-single\r\n[    0.878405] pinctrl-single 44e10800.pinmux: 142 pins, size 568\r\nEND\r\n\r\n\r\nHowever after rebooting I have been unable to connect to the beaglebone.\r\n"}}
{"actor":{"display_login":"Irvin08"}}