{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/272","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/272/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/272/comments","events_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/272/events","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/272","id":353601033,"node_id":"MDU6SXNzdWUzNTM2MDEwMzM=","number":272,"title":"Beaglebone sd card dependant","user":{"login":"gahigg1","id":24940868,"node_id":"MDQ6VXNlcjI0OTQwODY4","avatar_url":"https://avatars0.githubusercontent.com/u/24940868?v=4","gravatar_id":"","url":"https://api.github.com/users/gahigg1","html_url":"https://github.com/gahigg1","followers_url":"https://api.github.com/users/gahigg1/followers","following_url":"https://api.github.com/users/gahigg1/following{/other_user}","gists_url":"https://api.github.com/users/gahigg1/gists{/gist_id}","starred_url":"https://api.github.com/users/gahigg1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gahigg1/subscriptions","organizations_url":"https://api.github.com/users/gahigg1/orgs","repos_url":"https://api.github.com/users/gahigg1/repos","events_url":"https://api.github.com/users/gahigg1/events{/privacy}","received_events_url":"https://api.github.com/users/gahigg1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-24T00:28:05Z","updated_at":"2018-08-27T05:11:56Z","closed_at":null,"author_association":"NONE","body":"I booted the new image of debian (9.4) to my beaglebone. The booting process was quite weird, and the leds did not flash as supposed to. The beaglebone now only turns on and connects to my computer now when the sd card is inserted, and does not work at all when it is not. Also, there is something wrong with coding the PWM pins. Somehow, every time that I try to access a pin, it says that there is a problem with the sysfs file. But, simply running the code again satisfies the issue with one pin, then becomes the issue with the next. and then repeats. After running the program until the issue is solved with all pins, then it works. See below:\r\n\r\n\r\nDebian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\r\npermitted by applicable law.\r\nLast login: Sun Jun 17 13:54:19 2018 from 192.168.7.1\r\ndebian@beaglebone:~$ python pwm\r\nTraceback (most recent call last):\r\n  File \"pwm\", line 8, in <module>\r\n    PWM.start(\"P9_14\",100,1000)\r\nRuntimeError: Problem with a sysfs file\r\ndebian@beaglebone:~$ python pwm\r\nTraceback (most recent call last):\r\n  File \"pwm\", line 9, in <module>\r\n    PWM.start(\"P9_16\",100,1000)\r\nRuntimeError: Problem with a sysfs file\r\ndebian@beaglebone:~$ python pwm\r\nTraceback (most recent call last):\r\n  File \"pwm\", line 10, in <module>\r\n    PWM.start(\"P8_13\",100,1000)\r\nRuntimeError: Problem with a sysfs file\r\ndebian@beaglebone:~$ python pwm\r\n^[[ATraceback (most recent call last):\r\n  File \"pwm\", line 11, in <module>\r\n    PWM.start(\"P9_22\",100,1000)\r\nRuntimeError: Problem with a sysfs file\r\ndebian@beaglebone:~$ python pwm\r\nTraceback (most recent call last):\r\n  File \"pwm\", line 12, in <module>\r\n    PWM.start(\"P9_42\",100,1000)\r\nRuntimeError: Problem with a sysfs file\r\ndebian@beaglebone:~$ python pwm\r\nTraceback (most recent call last):\r\n  File \"pwm\", line 13, in <module>\r\n    PWM.start(\"P9_21\",100,1000)\r\nRuntimeError: Problem with a sysfs file\r\ndebian@beaglebone:~$ python pwm\r\ndebian@beaglebone:~$\r\n\r\nAnd my code:\r\n#!/usr/bin/python\r\n\r\nimport Adafruit_BBIO.GPIO as GPIO\r\nimport Adafruit_BBIO.PWM as PWM\r\nGPIO.setup(\"P8_10\", GPIO.OUT)\r\nGPIO.output(\"P8_10\", GPIO.HIGH)\r\nGPIO.cleanup()\r\nPWM.start(\"P9_14\",100,1000)\r\nPWM.start(\"P9_16\",100,1000)\r\nPWM.start(\"P8_13\",100,1000)\r\nPWM.start(\"P9_22\",100,1000)\r\nPWM.start(\"P9_42\",100,1000)\r\nPWM.start(\"P9_21\",100,1000)\r\n\r\nThis is very strange right? please help"},"comment":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/comments/416116120","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/272#issuecomment-416116120","issue_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/272","id":416116120,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjExNjEyMA==","user":{"login":"pdp7","id":313864,"node_id":"MDQ6VXNlcjMxMzg2NA==","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},"created_at":"2018-08-27T05:11:56Z","updated_at":"2018-08-27T05:11:56Z","author_association":"COLLABORATOR","body":"It would be helpful if you could run strace so that I can better understand what is happening.\r\n\r\nInstall strace (if it doesn't already exist):\r\n```sudo apt-get install strace```\r\n\r\nThen run strace, replace test.py with the name of your test program:\r\n```strace -f -o strace.log python test.py```\r\n\r\nPaste the contents of strace.log into a GitHub Gist and post the link in a reply here."}}
{"actor":{"display_login":"pdp7"}}