Skip to content

virtualenv_starter() does not find python locations with an unusual python version #1704

@lschneiderbauer

Description

@lschneiderbauer

The way virtualenv_starter() is currently implemented, python locations with python versions that include characters at the end are discarded.
E.g. a python version with

$ python -EV
3.10.16+PRE

or similar is not recognized.

The reason is probably the use of numeric_version() in the find_starters() function inside virtualenv_starter().

I stumbled across this issue because my company appends a company-branding tag to the python version, and reticulate has problems detecting my python installations.

If you insist on having numeric version, would it be a reasonable solution to trim all the characters in the end before trying to convert to a numeric version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions