ROCm / rocprofiler-compute

Advanced Profiling and Analytics for AMD Hardware
https://rocm.docs.amd.com/projects/omniperf/en/latest/
MIT License
135 stars 49 forks source link

Check Python version on application launch #393

Closed dgaliffiAMD closed 2 months ago

dgaliffiAMD commented 2 months ago

On RHEL8, Omniperf fails to load after installing via the RPM package, because the default python3 installed is version 3.6.

RPM-build changes the "shebang" from #!/usr/bin/env python3 to #!/usr/libexec/platform-python, which interfered with setting virtual environments through conda.

Added an additional dependency check on launch. Just before we check for the PIP dependencies, we will now check the version of python being used. If it is less than 3.8, then output a more readable message, rather than a cryptic import failure that is currently seen.

Add a note to our "install via package manager" section in documentation.

Also, fixed some python linter warnings.

Internal ticket SWDEV-477233.