{"action":"created","issue":{"url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/issues/253","repository_url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel","labels_url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/issues/253/comments","events_url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/issues/253/events","html_url":"https://github.com/ManiacalLabs/BiblioPixel/issues/253","id":239122812,"number":253,"title":"When using projects it fails 3 times if error","user":{"login":"adammhaile","id":957162,"avatar_url":"https://avatars1.githubusercontent.com/u/957162?v=3","gravatar_id":"","url":"https://api.github.com/users/adammhaile","html_url":"https://github.com/adammhaile","followers_url":"https://api.github.com/users/adammhaile/followers","following_url":"https://api.github.com/users/adammhaile/following{/other_user}","gists_url":"https://api.github.com/users/adammhaile/gists{/gist_id}","starred_url":"https://api.github.com/users/adammhaile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammhaile/subscriptions","organizations_url":"https://api.github.com/users/adammhaile/orgs","repos_url":"https://api.github.com/users/adammhaile/repos","events_url":"https://api.github.com/users/adammhaile/events{/privacy}","received_events_url":"https://api.github.com/users/adammhaile/received_events","type":"User","site_admin":false},"labels":[{"id":145950437,"url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"rec","id":253362,"avatar_url":"https://avatars1.githubusercontent.com/u/253362?v=3","gravatar_id":"","url":"https://api.github.com/users/rec","html_url":"https://github.com/rec","followers_url":"https://api.github.com/users/rec/followers","following_url":"https://api.github.com/users/rec/following{/other_user}","gists_url":"https://api.github.com/users/rec/gists{/gist_id}","starred_url":"https://api.github.com/users/rec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rec/subscriptions","organizations_url":"https://api.github.com/users/rec/orgs","repos_url":"https://api.github.com/users/rec/repos","events_url":"https://api.github.com/users/rec/events{/privacy}","received_events_url":"https://api.github.com/users/rec/received_events","type":"User","site_admin":false},"assignees":[{"login":"rec","id":253362,"avatar_url":"https://avatars1.githubusercontent.com/u/253362?v=3","gravatar_id":"","url":"https://api.github.com/users/rec","html_url":"https://github.com/rec","followers_url":"https://api.github.com/users/rec/followers","following_url":"https://api.github.com/users/rec/following{/other_user}","gists_url":"https://api.github.com/users/rec/gists{/gist_id}","starred_url":"https://api.github.com/users/rec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rec/subscriptions","organizations_url":"https://api.github.com/users/rec/orgs","repos_url":"https://api.github.com/users/rec/repos","events_url":"https://api.github.com/users/rec/events{/privacy}","received_events_url":"https://api.github.com/users/rec/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/milestones/4","html_url":"https://github.com/ManiacalLabs/BiblioPixel/milestone/4","labels_url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/milestones/4/labels","id":2604831,"number":4,"title":"v3.0.x","description":"Immediately after 3.0","creator":{"login":"adammhaile","id":957162,"avatar_url":"https://avatars1.githubusercontent.com/u/957162?v=3","gravatar_id":"","url":"https://api.github.com/users/adammhaile","html_url":"https://github.com/adammhaile","followers_url":"https://api.github.com/users/adammhaile/followers","following_url":"https://api.github.com/users/adammhaile/following{/other_user}","gists_url":"https://api.github.com/users/adammhaile/gists{/gist_id}","starred_url":"https://api.github.com/users/adammhaile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammhaile/subscriptions","organizations_url":"https://api.github.com/users/adammhaile/orgs","repos_url":"https://api.github.com/users/adammhaile/repos","events_url":"https://api.github.com/users/adammhaile/events{/privacy}","received_events_url":"https://api.github.com/users/adammhaile/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2017-06-26T15:17:14Z","updated_at":"2017-06-28T10:39:37Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-06-28T10:39:37Z","updated_at":"2017-06-28T10:55:23Z","closed_at":null,"body":"Wasn't sure how else to describe that....\r\nBut if I hit an exception, the project code that wraps everything seems to keep trying to connect, so you get exceptions while handling the exceptions (see log below). This should not happen.\r\n\r\n```\r\n(bp3) adam@McFly:~/Stuff/dev/BP3$ sudo $(which bibliopixel) run ./Test/ap.json \r\nINFO - run - Processing project file...\r\nINFO - devices - Using COM Port: /dev/ttyACM0, Device ID: 0, Device Ver: 0\r\nINFO - driver - Reconfigure and reboot needed, waiting for controller to restart...\r\nERROR - driver - Traceback (most recent call last):\r\n  File \"/home/adam/Stuff/pyenv/bp3/lib/python3.5/site-packages/serial/serialposix.py\", line 501, in read\r\n    'device reports readiness to read but returned no data '\r\nserial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/driver.py\", line 65, in _connect\r\n    self.devices.find_serial_devices()\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/devices.py\", line 24, in find_serial_devices\r\n    ver = self._get_device_version(port, self.baudrate)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/devices.py\", line 87, in _get_device_version\r\n    resp = com.read(1)\r\n  File \"/home/adam/Stuff/pyenv/bp3/lib/python3.5/site-packages/serial/serialposix.py\", line 508, in read\r\n    raise SerialException('read failed: {}'.format(e))\r\nserial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)\r\n\r\nERROR - driver - Unable to connect to the device. Please check that it is connected and the correct port is selected.\r\nTraceback (most recent call last):\r\n  File \"/home/adam/Stuff/pyenv/bp3/lib/python3.5/site-packages/serial/serialposix.py\", line 501, in read\r\n    'device reports readiness to read but returned no data '\r\nserial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/adam/Stuff/pyenv/bp3/bin/bibliopixel\", line 6, in <module>\r\n    exec(compile(open(__file__).read(), __file__, 'exec'))\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/scripts/bibliopixel\", line 15, in <module>\r\n    main.main()\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/main/main.py\", line 58, in main\r\n    sys.exit(run(args, presets) or 0)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/main/run.py\", line 52, in run\r\n    project_to_animation(args.name, args.json, defaults).start()\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/main/run.py\", line 46, in project_to_animation\r\n    return project.project_to_animation(desc, defaults)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/project/project.py\", line 86, in project_to_animation\r\n    return _make_project(**project)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/project/project.py\", line 52, in _make_project\r\n    layout = _make_layout(**kwds)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/project/project.py\", line 36, in _make_layout\r\n    coordMap = make_drivers(maker=maker, **driver)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/project/project.py\", line 34, in make_drivers\r\n    drivers.append(_make_object(**kwds))\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/project/project.py\", line 13, in _make_object\r\n    return importer.make_object(*args, field_types=field_types, **kwds)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/project/importer.py\", line 71, in make_object\r\n    return symbol(*args, **kwds)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/driver.py\", line 45, in __init__\r\n    resp = self._connect()\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/driver.py\", line 106, in _connect\r\n    raise e\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/driver.py\", line 65, in _connect\r\n    self.devices.find_serial_devices()\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/devices.py\", line 24, in find_serial_devices\r\n    ver = self._get_device_version(port, self.baudrate)\r\n  File \"/home/adam/Stuff/dev/BP3/BiblioPixel/bibliopixel/drivers/serial/devices.py\", line 87, in _get_device_version\r\n    resp = com.read(1)\r\n  File \"/home/adam/Stuff/pyenv/bp3/lib/python3.5/site-packages/serial/serialposix.py\", line 508, in read\r\n    raise SerialException('read failed: {}'.format(e))\r\nserial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/issues/comments/311626346","html_url":"https://github.com/ManiacalLabs/BiblioPixel/issues/253#issuecomment-311626346","issue_url":"https://api.github.com/repos/ManiacalLabs/BiblioPixel/issues/253","id":311626346,"user":{"login":"adammhaile","id":957162,"avatar_url":"https://avatars1.githubusercontent.com/u/957162?v=3","gravatar_id":"","url":"https://api.github.com/users/adammhaile","html_url":"https://github.com/adammhaile","followers_url":"https://api.github.com/users/adammhaile/followers","following_url":"https://api.github.com/users/adammhaile/following{/other_user}","gists_url":"https://api.github.com/users/adammhaile/gists{/gist_id}","starred_url":"https://api.github.com/users/adammhaile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammhaile/subscriptions","organizations_url":"https://api.github.com/users/adammhaile/orgs","repos_url":"https://api.github.com/users/adammhaile/repos","events_url":"https://api.github.com/users/adammhaile/events{/privacy}","received_events_url":"https://api.github.com/users/adammhaile/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T10:55:23Z","updated_at":"2017-06-28T10:55:23Z","body":"Lol...well, yes. But my point here was that the same thing happens on\nbasically any exception, hardware or not.\n\nOn Wed, Jun 28, 2017 at 6:53 AM, Tom Swirly <notifications@github.com>\nwrote:\n\n> Well, no - we need to successfully catch hardware errors at the right\n> place, because in the real world they happen all the time. You plug things\n> in, you pull 'em out, you turn 'em off, someone turns off the router...\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/ManiacalLabs/BiblioPixel/issues/253#issuecomment-311625955>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AA6a6tiGsD0a6ABaKeVg2bkedXdirLr4ks5sIjCmgaJpZM4OHygU>\n> .\n>\n"}}
{"actor":{"display_login":"adammhaile"}}