Re:I accidentally used YAML.parse instead of JSON.parse and ...
by dheera on Sunday January 23, 2022 @08:55PM
(#30052770)
[ Parent
| on HN ]
Re:I accidentally used YAML.parse instead of JSON.parse and ...
by tomjakubowski on Sunday January 23, 2022 @09:08PM
(#30052848)
Great idea.
pip install --user yaml
increases the chances it will work
Re:I accidentally used YAML.parse instead of JSON.parse and ...
by nrclark on Monday January 24, 2022 @08:10AM
(#30057133)
A note to readers: it's not always a good idea to put automated software installation in a place that users don't expect it.
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.
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.
Re:I accidentally used YAML.parse instead of JSON.parse and ...
by imoverclocked on Sunday January 23, 2022 @09:41PM
(#30053092)
Brilliant! What license is this published under?