me, to python
@me@social.taupehat.com avatar

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.

cazabon,

@me

An easy way to prevent this in future is to use (or ) to install and "lock" your (rather than using 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.

greenmountaingirl, to Cats
@greenmountaingirl@babka.social avatar

Guess who woke us up at 4:50am, rocketing around the bedroom?

#Pip #Cats #CatsOfMastodon

greenmountaingirl, to Cats
@greenmountaingirl@babka.social avatar

We had to pry #Pip out of his nest, but once he smelled the food his appetite came back and he ate a bunch. #Cats

greenmountaingirl, to animals
@greenmountaingirl@babka.social avatar

The patient, looking much like his usual self. #Pip #CatsOfMastodon #Cats

seanmonstar, to rust
@seanmonstar@masto.ai avatar

Those complaining about #rust cargo and dependencies have never used npm (or forgotten).

mo8it,
@mo8it@fosstodon.org avatar

@seanmonstar #pip is hiding xD

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Is the 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 just recently (then installed using it, seems great) so I wonder if this message was added by pipx...

ascott, to python

When the readme says I need to do 'pip install -r requirements.txt'
#python #pip

djvdq, to python
@djvdq@mastodon.social avatar

Hey #python and #pip experts.

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, to poetry

deleted_by_author

  • Loading...
  • cristianrasch,

    @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.)

    PlasticMemmories, to python

    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?

    Stark9837,
    @Stark9837@techhub.social avatar

    @PlasticMemmories

    I also recently used it in my pwn project. I wrote the @3dprinting #bot for #Mastodon.

    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.

    #python

    davidism, (edited ) to python
    @davidism@mas.to avatar

    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?

    Stark9837,
    @Stark9837@techhub.social avatar

    @dozymoe @davidism

    To then install the version using ? That would be cool.

    schenklklopfer, to python German
    @schenklklopfer@chaos.social avatar

    Deswegen wollte ich das in #Docker haben, um mich um den Scheiß nicht kümmern zu müssen...

    Nagut, dann gibt's für das kommende Projekt halt keine #KI-generierten Bilder^^

    #Python #pip

    pmidden, to python
    @pmidden@fosstodon.org avatar

    I'm so fed up with 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 and time. And possibly exploring (though my motivation for this isn't too high).

    cazabon,

    @pmidden

    What are you using for #dependency management right now? #pip & requirements.txt, #pipenv, ... ?

    I've looked at #Rust and #Go some, but I keep coming back to #Python. #Mojo looks promising, when it becomes open-source.

    Helengraham, to random

    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"

    jann, to apple
    @jann@twit.social avatar

    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!

    @loudmouthjulia

    lig, to programming
    @lig@fosstodon.org avatar

    Talking about Python package managers I really like poetry but I would happily argue for pdm versus using pip and requirements.txt files.

    #Python #pip #poerty #pdm #PackageManagment

    jforseth210, to programming

    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.

    mistersql, to programming
    @mistersql@mastodon.social avatar

    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.

    I think I just need to parse the output from

    --dry-run  
    

    and feed it into package info API calls.

    #python

    zhenech, to programming
    @zhenech@chaos.social avatar

    Is there a setting to make pip hard-fail when trying to install outside a virtualenv?

    #pip #python #virtualenv

    iameru, to webdev German
    @iameru@leipzig.town avatar

    How do you isolate your dev environment? Do you?

    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!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines