{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/issues/297","labels_url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/issues/297/comments","events_url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/issues/297/events","html_url":"https://github.com/Esri/solutions-geoprocessing-toolbox/pull/297","id":101703570,"number":297,"title":"Fixed for ArcGIS Pro","user":{"login":"garys-esri","id":3091666,"avatar_url":"https://avatars.githubusercontent.com/u/3091666?v=3","gravatar_id":"","url":"https://api.github.com/users/garys-esri","html_url":"https://github.com/garys-esri","followers_url":"https://api.github.com/users/garys-esri/followers","following_url":"https://api.github.com/users/garys-esri/following{/other_user}","gists_url":"https://api.github.com/users/garys-esri/gists{/gist_id}","starred_url":"https://api.github.com/users/garys-esri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garys-esri/subscriptions","organizations_url":"https://api.github.com/users/garys-esri/orgs","repos_url":"https://api.github.com/users/garys-esri/repos","events_url":"https://api.github.com/users/garys-esri/events{/privacy}","received_events_url":"https://api.github.com/users/garys-esri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-18T17:07:58Z","updated_at":"2015-08-19T14:07:18Z","closed_at":"2015-08-18T20:21:01Z","pull_request":{"url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/pulls/297","html_url":"https://github.com/Esri/solutions-geoprocessing-toolbox/pull/297","diff_url":"https://github.com/Esri/solutions-geoprocessing-toolbox/pull/297.diff","patch_url":"https://github.com/Esri/solutions-geoprocessing-toolbox/pull/297.patch"},"body":"1. The existing code uses Python 2.x try/except syntax, which cannot work in ArcGIS Pro because of Python 3.x.\r\n\r\n2. The existing code would only work for ArcGIS Pro 1.0, not 1.1. The new code uses a different way of checking that should work for any ArcGIS Pro version."},"comment":{"url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/issues/comments/132610316","html_url":"https://github.com/Esri/solutions-geoprocessing-toolbox/pull/297#issuecomment-132610316","issue_url":"https://api.github.com/repos/Esri/solutions-geoprocessing-toolbox/issues/297","id":132610316,"user":{"login":"mfunk","id":3093182,"avatar_url":"https://avatars.githubusercontent.com/u/3093182?v=3","gravatar_id":"","url":"https://api.github.com/users/mfunk","html_url":"https://github.com/mfunk","followers_url":"https://api.github.com/users/mfunk/followers","following_url":"https://api.github.com/users/mfunk/following{/other_user}","gists_url":"https://api.github.com/users/mfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/mfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfunk/subscriptions","organizations_url":"https://api.github.com/users/mfunk/orgs","repos_url":"https://api.github.com/users/mfunk/repos","events_url":"https://api.github.com/users/mfunk/events{/privacy}","received_events_url":"https://api.github.com/users/mfunk/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T14:07:18Z","updated_at":"2015-08-19T14:07:18Z","body":"@pshowalter is right. Anything arcpy.mapping or arcpy.mp should be skipped if run outside of ArcMap or ArcGIS Pro. I KNOW we've got a few scripts floating around the repo that don't.... though I'm not going to start a quest to hunt for them anytime soon. :grinning:"}}