GitHub PullRequestEvent at 2014-02-12 23:26:12
Repository: spreads
Actor: jbaiter
Payload: {"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/jbaiter/spreads/pulls/2","id":12443675,"html_url":"https://github.com/jbaiter/spreads/pull/2","diff_url":"https://github.com/jbaiter/spreads/pull/2.diff","patch_url":"https://github.com/jbaiter/spreads/pull/2.patch","issue_url":"https://api.github.com/repos/jbaiter/spreads/issues/2","number":2,"state":"closed","title":"A1400cameradevice","user":{"login":"matti-kariluoma","id":279868,"avatar_url":"https://gravatar.com/avatar/c7e463cb822b8fe029c2e1a9495ba83f?d=https%3A%2F%2Fidenticons.github.com%2F7270748934683274d335fcff81a9184d.png&r=x","gravatar_id":"c7e463cb822b8fe029c2e1a9495ba83f","url":"https://api.github.com/users/matti-kariluoma","html_url":"https://github.com/matti-kariluoma","followers_url":"https://api.github.com/users/matti-kariluoma/followers","following_url":"https://api.github.com/users/matti-kariluoma/following{/other_user}","gists_url":"https://api.github.com/users/matti-kariluoma/gists{/gist_id}","starred_url":"https://api.github.com/users/matti-kariluoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matti-kariluoma/subscriptions","organizations_url":"https://api.github.com/users/matti-kariluoma/orgs","repos_url":"https://api.github.com/users/matti-kariluoma/repos","events_url":"https://api.github.com/users/matti-kariluoma/events{/privacy}","received_events_url":"https://api.github.com/users/matti-kariluoma/received_events","type":"User","site_admin":false},"body":"I encountered a strange race condition with set_zoom on (only one of?) my a1400s. This setting wait=True fixes, rolled up a CameraDevice class to hold this.\r\n\r\nThe error I was seeing before implementing this:\r\n```\r\nChdkCamera[right]: Calling chdkptp with arguments: [u'/usr/local/lib/chdkptp/chdkptp', '-c-d=033 -b=001', '-eset cli_verbose=2', '-elua set_zoom(3)']\r\nChdkCamera[left]: Calling chdkptp with arguments: [u'/usr/local/lib/chdkptp/chdkptp', '-c-d=034 -b=001', '-eset cli_verbose=2', '-elua set_zoom(3)']\r\nChdkCamera[right]: Calling chdkptp with arguments: [u'/usr/local/lib/chdkptp/chdkptp', '-c-d=033 -b=001', '-eset cli_verbose=2', '-eluar while(get_flash_mode()<2) do click(\"right\") end']\r\nChdkCamera[left]: Call returned:\r\n['connected: Canon PowerShot A1400, max packet size 512']\r\nChdkCamera[left]: Calling chdkptp with arguments: [u'/usr/local/lib/chdkptp/chdkptp', '-c-d=034 -b=001', '-eset cli_verbose=2', '-eluar while(get_flash_mode()<2) do click(\"right\") end']\r\nChdkCamera[right]: Call returned:\r\n['ERROR: a script is already running', 'connected: Canon PowerShot A1400, max packet size 512']\r\nChdkCamera[left]: Call returned:\r\n['connected: Canon PowerShot A1400, max packet size 512']\r\nChdkCamera[left]: Calling chdkptp with arguments: [u'/usr/local/lib/chdkptp/chdkptp', '-c-d=034 -b=001', '-eset cli_verbose=2', '-eluar set_nd_filter(2)']\r\nChdkCamera[left]: Call returned:\r\n['connected: Canon PowerShot A1400, max packet size 512']\r\nChdkCamera[left]: Calling chdkptp with arguments: [u'/usr/local/lib/chdkptp/chdkptp', '-c-d=034 -b=001', '-eset cli_verbose=2', '-eluar set_aflock(0)']\r\nChdkCamera[left]: Call returned:\r\n['connected: Canon PowerShot A1400, max packet size 512']\r\nspreads encountered an error:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/spread\", line 39, in <module>\r\n    cli.main()\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/cli.py\", line 446, in main\r\n    args.subcommand(config)\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/cli.py\", line 254, in capture\r\n    workflow.prepare_capture()\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/workflow.py\", line 163, in prepare_capture\r\n    check_futures_exceptions(futures)\r\n  File \"/usr/local/lib/python2.7/dist-packages/spreads/util.py\", line 63, in check_futures_exceptions\r\n    raise exc\r\nCHDKPTPException: ERROR: a script is already running\r\n```","created_at":"2014-02-12T00:39:10Z","updated_at":"2014-02-12T23:26:12Z","closed_at":"2014-02-12T23:26:12Z","merged_at":"2014-02-12T23:26:12Z","merge_commit_sha":"f9a9b5bfa80a2ec090eefd0ee568e31c2209e6f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jbaiter/spreads/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jbaiter/spreads/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jbaiter/spreads/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jbaiter/spreads/issues/2/comments","statuses_url":"https://api.github.com/repos/jbaiter/spreads/statuses/bb01b3e12658608b38a839dbad0c4420f43c2a8d","head":{"label":"matti-kariluoma:a1400cameradevice","ref":"a1400cameradevice","sha":"bb01b3e12658608b38a839dbad0c4420f43c2a8d","user":{"login":"matti-kariluoma","id":279868,"avatar_url":"https://gravatar.com/avatar/c7e463cb822b8fe029c2e1a9495ba83f?d=https%3A%2F%2Fidenticons.github.com%2F7270748934683274d335fcff81a9184d.png&r=x","gravatar_id":"c7e463cb822b8fe029c2e1a9495ba83f","url":"https://api.github.com/users/matti-kariluoma","html_url":"https://github.com/matti-kariluoma","followers_url":"https://api.github.com/users/matti-kariluoma/followers","following_url":"https://api.github.com/users/matti-kariluoma/following{/other_user}","gists_url":"https://api.github.com/users/matti-kariluoma/gists{/gist_id}","starred_url":"https://api.github.com/users/matti-kariluoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matti-kariluoma/subscriptions","organizations_url":"https://api.github.com/users/matti-kariluoma/orgs","repos_url":"https://api.github.com/users/matti-kariluoma/repos","events_url":"https://api.github.com/users/matti-kariluoma/events{/privacy}","received_events_url":"https://api.github.com/users/matti-kariluoma/received_events","type":"User","site_admin":false},"repo":{"id":15656460,"name":"spreads","full_name":"matti-kariluoma/spreads","owner":{"login":"matti-kariluoma","id":279868,"avatar_url":"https://gravatar.com/avatar/c7e463cb822b8fe029c2e1a9495ba83f?d=https%3A%2F%2Fidenticons.github.com%2F7270748934683274d335fcff81a9184d.png&r=x","gravatar_id":"c7e463cb822b8fe029c2e1a9495ba83f","url":"https://api.github.com/users/matti-kariluoma","html_url":"https://github.com/matti-kariluoma","followers_url":"https://api.github.com/users/matti-kariluoma/followers","following_url":"https://api.github.com/users/matti-kariluoma/following{/other_user}","gists_url":"https://api.github.com/users/matti-kariluoma/gists{/gist_id}","starred_url":"https://api.github.com/users/matti-kariluoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matti-kariluoma/subscriptions","organizations_url":"https://api.github.com/users/matti-kariluoma/orgs","repos_url":"https://api.github.com/users/matti-kariluoma/repos","events_url":"https://api.github.com/users/matti-kariluoma/events{/privacy}","received_events_url":"https://api.github.com/users/matti-kariluoma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matti-kariluoma/spreads","description":"Workflow assistant for camera-based book digitization","fork":true,"url":"https://api.github.com/repos/matti-kariluoma/spreads","forks_url":"https://api.github.com/repos/matti-kariluoma/spreads/forks","keys_url":"https://api.github.com/repos/matti-kariluoma/spreads/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matti-kariluoma/spreads/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matti-kariluoma/spreads/teams","hooks_url":"https://api.github.com/repos/matti-kariluoma/spreads/hooks","issue_events_url":"https://api.github.com/repos/matti-kariluoma/spreads/issues/events{/number}","events_url":"https://api.github.com/repos/matti-kariluoma/spreads/events","assignees_url":"https://api.github.com/repos/matti-kariluoma/spreads/assignees{/user}","branches_url":"https://api.github.com/repos/matti-kariluoma/spreads/branches{/branch}","tags_url":"https://api.github.com/repos/matti-kariluoma/spreads/tags","blobs_url":"https://api.github.com/repos/matti-kariluoma/spreads/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matti-kariluoma/spreads/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matti-kariluoma/spreads/git/refs{/sha}","trees_url":"https://api.github.com/repos/matti-kariluoma/spreads/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matti-kariluoma/spreads/statuses/{sha}","languages_url":"https://api.github.com/repos/matti-kariluoma/spreads/languages","stargazers_url":"https://api.github.com/repos/matti-kariluoma/spreads/stargazers","contributors_url":"https://api.github.com/repos/matti-kariluoma/spreads/contributors","subscribers_url":"https://api.github.com/repos/matti-kariluoma/spreads/subscribers","subscription_url":"https://api.github.com/repos/matti-kariluoma/spreads/subscription","commits_url":"https://api.github.com/repos/matti-kariluoma/spreads/commits{/sha}","git_commits_url":"https://api.github.com/repos/matti-kariluoma/spreads/git/commits{/sha}","comments_url":"https://api.github.com/repos/matti-kariluoma/spreads/comments{/number}","issue_comment_url":"https://api.github.com/repos/matti-kariluoma/spreads/issues/comments/{number}","contents_url":"https://api.github.com/repos/matti-kariluoma/spreads/contents/{+path}","compare_url":"https://api.github.com/repos/matti-kariluoma/spreads/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matti-kariluoma/spreads/merges","archive_url":"https://api.github.com/repos/matti-kariluoma/spreads/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matti-kariluoma/spreads/downloads","issues_url":"https://api.github.com/repos/matti-kariluoma/spreads/issues{/number}","pulls_url":"https://api.github.com/repos/matti-kariluoma/spreads/pulls{/number}","milestones_url":"https://api.github.com/repos/matti-kariluoma/spreads/milestones{/number}","notifications_url":"https://api.github.com/repos/matti-kariluoma/spreads/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matti-kariluoma/spreads/labels{/name}","releases_url":"https://api.github.com/repos/matti-kariluoma/spreads/releases{/id}","created_at":"2014-01-05T18:38:23Z","updated_at":"2014-02-12T23:26:12Z","pushed_at":"2014-02-12T19:05:11Z","git_url":"git://github.com/matti-kariluoma/spreads.git","ssh_url":"git@github.com:matti-kariluoma/spreads.git","clone_url":"https://github.com/matti-kariluoma/spreads.git","svn_url":"https://github.com/matti-kariluoma/spreads","homepage":"","size":7655,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"jbaiter:master","ref":"master","sha":"e95b579d91e882ceb17c54fafa440a523df993f7","user":{"login":"jbaiter","id":608610,"avatar_url":"https://gravatar.com/avatar/dd77541b61d10aa5f3304463a5f63427?d=https%3A%2F%2Fidenticons.github.com%2F36a09b5a1cf1bd5c25e00ac4c4dd509f.png&r=x","gravatar_id":"dd77541b61d10aa5f3304463a5f63427","url":"https://api.github.com/users/jbaiter","html_url":"https://github.com/jbaiter","followers_url":"https://api.github.com/users/jbaiter/followers","following_url":"https://api.github.com/users/jbaiter/following{/other_user}","gists_url":"https://api.github.com/users/jbaiter/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaiter/subscriptions","organizations_url":"https://api.github.com/users/jbaiter/orgs","repos_url":"https://api.github.com/users/jbaiter/repos","events_url":"https://api.github.com/users/jbaiter/events{/privacy}","received_events_url":"https://api.github.com/users/jbaiter/received_events","type":"User","site_admin":false},"repo":{"id":15659767,"name":"spreads","full_name":"jbaiter/spreads","owner":{"login":"jbaiter","id":608610,"avatar_url":"https://gravatar.com/avatar/dd77541b61d10aa5f3304463a5f63427?d=https%3A%2F%2Fidenticons.github.com%2F36a09b5a1cf1bd5c25e00ac4c4dd509f.png&r=x","gravatar_id":"dd77541b61d10aa5f3304463a5f63427","url":"https://api.github.com/users/jbaiter","html_url":"https://github.com/jbaiter","followers_url":"https://api.github.com/users/jbaiter/followers","following_url":"https://api.github.com/users/jbaiter/following{/other_user}","gists_url":"https://api.github.com/users/jbaiter/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaiter/subscriptions","organizations_url":"https://api.github.com/users/jbaiter/orgs","repos_url":"https://api.github.com/users/jbaiter/repos","events_url":"https://api.github.com/users/jbaiter/events{/privacy}","received_events_url":"https://api.github.com/users/jbaiter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbaiter/spreads","description":"Modular workflow assistant for book digitization","fork":true,"url":"https://api.github.com/repos/jbaiter/spreads","forks_url":"https://api.github.com/repos/jbaiter/spreads/forks","keys_url":"https://api.github.com/repos/jbaiter/spreads/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbaiter/spreads/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbaiter/spreads/teams","hooks_url":"https://api.github.com/repos/jbaiter/spreads/hooks","issue_events_url":"https://api.github.com/repos/jbaiter/spreads/issues/events{/number}","events_url":"https://api.github.com/repos/jbaiter/spreads/events","assignees_url":"https://api.github.com/repos/jbaiter/spreads/assignees{/user}","branches_url":"https://api.github.com/repos/jbaiter/spreads/branches{/branch}","tags_url":"https://api.github.com/repos/jbaiter/spreads/tags","blobs_url":"https://api.github.com/repos/jbaiter/spreads/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbaiter/spreads/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbaiter/spreads/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbaiter/spreads/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbaiter/spreads/statuses/{sha}","languages_url":"https://api.github.com/repos/jbaiter/spreads/languages","stargazers_url":"https://api.github.com/repos/jbaiter/spreads/stargazers","contributors_url":"https://api.github.com/repos/jbaiter/spreads/contributors","subscribers_url":"https://api.github.com/repos/jbaiter/spreads/subscribers","subscription_url":"https://api.github.com/repos/jbaiter/spreads/subscription","commits_url":"https://api.github.com/repos/jbaiter/spreads/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbaiter/spreads/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbaiter/spreads/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbaiter/spreads/issues/comments/{number}","contents_url":"https://api.github.com/repos/jbaiter/spreads/contents/{+path}","compare_url":"https://api.github.com/repos/jbaiter/spreads/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbaiter/spreads/merges","archive_url":"https://api.github.com/repos/jbaiter/spreads/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbaiter/spreads/downloads","issues_url":"https://api.github.com/repos/jbaiter/spreads/issues{/number}","pulls_url":"https://api.github.com/repos/jbaiter/spreads/pulls{/number}","milestones_url":"https://api.github.com/repos/jbaiter/spreads/milestones{/number}","notifications_url":"https://api.github.com/repos/jbaiter/spreads/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbaiter/spreads/labels{/name}","releases_url":"https://api.github.com/repos/jbaiter/spreads/releases{/id}","created_at":"2014-01-05T22:16:18Z","updated_at":"2014-02-12T23:14:23Z","pushed_at":"2014-02-12T23:26:12Z","git_url":"git://github.com/jbaiter/spreads.git","ssh_url":"git@github.com:jbaiter/spreads.git","clone_url":"https://github.com/jbaiter/spreads.git","svn_url":"https://github.com/jbaiter/spreads","homepage":"","size":8049,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jbaiter/spreads/pulls/2"},"html":{"href":"https://github.com/jbaiter/spreads/pull/2"},"issue":{"href":"https://api.github.com/repos/jbaiter/spreads/issues/2"},"comments":{"href":"https://api.github.com/repos/jbaiter/spreads/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jbaiter/spreads/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jbaiter/spreads/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jbaiter/spreads/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jbaiter/spreads/statuses/bb01b3e12658608b38a839dbad0c4420f43c2a8d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jbaiter","id":608610,"avatar_url":"https://gravatar.com/avatar/dd77541b61d10aa5f3304463a5f63427?d=https%3A%2F%2Fidenticons.github.com%2F36a09b5a1cf1bd5c25e00ac4c4dd509f.png&r=x","gravatar_id":"dd77541b61d10aa5f3304463a5f63427","url":"https://api.github.com/users/jbaiter","html_url":"https://github.com/jbaiter","followers_url":"https://api.github.com/users/jbaiter/followers","following_url":"https://api.github.com/users/jbaiter/following{/other_user}","gists_url":"https://api.github.com/users/jbaiter/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaiter/subscriptions","organizations_url":"https://api.github.com/users/jbaiter/orgs","repos_url":"https://api.github.com/users/jbaiter/repos","events_url":"https://api.github.com/users/jbaiter/events{/privacy}","received_events_url":"https://api.github.com/users/jbaiter/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":4,"additions":3,"deletions":1,"changed_files":2}}