jtmoon79 / jtmoon79/PythonEmbed4Win

passing single-digit version fails

Open Beginner friendly
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
70
Forks
12
PR merge metrics
No merged PRs in 30d

Description

PS> .\PythonEmbed4Win.ps1  -Verbose -Version 3
PythonEmbed4Win.ps1: at <ScriptBlock>, PythonEmbed4Win.ps1: line 1150
at <ScriptBlock>, <No file>: line 1
PythonEmbed4Win.ps1: Cannot convert value "3" to type "System.Version". Error: "Version string portion was too short or too long. (Parameter 'input')

Though it's a bit silly to pass -Version 3, it shouldn't crash like this.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Reproduce the command shown in the issue, then inspect PythonEmbed4Win.ps1 around line 1150 where the System.Version conversion fails. Confirm the behavior for -Version 3 and verify that the command completes without the conversion error while preserving normal version handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.