prequ icon indicating copy to clipboard operation
prequ copied to clipboard

Improve error message for "wheel not found"

Open suutari-ai opened this issue 5 years ago • 1 comments

Currently, if wheel build fails to produce the wheel file (e.g. because of some build error), a very confusing IndexError is generated. It should rather generate a proper error message with better details of what went wrong.

The IndexError is caused by get_wheels returning an empty list here: https://github.com/suutari/prequ/blob/ed3b7984c43fa3bd00e089d3fdd0d9e5af0cdc69/prequ/scripts/build_wheels.py#L51

Thanks to @RauliL and @inesjelovac for reporting this to me.

suutari-ai avatar Mar 28 '19 10:03 suutari-ai

This might also be caused by misspelling the requirement name in the source requirements so it might be a good idea to add a hint to the error message such as "Is the requirement name spelled correctly?".

suutari-ai avatar Mar 28 '19 11:03 suutari-ai