{"action":"created","comment":{"url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/comments/93973081","pull_request_review_id":14503869,"id":93973081,"diff_hunk":"@@ -0,0 +1,59 @@\n+#!/usr/bin/env python\n+\"\"\"\n+Check for required dependencies for the workshop.\n+Usage::\n+  % python check_env.py\n+\"\"\"\n+\n+import sys\n+from distutils.version import LooseVersion\n+\n+\n+def check_package(package_name, minimum_version=None):\n+    errors = False\n+    try:\n+        pkg = __import__(package_name)\n+    except ImportError as err:\n+        print('Error: Failed import: {0}'.format(err))\n+        errors = True\n+    else:\n+        if minimum_version is not None:\n+            if package_name == 'xlwt':\n+                installed_version = pkg.__VERSION__\n+            else:\n+                installed_version = pkg.__version__\n+            if (LooseVersion(installed_version) <\n+                    LooseVersion(str(minimum_version))):\n+                print('Error: {0} version {1} or later is required, you '\n+                      'have version {2}'.format(package_name, minimum_version,\n+                                                installed_version))\n+                errors = True\n+    return errors\n+\n+pkgs = {'IPython': '5.1',\n+        'notebook': '4.2.3',\n+        'numpy': '1.6',\n+        'scipy': '0.15',\n+        'matplotlib': '1.3',\n+        'astropy': '1.2.1',\n+        'photutils': '0.3',\n+        'skimage': '0.12.3',\n+        'pandas': '0.18.1',\n+        'glue': '0.8.2',\n+        'imexam': '0.6.2',\n+        'astroquery': '0.3',\n+        'ginga': '2.5.20161005204600'\n+        }\n+\n+if sys.platform.startswith('win'):\n+    pkgs.pop('imexam')\n+    pkgs.pop('ginga')\n+\n+errors = []\n+for package_name, min_version in pkgs.items():\n+    errors.append(check_package(package_name, minimum_version=min_version))\n+if any(errors):\n+    print('\\nThere are errors that you must resolve before running the '","path":"check_env.py","position":56,"original_position":56,"commit_id":"216468c800ade26022bf6eda52cdd7d41fb3a0ba","original_commit_id":"216468c800ade26022bf6eda52cdd7d41fb3a0ba","user":{"login":"sosey","id":503615,"avatar_url":"https://avatars.githubusercontent.com/u/503615?v=3","gravatar_id":"","url":"https://api.github.com/users/sosey","html_url":"https://github.com/sosey","followers_url":"https://api.github.com/users/sosey/followers","following_url":"https://api.github.com/users/sosey/following{/other_user}","gists_url":"https://api.github.com/users/sosey/gists{/gist_id}","starred_url":"https://api.github.com/users/sosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosey/subscriptions","organizations_url":"https://api.github.com/users/sosey/orgs","repos_url":"https://api.github.com/users/sosey/repos","events_url":"https://api.github.com/users/sosey/events{/privacy}","received_events_url":"https://api.github.com/users/sosey/received_events","type":"User","site_admin":false},"body":"The errors are printed as you go:\r\n```\r\n(astroconda)bash-3.2$ python check_env.py \r\nError: Failed import: No module named 'ds9'\r\nError: photutils version 0.3 or later is required, you have version 0.2.2\r\nError: Failed import: No module named 'astroquery'\r\n\r\nThere are errors that you must resolve before running the tutorials.\r\n```","created_at":"2016-12-27T21:39:53Z","updated_at":"2016-12-27T21:39:53Z","html_url":"https://github.com/spacetelescope/aas229_workshop/pull/3#discussion_r93973081","pull_request_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/comments/93973081"},"html":{"href":"https://github.com/spacetelescope/aas229_workshop/pull/3#discussion_r93973081"},"pull_request":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3","id":99479152,"html_url":"https://github.com/spacetelescope/aas229_workshop/pull/3","diff_url":"https://github.com/spacetelescope/aas229_workshop/pull/3.diff","patch_url":"https://github.com/spacetelescope/aas229_workshop/pull/3.patch","issue_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues/3","number":3,"state":"open","locked":false,"title":"Addition of basic setup information","user":{"login":"sosey","id":503615,"avatar_url":"https://avatars.githubusercontent.com/u/503615?v=3","gravatar_id":"","url":"https://api.github.com/users/sosey","html_url":"https://github.com/sosey","followers_url":"https://api.github.com/users/sosey/followers","following_url":"https://api.github.com/users/sosey/following{/other_user}","gists_url":"https://api.github.com/users/sosey/gists{/gist_id}","starred_url":"https://api.github.com/users/sosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosey/subscriptions","organizations_url":"https://api.github.com/users/sosey/orgs","repos_url":"https://api.github.com/users/sosey/repos","events_url":"https://api.github.com/users/sosey/events{/privacy}","received_events_url":"https://api.github.com/users/sosey/received_events","type":"User","site_admin":false},"body":"- environment files added and update\r\n- basic travis test setup\r\n- scheduling updates","created_at":"2016-12-27T20:10:03Z","updated_at":"2016-12-27T21:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"709957de11f3badb32399da9ef049301bf065a0a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3/commits","review_comments_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3/comments","review_comment_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues/3/comments","statuses_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/statuses/216468c800ade26022bf6eda52cdd7d41fb3a0ba","head":{"label":"sosey:master","ref":"master","sha":"216468c800ade26022bf6eda52cdd7d41fb3a0ba","user":{"login":"sosey","id":503615,"avatar_url":"https://avatars.githubusercontent.com/u/503615?v=3","gravatar_id":"","url":"https://api.github.com/users/sosey","html_url":"https://github.com/sosey","followers_url":"https://api.github.com/users/sosey/followers","following_url":"https://api.github.com/users/sosey/following{/other_user}","gists_url":"https://api.github.com/users/sosey/gists{/gist_id}","starred_url":"https://api.github.com/users/sosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosey/subscriptions","organizations_url":"https://api.github.com/users/sosey/orgs","repos_url":"https://api.github.com/users/sosey/repos","events_url":"https://api.github.com/users/sosey/events{/privacy}","received_events_url":"https://api.github.com/users/sosey/received_events","type":"User","site_admin":false},"repo":{"id":74168305,"name":"aas229_workshop","full_name":"sosey/aas229_workshop","owner":{"login":"sosey","id":503615,"avatar_url":"https://avatars.githubusercontent.com/u/503615?v=3","gravatar_id":"","url":"https://api.github.com/users/sosey","html_url":"https://github.com/sosey","followers_url":"https://api.github.com/users/sosey/followers","following_url":"https://api.github.com/users/sosey/following{/other_user}","gists_url":"https://api.github.com/users/sosey/gists{/gist_id}","starred_url":"https://api.github.com/users/sosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosey/subscriptions","organizations_url":"https://api.github.com/users/sosey/orgs","repos_url":"https://api.github.com/users/sosey/repos","events_url":"https://api.github.com/users/sosey/events{/privacy}","received_events_url":"https://api.github.com/users/sosey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sosey/aas229_workshop","description":"Using Python for Astronomical Data Analysis in the Era of JWST","fork":true,"url":"https://api.github.com/repos/sosey/aas229_workshop","forks_url":"https://api.github.com/repos/sosey/aas229_workshop/forks","keys_url":"https://api.github.com/repos/sosey/aas229_workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sosey/aas229_workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sosey/aas229_workshop/teams","hooks_url":"https://api.github.com/repos/sosey/aas229_workshop/hooks","issue_events_url":"https://api.github.com/repos/sosey/aas229_workshop/issues/events{/number}","events_url":"https://api.github.com/repos/sosey/aas229_workshop/events","assignees_url":"https://api.github.com/repos/sosey/aas229_workshop/assignees{/user}","branches_url":"https://api.github.com/repos/sosey/aas229_workshop/branches{/branch}","tags_url":"https://api.github.com/repos/sosey/aas229_workshop/tags","blobs_url":"https://api.github.com/repos/sosey/aas229_workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sosey/aas229_workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sosey/aas229_workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/sosey/aas229_workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sosey/aas229_workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/sosey/aas229_workshop/languages","stargazers_url":"https://api.github.com/repos/sosey/aas229_workshop/stargazers","contributors_url":"https://api.github.com/repos/sosey/aas229_workshop/contributors","subscribers_url":"https://api.github.com/repos/sosey/aas229_workshop/subscribers","subscription_url":"https://api.github.com/repos/sosey/aas229_workshop/subscription","commits_url":"https://api.github.com/repos/sosey/aas229_workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/sosey/aas229_workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/sosey/aas229_workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/sosey/aas229_workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/sosey/aas229_workshop/contents/{+path}","compare_url":"https://api.github.com/repos/sosey/aas229_workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sosey/aas229_workshop/merges","archive_url":"https://api.github.com/repos/sosey/aas229_workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sosey/aas229_workshop/downloads","issues_url":"https://api.github.com/repos/sosey/aas229_workshop/issues{/number}","pulls_url":"https://api.github.com/repos/sosey/aas229_workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/sosey/aas229_workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/sosey/aas229_workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sosey/aas229_workshop/labels{/name}","releases_url":"https://api.github.com/repos/sosey/aas229_workshop/releases{/id}","deployments_url":"https://api.github.com/repos/sosey/aas229_workshop/deployments","created_at":"2016-11-18T21:38:26Z","updated_at":"2016-12-27T19:59:12Z","pushed_at":"2016-12-27T20:06:01Z","git_url":"git://github.com/sosey/aas229_workshop.git","ssh_url":"git@github.com:sosey/aas229_workshop.git","clone_url":"https://github.com/sosey/aas229_workshop.git","svn_url":"https://github.com/sosey/aas229_workshop","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spacetelescope:master","ref":"master","sha":"ea723243015196fd93df1104759bf4daa5075d0f","user":{"login":"spacetelescope","id":2751928,"avatar_url":"https://avatars.githubusercontent.com/u/2751928?v=3","gravatar_id":"","url":"https://api.github.com/users/spacetelescope","html_url":"https://github.com/spacetelescope","followers_url":"https://api.github.com/users/spacetelescope/followers","following_url":"https://api.github.com/users/spacetelescope/following{/other_user}","gists_url":"https://api.github.com/users/spacetelescope/gists{/gist_id}","starred_url":"https://api.github.com/users/spacetelescope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacetelescope/subscriptions","organizations_url":"https://api.github.com/users/spacetelescope/orgs","repos_url":"https://api.github.com/users/spacetelescope/repos","events_url":"https://api.github.com/users/spacetelescope/events{/privacy}","received_events_url":"https://api.github.com/users/spacetelescope/received_events","type":"Organization","site_admin":false},"repo":{"id":69882586,"name":"aas229_workshop","full_name":"spacetelescope/aas229_workshop","owner":{"login":"spacetelescope","id":2751928,"avatar_url":"https://avatars.githubusercontent.com/u/2751928?v=3","gravatar_id":"","url":"https://api.github.com/users/spacetelescope","html_url":"https://github.com/spacetelescope","followers_url":"https://api.github.com/users/spacetelescope/followers","following_url":"https://api.github.com/users/spacetelescope/following{/other_user}","gists_url":"https://api.github.com/users/spacetelescope/gists{/gist_id}","starred_url":"https://api.github.com/users/spacetelescope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacetelescope/subscriptions","organizations_url":"https://api.github.com/users/spacetelescope/orgs","repos_url":"https://api.github.com/users/spacetelescope/repos","events_url":"https://api.github.com/users/spacetelescope/events{/privacy}","received_events_url":"https://api.github.com/users/spacetelescope/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spacetelescope/aas229_workshop","description":"Using Python for Astronomical Data Analysis in the Era of JWST (Winter AAS 2017)","fork":false,"url":"https://api.github.com/repos/spacetelescope/aas229_workshop","forks_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/forks","keys_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/teams","hooks_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/hooks","issue_events_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues/events{/number}","events_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/events","assignees_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/assignees{/user}","branches_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/branches{/branch}","tags_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/tags","blobs_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/languages","stargazers_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/stargazers","contributors_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/contributors","subscribers_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/subscribers","subscription_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/subscription","commits_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/contents/{+path}","compare_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/merges","archive_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/downloads","issues_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues{/number}","pulls_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/labels{/name}","releases_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/releases{/id}","deployments_url":"https://api.github.com/repos/spacetelescope/aas229_workshop/deployments","created_at":"2016-10-03T15:12:24Z","updated_at":"2016-12-19T16:28:06Z","pushed_at":"2016-12-27T20:10:04Z","git_url":"git://github.com/spacetelescope/aas229_workshop.git","ssh_url":"git@github.com:spacetelescope/aas229_workshop.git","clone_url":"https://github.com/spacetelescope/aas229_workshop.git","svn_url":"https://github.com/spacetelescope/aas229_workshop","homepage":"","size":35,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3"},"html":{"href":"https://github.com/spacetelescope/aas229_workshop/pull/3"},"issue":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues/3"},"comments":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/spacetelescope/aas229_workshop/statuses/216468c800ade26022bf6eda52cdd7d41fb3a0ba"}}}}
{"actor":{"display_login":"sosey"}}