Re:I accidentally used YAML.parse instead of JSON.parse and ...
by dheera on Monday January 24, 2022 @06:59PM
(#30065929)
This is why there should be a way to automatically install software into a sandboxed location, e.g. a virtualenv.
Considering we are having software drive cars today it should be trivial and I would say even arguably expected that software should be able to autonomously "figure out" how to run itself and avoid conflicts with other software since that's a trivial task in comparison to navigating city streets.
I've seen that kind of approach cause a ton of issues the moment that the software was used in a different environment than the author expected.
It's much better IMO to fail with a message about how to install the missing dependency.