Unable to deploy Python

Open
#300 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
powershell
Domain
devops

Research direction

Start with the WinGetPackage Python.Python.3.10 configuration and compare the local Start-GuestConfigurationPackageRemediation result with Get-GuestConfigurationPackageComplianceStatus. Reproduce the package and policy flow on Windows 10 with GuestConfiguration 4.5.0; done means the Python package is reported compliant after remediation, not only installed locally.

Written by the indexing model from the issue text.

Description

Details of the scenario you tried and the problem that is occurring

I am trying to distribute Python using the same pattern as I have successfully distributed other applications - but it is not working. I have tried running remediation tasks which complete successfully however when I run a
Get-GuestConfigurationPackageComplianceStatus against the package it continues to show as not compliant

Start-GuestConfigurationPackageRemediation when run locally will execute the install without issue

My configuration is below

As above, I can compile, create the package and policy without issue. It works when run locally

Verbose logs showing the problem

n/a

Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (if applicable)

Configuration Install
{
    Import-DscResource -ModuleName Microsoft.WinGet.DSC

    node localhost
    {
        WinGetPackage Python.Python.3.10
        {
            Id = 'Python.Python.3.10'
            source = 'winget'
            InstallMode = 'silent'
        }


    }
}

$appName = "Python3"
$version = "v1"
Install -OutputPath .\CompiledMOF\${appName}_${version}
The operating system the target node is running

Microsoft Windows [Version 10.0.22631.4037]

Version and build of PowerShell the target node is running

Name Value


PSVersion 7.4.4
PSEdition Core
GitCommitId 7.4.4
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Version of the module that was used

Name Version Path


GuestConfiguration 4.5.0 C:\Program Files\WindowsPowerShell\Modules\GuestConfiguration\4.5.0\GuestConfiguration.psd1

Dominant language
PowerShell
Stars
8
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/GuestConfiguration

All issues in Azure/GuestConfiguration

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.