omnilib / thx

Simple, composable command runner for Python projects

Home Page:https://thx.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected version string doesn't show stderr

thatch opened this issue · comments

Description

This bugreport is related to this error message:

[05/22/22 07:00:31] WARNING  WARNING: running `/usr/local/bin/python3.9 -V` gave unexpected version string: ''                                    context.py:59
                    WARNING  WARNING: missing Python versions: ['3.9']                                                                           context.py:126

The message is mostly correct, in that my copy of 3.9 is not functional and should be skipped. But the version string: '' is not as helpful as it could be. Is there a reason to not include what gets printed on stderr in the error message?

$ /usr/local/bin/python3.9 -V
/usr/local/bin/python3.9: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

Details

  • OS: Linux
  • Python version: any
  • thx version: 0.5.0
  • Can you repro on main? probably
  • Can you repro in a clean virtualenv? yes