Skip to content

🐛Pip installation fails to get_version() #403

@meisZWFLZ

Description

@meisZWFLZ

Steps to reproduce:

The following command:

docker run alpine:latest sh -c 'apk add --no-cache python3 pipx && pipx install pros-cli && PATH="/root/.local/bin:${PATH}" && pros'

results in:

Could not determine version
Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/pros-cli/lib/python3.12/site-packages/pros/cli/main.py", line 69, in main
    .format(version = get_version()), ctx_obj)
                      ^^^^^^^^^^^^^
  File "/root/.local/share/pipx/venvs/pros-cli/lib/python3.12/site-packages/pros/common/utils.py", line 43, in get_version
    raise RuntimeError('Could not determine version')
RuntimeError: Could not determine version

Whereas the following command successfully prints the typical output:

docker run alpine:latest sh -c 'apk add --no-cache python3 pipx && pipx install pros-cli --preinstall "setuptools<81" && PATH="/root/.local/bin:${PATH}" && pros'

System information:

Host Operating System: macOS 26.3.1, M4 chip
pros-cli verison: 3.5.6

Additional Information

Screenshots/Output Dumps/Stack Traces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions