After Yet Another goddamn time when there was no goddamn way to tell that I was in the wrong goddamn fucking pyenv and broke a bunch of shit by doing a pip upgrade to a package, this sums up my feelings entirely. #python#pythonsucks
An easy way to prevent this in future is to use #poetry (or #pipenv) to install and "lock" your #dependencies (rather than using #pip directly), and check the resulting lockfile into your RCS like any other source file.
If you screw up, poetry install --sync will fix it, including downgrading or removing packages to get back to that known-good state. And if you screw up your lock file, restore it from an earlier point.
Is the #Python#pip install message "error: externally-managed-environment" something new?
I don't remember seeing it before and it looks like I had pip installed some stuff in my system's Python before, yeah, I know this can be risky, but still, I'm surprised.
Also, I learned about #pipx just recently (then installed #pypeek using it, seems great) so I wonder if this message was added by pipx...
When installing a new package with pip, is it somehow possible to know which packages are direct dependencies of the package we're installing, which are dependencies of dependencies, and which are dependencies of those inner dependencies?
I have an internal package with more than 100 dependencies installed and there is a version conflict in one package. So I'm wondering if I need to check their source code one by one or is there maybe a tool for that 🙈
@gotofritz 100% with you. Not sure if I managed to verbalize it the way it was intended with regards to dependency tracking. Last time I checked (my view might be outdated here) #pip freeze only tracked first order depdencies (meaning, deps your project explictly depends on) as opposed to what #poetry or #pipenv are able to accomplish with their lockfiles, effectively tracking your entire dependency tree (though you can still do that using pip-tool.)
I could research this, but I wanna get some input from some #python devs here. I understand how decorators work (I think). They're basically normal functions that you can use to modify other functions. What is an example of a real-world usage of decorators?
The bot gets the notifications from the API and stores it in a local database. The user can implement these functions and use my decorators. The functions are then called for every notification.
So you don't need to loop. You just say what you want the bot to do with every single follow, mention, etc. So it is just so simple for less technical users. I could also make opinionated decisions and design the bot how I want it, and users don't need to worry about how the bot actually works.
This also allowed me to turn the bot into a package and allows the user to update it with #pip without needing to change their code as only the backend changes.
I'm designing a library that provides a core set of functionality, then provides integrations with SQLAlchemy and Flask. Those specific integrations are the reason I wrote the library, but other integrations could be written around the same core, and core can be used without any integration. Should I split core and integrations into separate libraries? #Python
I'm so fed up with #python at this point. A big percentage of the day to day errors seem so utterly fixable by just having types (yes, I know about mypy and the typing module) and proper package dependency management. We are employing pyright, pylint and mypy just to keep stupid mistakes at bay.
After the upcoming experiment, I'm hoping for some good #haskell and #elmlang time. And possibly exploring #rust (though my motivation for this isn't too high).
#Disabilties#DWP#PIP#ATOS#tories For anyone in any doubt about the DWP system designed (in theory) to help the disabled with financial support .I have a complex form of Epilpesy .,its lifelong I developed it at 16 (ish) .I am Dyslexic ,I have migranes and wear and tear back problems .All unlikely to "get better"I also have arthruitus in my hand ,several fingers nolonger work .In 2016 I got PIP ,in 2017 I also develoloped PTSD and tintitus , DWP stopped my PIP in 2018 because I had "improved"
Hey #MSNBC! While you were going all in on your own player in your app so you could implement #DRM, you neglected to provide a RW, FF, or even a BUFFER if I choose to pause! You even couldn't implement a #PiP function that works correctly all the time!
Go back to the built-in #Apple player! It has that shit built in!
Just so everyone knows, when they did this, they disabled #TVEverywhere! They also enabled #DRM across ALL of their O&O channel lineup!
Is there a language that handles dependencies well?
Python's virtual environments are a bit awkward but everything mostly works, I haven't played with Java build tools much, Javascript is a trainwreck. I've been happy with Dart, but haven't gotten into the weeds much. Same with rust, cargo seems nice, but I haven't played with it enough to know the pitfalls yet.
IDEA: A #pip / #pipenv wrapper that reports back to you what it is going to install before it installs & reports the security rating/states/download counts, so you can decide if you really want to install it.
regarding #webdev or #dev In general. When using f.e. react, next or even just axios I got a ton of #npm modules installed in the JS ecosystem. Same with python #pip (though it seems a lot friendlier).
Now these packages sometimes become a security risk for my computer, my data, potentially life.
That's why I think we should all get a secure but ideally hastle free way to code.
How do you do it or do you have an idea? Pls boost!