{"action":"closed","issue":{"url":"https://api.github.com/repos/oracle/oci-cli/issues/53","repository_url":"https://api.github.com/repos/oracle/oci-cli","labels_url":"https://api.github.com/repos/oracle/oci-cli/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/oracle/oci-cli/issues/53/comments","events_url":"https://api.github.com/repos/oracle/oci-cli/issues/53/events","html_url":"https://github.com/oracle/oci-cli/issues/53","id":306493223,"node_id":"MDU6SXNzdWUzMDY0OTMyMjM=","number":53,"title":"Issue: Lines 76 and 77 fail for $PythonExecutable value containing non-alphanumeric characters like ), ( etc..","user":{"login":"vcsekhar","id":1406424,"node_id":"MDQ6VXNlcjE0MDY0MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1406424?v=4","gravatar_id":"","url":"https://api.github.com/users/vcsekhar","html_url":"https://github.com/vcsekhar","followers_url":"https://api.github.com/users/vcsekhar/followers","following_url":"https://api.github.com/users/vcsekhar/following{/other_user}","gists_url":"https://api.github.com/users/vcsekhar/gists{/gist_id}","starred_url":"https://api.github.com/users/vcsekhar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcsekhar/subscriptions","organizations_url":"https://api.github.com/users/vcsekhar/orgs","repos_url":"https://api.github.com/users/vcsekhar/repos","events_url":"https://api.github.com/users/vcsekhar/events{/privacy}","received_events_url":"https://api.github.com/users/vcsekhar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-19T14:45:43Z","updated_at":"2018-06-01T16:21:31Z","closed_at":"2018-06-01T16:21:31Z","author_association":"NONE","body":"Issue: Lines 76 and 77 fail for $PythonExecutable value containing non-alphanumeric characters like ), ( etc..\r\n\r\nSolution that worked for me:\r\n\r\nLines 76 and 77 to be changed to :\r\n\r\n```# If you prefer to use $EscapedExecutable through out, then \r\n  $EscapedExecutable = $PythonExecutable \r\n  $PythonVersion = Invoke-Expression \"& `\"$EscapedExecutable`\" -c 'import platform;print(platform.python_version())'\"\r\n  ```\r\n\r\nExplanation:\r\n   Instead of trying to escape just spaces (like the current logic), make powershell to call/invoke (using & ) a not-escaped value as is by enclosing it in between ` `.\r\n\r\nI forked the install.ps1 with my fix included for your review-and-merge-easiness."}}
{"actor":{"display_login":"vish1"}}