Hacker Newsnew | past | comments | ask | show | jobs | submit | tomaskafka's commentslogin

So many times I have come onto a library or tool that would fix my problem, and then realized “oh crap, it’s in Python, I don’t want to spend few hours building a brittle environment for it only for that env to break next time I need to use it” - and went to look for a worse solution in better language.

I really don't get this. I can count on no hands the number of times I've had problems simply going "pip install cool-thing-i-found".

Sure, this is just my experience, but I use Python a lot and use a lot of tools written in Python.


If you can install it with `pip install program-name` it's usually packaged well enough to just work. But if it's a random github repository with a requirements.txt with no or very few version numbers chances are that just running `pip install -r requirements.txt` will lead you down an hour+ rabbit hole of downgrading both your venv's python version and various packages until you get a combination that is close enough to the author`s venv to actually work

Usually happens to me when I find code for some research paper. Even something that's just three months old can be a real pain to get running


I don't disagree with you, but in my experience even having a requirements.txt file is a luxury when it comes to scientific Python code: A lot of the time I end up having to figure out dependencies based purely on whatever the script is importing

Seconded. Python, even with virtualenv stuff, has never been bad. There have been a few things that have been annoying especially when you need system libraries (e.g. libav for PyAV to work, etc.), but you have the same issue with every other ecosystem unless the packages come with all batteries included.

To be fair to the GP comment, this is how I feel about Ruby software. I am not nearly as practiced at installing and upgrading in that ecosystem so if there was a way to install tools in a way that lets me easily and completely blow them away, I would be happier to use them.


I still have nightmares about nokogiri gem installs from back in the day :/

This mentality is exactly what many people do wrong in Python. I mean, for a one-off, yes you can have setup instructions like that. But if you want things to work for other people, on other machines, you better include a lock file with checksums. And `pip install whatever` simply does not cut it there.

Recently (like for several years), with most packages providing wheels for most platforms, it tends to be less of a problem of things actually working, except for dependencies where the platform specifiers used by Python are insufficient to select the right build of the dependency, like PyTorch.

Recently I've been playing with Chatterbox and the setup is a nightmare. It specifically wants Python 3.11. You have 3.12? TS. Try to do pip install and you'll get an error about pkg-config calling a function that no longer exists, or something like that.

God, I hate Python. Why is it so hard to not break code?


like democracy, it's the worst programming language except vs everything else...

Thanks! I found a funny hack: DVD logos generate stimulation per bounce, so ... let them fly for a few seconds, then resize window to small size and back. Lot of bounces as the logos get caught by the moving edge :).

I'm so glad there are still makers who know this is what the internet was made for! Be quirky at scale :).

If it’s been lying in a drawer for a year, 99% chance the battery is dead


Yes it does, and the process of regular re-raising it is fascinating.


Isn't this the idea with PWAs (where runtime = browser)? I struggle to find Electron apps that couldn't be run as pinned web apps.


the tricky bit is filesystem access.


I can’t live without Dock appearing without delay:

Show dock instantly:

defaults write com.apple.Dock autohide-delay -float 0.0001; killall Dock

Undo:

defaults delete com.apple.Dock autohide-delay; killall Dock


The real hack is to learn to never use the dock, minimize it as small as possible and depending on your macOS version set an ultra long delay for it to show on hover.

It’s a waste of space; everything you need from it can be accomplished with your keyboard.


What's your keyboard way of relaunching a recent so that's part of a dock section?


I was quite a bit surprised how old versions are used even in software like Cursor that's updated almost daily.


I just checked latest Ollama and it seems to be native (or at least not electron).


The new Ollama GUI use system webview.


Thank you, but I'd like to keep it simple, and we only need to detect electron apps and extract version from last 4 versions.


It’s great to have multiple approaches and more highlight on this problem.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: