{"action":"created","issue":{"url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/205","labels_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/205/comments","events_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/205/events","html_url":"https://github.com/DIYBookScanner/spreads/issues/205","id":95227711,"number":205,"title":"IndexError: tuple index out of range,","user":{"login":"mcdonaldm","id":13179324,"avatar_url":"https://avatars.githubusercontent.com/u/13179324?v=3","gravatar_id":"","url":"https://api.github.com/users/mcdonaldm","html_url":"https://github.com/mcdonaldm","followers_url":"https://api.github.com/users/mcdonaldm/followers","following_url":"https://api.github.com/users/mcdonaldm/following{/other_user}","gists_url":"https://api.github.com/users/mcdonaldm/gists{/gist_id}","starred_url":"https://api.github.com/users/mcdonaldm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcdonaldm/subscriptions","organizations_url":"https://api.github.com/users/mcdonaldm/orgs","repos_url":"https://api.github.com/users/mcdonaldm/repos","events_url":"https://api.github.com/users/mcdonaldm/events{/privacy}","received_events_url":"https://api.github.com/users/mcdonaldm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2015-07-15T15:49:50Z","updated_at":"2015-07-16T20:48:21Z","closed_at":null,"body":"Receiving this error quite frequently. I can capture a set of images, but then I'll receive this error and needs restarted.\r\n\r\nNothing has changed from one capture to another.\r\n\r\nI've built this setup using the image files submitted by Duerig. All SD cards are Class 10 by Kingston.\r\n\r\nUsing a Raspberry Pi 2 with 2 Canon A2500 cameras.\r\n\r\nI've reformatted the spreads SD card multiple times but can't seem to capture more than 2 images at a time.\r\n\r\nEDIT: I shut spreads completely down by using the Shutdown function. Turned off cameras & Pi. Turned cameras back on, booted up the Pi. Started spreads. Both cameras show IP address. But when I hit the capture button it goes straight to this error message again.\r\n\r\nAny ideas?\r\n\r\nThanks\r\nMichael\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreadsplug/web/endpoints.py\", line 327, in view_func\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreadsplug/web/endpoints.py\", line 971, in finish_capture\r\n    workflow.finish_capture()\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/workflow.py\", line 952, in finish_capture\r\n    with concfut.ThreadPoolExecutor(len(self.devices)) as executor:\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/workflow.py\", line 527, in devices\r\n    if any(not dev.connected() for dev in self._devices):\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/workflow.py\", line 527, in <genexpr>\r\n    if any(not dev.connected() for dev in self._devices):\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreadsplug/dev/chdkcamera.py\", line 144, in connected\r\n    self._device.reconnect()\r\n  File \"/usr/local/lib/python2.7/dist-packages/chdkptp/device.py\", line 341, in reconnect\r\n    self._lua.call(\"con:reconnect\", wait=wait, strict=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/chdkptp/lua.py\", line 53, in call\r\n    return self._parse_rval(fn(*args))\r\n  File \"/usr/local/lib/python2.7/dist-packages/chdkptp/lua.py\", line 36, in _parse_rval\r\n    self._raise_exception(rval[2])\r\nIndexError: tuple index out of range\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/comments/122088679","html_url":"https://github.com/DIYBookScanner/spreads/issues/205#issuecomment-122088679","issue_url":"https://api.github.com/repos/DIYBookScanner/spreads/issues/205","id":122088679,"user":{"login":"duerig","id":879692,"avatar_url":"https://avatars.githubusercontent.com/u/879692?v=3","gravatar_id":"","url":"https://api.github.com/users/duerig","html_url":"https://github.com/duerig","followers_url":"https://api.github.com/users/duerig/followers","following_url":"https://api.github.com/users/duerig/following{/other_user}","gists_url":"https://api.github.com/users/duerig/gists{/gist_id}","starred_url":"https://api.github.com/users/duerig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duerig/subscriptions","organizations_url":"https://api.github.com/users/duerig/orgs","repos_url":"https://api.github.com/users/duerig/repos","events_url":"https://api.github.com/users/duerig/events{/privacy}","received_events_url":"https://api.github.com/users/duerig/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T20:48:21Z","updated_at":"2015-07-16T20:48:21Z","body":"There might be a bug in the directory check. Just make the directories\nyourself and rerun.\n\nmkdir -p ~/.config/spreads\n\nOn Thu, Jul 16, 2015, at 02:46 PM, mcdonaldm wrote:\n> Okay. so I ran \"sudo pip install -U spreads[chdkcamera]\"\n> \n> Everything looks like it installed other than yaml. It says \"compilation\n> terminated.\" \n> \n> I still receive the error about my configuration file and when I check\n> ~/.config there is not a directory for spreads. \n> \n> The full log is below.\n> \n> mcdonaldm@mcdonaldm-Inspiron-518:~/.pip$ sudo pip install -U\n> spreads[chdkcamera]\n> [sudo] password for mcdonaldm:\n> Downloading/unpacking spreads[chdkcamera]\n>   Downloading spreads-0.4.1.tar.gz (43kB): 43kB downloaded\n>   Running setup.py (path:/tmp/pip_build_root/spreads/setup.py) egg_info\n>   for package spreads\n>     \n>   Installing extra requirements: 'chdkcamera'\n> Downloading/unpacking colorama>=0.2.5 from\n> https://pypi.python.org/packages/source/c/colorama/colorama-0.3.3.tar.gz#md5=a56b8dc55158a41ab3c89c4c8feb8824\n> (from spreads[chdkcamera])\n>   Downloading colorama-0.3.3.tar.gz\n>   Running setup.py (path:/tmp/pip_build_root/colorama/setup.py) egg_info\n>   for package colorama\n>     \n> Downloading/unpacking pyusb>=1.0.0a3 (from spreads[chdkcamera])\n>   Downloading pyusb-1.0.0b2.tar.gz (57kB): 57kB downloaded\n>   Running setup.py (path:/tmp/pip_build_root/pyusb/setup.py) egg_info for\n>   package pyusb\n>     \n>     warning: no files found matching 'ChangeLog'\n> Downloading/unpacking PyYAML>=3.10 (from spreads[chdkcamera])\n>   Downloading PyYAML-3.11.tar.gz (248kB): 248kB downloaded\n>   Running setup.py (path:/tmp/pip_build_root/PyYAML/setup.py) egg_info\n>   for package PyYAML\n>     \n> Downloading/unpacking Wand>=0.3.1 (from spreads[chdkcamera])\n>   Downloading Wand-0.4.0.tar.gz (55kB): 55kB downloaded\n>   Running setup.py (path:/tmp/pip_build_root/Wand/setup.py) egg_info for\n>   package Wand\n>     \n> Downloading/unpacking stevedore>=0.9.1 (from spreads[chdkcamera])\n>   Downloading stevedore-1.6.0-py2.py3-none-any.whl\n> Downloading/unpacking futures>=2.1.4 (from spreads[chdkcamera])\n>   Downloading futures-3.0.3-py2-none-any.whl\n> Downloading/unpacking six>=1.9.0 (from\n> stevedore>=0.9.1->spreads[chdkcamera])\n>   Downloading six-1.9.0-py2.py3-none-any.whl\n> Downloading/unpacking argparse from\n> https://pypi.python.org/packages/2.7/a/argparse/argparse-1.3.0-py2.py3-none-any.whl#md5=c89395a1a43b61ca6a116aed5e3b1d59\n> (from stevedore>=0.9.1->spreads[chdkcamera])\n>   Downloading argparse-1.3.0-py2.py3-none-any.whl\n> Downloading/unpacking pbr>=0.11,<2.0 (from\n> stevedore>=0.9.1->spreads[chdkcamera])\n>   Downloading pbr-1.3.0-py2.py3-none-any.whl (83kB): 83kB downloaded\n> Installing collected packages: spreads, colorama, pyusb, PyYAML, Wand,\n> stevedore, futures, six, argparse, pbr\n>   Running setup.py install for spreads\n>     \n>     changing mode of build/scripts-2.7/spread from 644 to 755\n>     changing mode of /usr/local/bin/spread to 755\n>   Found existing installation: colorama 0.2.5\n>     Not uninstalling colorama at /usr/lib/python2.7/dist-packages, owned\n>     by OS\n>   Running setup.py install for colorama\n>     \n>   Running setup.py install for pyusb\n>     \n>     warning: no files found matching 'ChangeLog'\n>   Running setup.py install for PyYAML\n>     checking if libyaml is compilable\n>     i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv\n>     -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c\n>     build/temp.linux-i686-2.7/check_libyaml.c -o\n>     build/temp.linux-i686-2.7/check_libyaml.o\n>     build/temp.linux-i686-2.7/check_libyaml.c:2:18: fatal error: yaml.h:\n>     No such file or directory\n>      #include <yaml.h>\n>                       ^\n>     compilation terminated.\n>     \n>     libyaml is not found or a compiler error: forcing --without-libyaml\n>     (if libyaml is installed correctly, you may need to\n>      specify the option --include-dirs or uncomment and\n>      modify the parameter include_dirs in setup.cfg)\n>     \n>   Running setup.py install for Wand\n>     \n>   Found existing installation: six 1.5.2\n>     Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS\n>   Found existing installation: argparse 1.2.1\n>     Not uninstalling argparse at /usr/lib/python2.7, owned by OS\n> Successfully installed spreads colorama pyusb PyYAML Wand stevedore\n> futures six argparse pbr\n> Cleaning up...\n> \n> \n> \n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/DIYBookScanner/spreads/issues/205#issuecomment-122087785\n"}}