snapcraft does not properly surface an error message during the pip presence checking on the second and subsequent runs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
I ran into https:/
from distutils.util import strtobool
modulenotfounde
However, while debugging this and retrying I only got this printed in the error message which was confusing because snapcraft expects this to fail:
Failed to run '/root/
I managed to trace what's going on underneath and it looks like the real exception is not properly displayed but it is about the same issue as in lp: #1864589
A full PDB trace:
https:/
The real exception that gets raised:
> /snap/snapcraft
-> raise e
(Pdb) output.lower()
'traceback (most recent call last):\n file "/root/
/usr/lib/
n__.py", line 23, in <module>\n from pip._internal.
/site-packages/
/install/
le "/root/
tions\n file "/root/
rt strtobool\