NVIDIA / spark-rapids-tools

User tools for Spark RAPIDS
Apache License 2.0
50 stars 37 forks source link

[FEA] Tool should exit gracefully if the python version is not supported #1057

Open viadea opened 4 months ago

viadea commented 4 months ago

Is your feature request related to a problem? Please describe. Currently if the Python version is not supported(eg. > 3.10), it will fail in the very end when collecting results saying :

No such file or directory: '/home/xxx/.venv/lib/python3.11/site-packages/spark_rapids_pytools/resources/templates/cluster_template/CspEnv.DATABRICKS_AWS.ms'

Describe the solution you'd like Tool should exit gracefully in the very beginning, such as below messages

Exiting due to unsupported python version. The supported python version is 3.8, 3.9 and 3.10
amahussein commented 4 months ago

We should consider supporting newer version of python. It should not be a lot of work to do.