{"action":"opened","issue":{"url":"https://api.github.com/repos/zooba/vsts-python-tasks/issues/7","repository_url":"https://api.github.com/repos/zooba/vsts-python-tasks","labels_url":"https://api.github.com/repos/zooba/vsts-python-tasks/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/zooba/vsts-python-tasks/issues/7/comments","events_url":"https://api.github.com/repos/zooba/vsts-python-tasks/issues/7/events","html_url":"https://github.com/zooba/vsts-python-tasks/issues/7","id":337499305,"node_id":"MDU6SXNzdWUzMzc0OTkzMDU=","number":7,"title":"Install Python is not able to find nuget in PATH on TFS 2017 UP3.1","user":{"login":"spashx","id":25369377,"node_id":"MDQ6VXNlcjI1MzY5Mzc3","avatar_url":"https://avatars2.githubusercontent.com/u/25369377?v=4","gravatar_id":"","url":"https://api.github.com/users/spashx","html_url":"https://github.com/spashx","followers_url":"https://api.github.com/users/spashx/followers","following_url":"https://api.github.com/users/spashx/following{/other_user}","gists_url":"https://api.github.com/users/spashx/gists{/gist_id}","starred_url":"https://api.github.com/users/spashx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spashx/subscriptions","organizations_url":"https://api.github.com/users/spashx/orgs","repos_url":"https://api.github.com/users/spashx/repos","events_url":"https://api.github.com/users/spashx/events{/privacy}","received_events_url":"https://api.github.com/users/spashx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T12:33:27Z","updated_at":"2018-07-02T12:33:27Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nWe installed Python build tools version 0.18178.1 on our on prem TFS 2017 UP3.1.\r\nBuild agent is running 2.122.1 agents on Windows 2012 R2.\r\nNuget is already available in the system path, and available with Command line calls.\r\nWhen launching the \"Install Python\", the step fails to find nuget.\r\nIt seems to come from InstallPython.ps1.\r\n\r\nDetails hereafter:\r\n- one CmdLine step calling \"where nuget.exe\" finds nuget.\r\n- one Powershell step calling \"Get-Command 'nuget.exe'\" then Get-Command 'nuget.exe' -EA 0 finds nuget, but ( Get-Command 'nuget.exe' -EA 0).Source returns nothing.\r\n- Install Python fails.\r\n\r\nDo you assume a given version of Powershell or specific permissions ?\r\nThanks.\r\n\r\n```\r\n******************************************************************************\r\nStarting: where nuget (cmd)\r\n******************************************************************************\r\n==============================================================================\r\nTask         : Command Line\r\nDescription  : Run a command line with arguments\r\nVersion      : 1.1.3\r\nAuthor       : Microsoft Corporation\r\nHelp         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)\r\n==============================================================================\r\nwhere nuget.exe\r\nD:\\Program Files\\Nuget451\\nuget.exe\r\n******************************************************************************\r\nFinishing: where nuget (cmd)\r\n******************************************************************************\r\n******************************************************************************\r\nStarting: PowerShell Script\r\n******************************************************************************\r\n==============================================================================\r\nTask         : PowerShell\r\nDescription  : Run a PowerShell script\r\nVersion      : 1.2.3\r\nAuthor       : Microsoft Corporation\r\nHelp         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613736)\r\n==============================================================================\r\n. 'D:\\agent2\\agent\\_work\\_temp\\f574cc00-7696-4c2d-a357-156a67260362.ps1'\r\nCommandType     Name                                               ModuleName                                          \r\n-----------     ----                                               ----------                                          \r\nApplication     nuget.exe                                                                                              \r\nApplication     nuget.exe                                                                                              \r\n******************************************************************************\r\nFinishing: PowerShell Script\r\n******************************************************************************\r\n******************************************************************************\r\nStarting: Install Python\r\n******************************************************************************\r\n==============================================================================\r\nTask         : Install Python on Windows\r\nDescription  : Installs one or more Python versions into your build environment\r\nVersion      : 1.0.12\r\nAuthor       : Steve Dower\r\nHelp         : The *Install Python* task will install Python using a package from [nuget.org](https://nuget.org) and add it to `PATH`. These packages are part of the official release of CPython.\r\n\r\nMost other tasks assume you have already run this task to install the desired runtime. The folder where they are installed is customizable, but be aware that you may need to update subsequent task configuration if you change this.\r\n\r\nThe recommended configuration for using this task with multiple versions of Python is to enable multi-configuration on the phase and specify the version number as a Multiplier. See [the documentation](https://go.microsoft.com/fwlink/?linkid=835763) for information about parallel execution.\r\n\r\n(Note that the first-party *Use Python Version* task is preferable on the Hosted queues and works on all platforms, though as of 02 May 2018 is not fully available.)\r\n==============================================================================\r\nUnable to locate nuget.exe. Use the Nuget Tool Installer task to ensure it is available.\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"spashx"}}