Skip to content

pymanager -1 (--one) can contain unrelated output #203

@AA-Turner

Description

@AA-Turner

Install source and version

  • Installed from the Windows Store

Version: 25.0

Describe the bug

Best demonstrated via an example:

PS> uv venv venv --python=$(pymanager list 3.14 -1 -f=exe)
error: Failed to inspect Python interpreter from provided path at `Python install manager was successfully updated to 25.0.  ...\AppData\Local\Python\pythoncore-3.14-64\python.exe`
  Caused by: Failed to query Python interpreter
  Caused by: failed to query metadata of file `...\{cwd}\Python install manager was successfully updated to 25.0.  ...\AppData\Local\Python\pythoncore-3.14-64\python.exe`: The filename, directory name,
 or volume label syntax is incorrect. (os error 123)

PS> uv venv venv --python=$(pymanager list 3.14 -1 -f=exe)
Using CPython 3.14.0 interpreter at: ...\AppData\Local\Python\pythoncore-3.14-64\python.exe
Creating virtual environment at: venv
Activate with: venv\Scripts\activate

To Reproduce

Have PyManager produce unrelated text, this case due to a version update

Expected behavior

When using -1, there should be no extra output.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions