dstack
dstack copied to clipboard
[Bug]: Unexpected error if system Python version is unknown
dstack version
master
Steps to reproduce
- Install dstack and run
dstack serveron a Python version not listed inPythonVersion - Run a job without specifying
pythonorimagein config file$ cat hello.yml type: task commands: - python -c 'print("Hello dstack!")' $ dstack run . -f hello.yml
Expected result
The user is notified that they should specify the Python version in config file, as their system Python version is not supported
Actual result
CLI:
Unexpected dstack server error
Server logs:
ValueError: '3.12' is not a valid PythonVersion