GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:42 JST mcc mcc

    $ python3 -m pdm install
    /usr/bin/python3: No module named pdm
    $ pipx install pdm
    'pdm' already seems to be installed. Not modifying existing installation in
    '/home/mcc/.local/pipx/venvs/pdm'. Pass '--force' to force installation.

    For heck's sake this is just going to happen every time Ubuntu upgrades python forever, isn't it.

    I thought the entire point of pipx was to prevent this.

    In conversation about 10 months ago from mastodon.social permalink
    • Embed this notice
      SnoopJ (snoopj@hachyderm.io)'s status on Wednesday, 24-Jul-2024 06:38:37 JST SnoopJ SnoopJ
      in reply to
      • Glyph

      @mcc @glyph oh hrm I misread Glyph's remark, thought it was `python3-pipx`, and I could *sorta* see Ubuntu doing something weird if they had an official pipx package.

      +1 to sentiment that `python3 -m pdm` working in the first place is probably the core mystery, although it's hard to imagine `apt` would drop the ball *that* hard.

      Sounds like you managed to get back to a consistent state, at least.

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      SnoopJ (snoopj@hachyderm.io)'s status on Wednesday, 24-Jul-2024 06:38:38 JST SnoopJ SnoopJ
      in reply to
      • Glyph

      @mcc @glyph that sounds like a really good culprit for causing the weirdness

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:38 JST mcc mcc
      in reply to
      • Glyph
      • SnoopJ

      @SnoopJ @glyph So like, I uninstalled it but something inappropriately stayed around? And then two updates later an apt script finally cleaned it up properly? Geez, maybe.

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:39 JST Glyph Glyph
      in reply to

      @mcc huh. looks like no, unless you did a `--break-system-packages`

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:39 JST Glyph Glyph
      in reply to

      @mcc oh wait there's a python3-pdm in apt. did you install it that way?

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:39 JST mcc mcc
      in reply to
      • Glyph

      @glyph i installed that one then uninstalled it because it was *really* old.

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:40 JST mcc mcc
      in reply to
      • Glyph

      @glyph okay. so this makes sense. but now i'm baffled why python -m pdm has been working for me since last year without problems

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:40 JST Glyph Glyph
      in reply to

      @mcc did you `pip install --user pdm` at some point?

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:40 JST mcc mcc
      in reply to
      • Glyph

      @glyph If ubuntu would have allowed that, then conceivably?

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:40 JST Glyph Glyph
      in reply to

      @mcc let me let my ubuntu install out of the oubliette for a moment to check

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:41 JST mcc mcc
      in reply to

      pipx force-reinstall did not work. pipx install --force pdm did not work. rm -r ~/.local/pipx/ && pipx install pdm did not work. any of the above followed by opening a new bash shell did not work. starting to get worried. maybe ubuntu has simply decided i should not be using pipx to install apps anymore.

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:41 JST mcc mcc
      in reply to

      Wait.

      I can't access my pipx-installed pdm by running `python3 -m pdm`, but I can access it by just running `pdm`.

      ?? ??? ?why ??? would that ??? change ?????!

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:41 JST Glyph Glyph
      in reply to

      @mcc python3 -m pdm implies that whichever 'python3' that is can import 'pdm'. But pipx installed pdm has its own virtualenv and thus its own 'python3', which you never see.

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:42 JST mcc mcc
      in reply to

      The quickfixes I used last time to fix this problem are not fixing it :(

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:52 JST mcc mcc
      in reply to

      Current status

      - It was working last week
      - It wasn't working 10 minutes ago
      - It works now
      - I understand why it works now
      - I understand why it wasn't working 10 minutes ago
      - But I don't understand why it was working last week

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      GeePawHill (geepawhill@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:38:55 JST GeePawHill GeePawHill
      in reply to

      @mcc "I don't see how it *ever* worked" is a surprisingly common occurrence in my career.

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      Jochie 👨🏻‍💻🏳️‍🌈 (jochie@strangeweb.page)'s status on Wednesday, 24-Jul-2024 06:39:05 JST Jochie 👨🏻‍💻🏳️‍🌈 Jochie 👨🏻‍💻🏳️‍🌈
      in reply to
      • GeePawHill

      @GeePawHill @mcc If you follow Andi this feels like a daily event 😁

      https://www.reddit.com/r/ProgrammerHumor/comments/bk6hfl/six_stages_of_debugging/

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:10 JST Glyph Glyph
      in reply to
      • SnoopJ

      @SnoopJ @mcc have you installed other versions of Python outside of Apt?

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:10 JST mcc mcc
      in reply to
      • Glyph
      • SnoopJ

      @glyph @SnoopJ I mean I want to say "no" but i'm doubting many pillars of reality at this point

      In conversation about 10 months ago permalink
    • Embed this notice
      Owen Nelson (onelson@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:10 JST Owen Nelson Owen Nelson
      in reply to
      • Glyph
      • SnoopJ

      @mcc @glyph @SnoopJ I once "came to" and was at my computer with 8 versions of nodejs installed and had no memory of installing even one.

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:15 JST Glyph Glyph
      in reply to
      • ✧✦Catherine✦✧

      @mcc @whitequark as I am attempting to validate my discovery the upgrade is going great and also incredibly thematically appropriately for this particular conversation

      In conversation about 10 months ago permalink

      Attachments


      1. https://files.mastodon.social/media_attachments/files/112/828/971/734/351/645/original/1d8a27e8e75879aa.png
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:16 JST mcc mcc
      in reply to
      • Glyph
      • ✧✦Catherine✦✧

      @glyph @whitequark it's probably impossible to figure out what I did D: I didn't actually understand how to use pipx when I first set up this machine

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:16 JST Glyph Glyph
      in reply to
      • ✧✦Catherine✦✧

      @mcc @whitequark no need to stress about figuring it out precisely, this is a legit bug either way :)

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:16 JST mcc mcc
      in reply to
      • Glyph
      • ✧✦Catherine✦✧

      @glyph @whitequark well what i fear is there might have been a point when i was trying to figure out how pipx worked that i just tried every thing i could think of and one of them might have resulted in something Weird

      what's mostly weird to me is the LAST time python updated and blew away my pipxes, i just said "pipx install --force pdm" and THAT fixed it. so that's weird in a way "i fucked my system and it worked in a configuration it shouldn't have" isn't. the fucked->unfucked->fucked cycle

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:17 JST Glyph Glyph
      in reply to
      • ✧✦Catherine✦✧

      @whitequark @mcc okay I think I have a forensic reconstruction of a possible scenario:

      If you made a --system-site-packages virtualenv and THEN did a pip install --user, it would silently stick things into ~/.local/lib/python3.$X in a way that would be importable by the system python and that would never warn you in any way.

      This might be a bug in something

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:18 JST mcc mcc
      in reply to
      • Glyph
      • ✧✦Catherine✦✧

      @whitequark @glyph another thing confusing me is what this means and why i haven't seen it before. i assume that in moving from whatever broken pdm i had to whatever pdm i've got now, i did a big version jump??

      also when i try to install i get a failure on numpy with no error message :(

      In conversation about 10 months ago permalink

      Attachments


      1. https://files.mastodon.social/media_attachments/files/112/827/348/042/910/678/original/f25109e4661cc5c9.png
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:18 JST mcc mcc
      in reply to
      • Glyph
      • ✧✦Catherine✦✧

      @whitequark @glyph update, pdm fix and changing my pyproject.toml to require a more recent version of python have resolved my issues??? i'm just gonna chalk this up to user error and move on, thank you for the help

      In conversation about 10 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:18 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • Glyph

      @mcc @glyph yeah `pdm fix` seems to be reliable, it's nice

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:19 JST mcc mcc
      in reply to
      • ✧✦Catherine✦✧

      @whitequark Oh.

      Then why… was it… before

      In conversation about 10 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:19 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to

      @mcc you had pdm installed in some other way that was competing

      In conversation about 10 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:19 JST mcc mcc
      in reply to
      • ✧✦Catherine✦✧

      @whitequark sincerely not sure how that could have happened since ubuntu bans the use of pip

      In conversation about 10 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:20 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to

      @mcc anything pipx-installed would not be accessible as `python -m ...`

      In conversation about 10 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:23 JST Glyph Glyph
      in reply to
      • ✧✦Catherine✦✧

      @mcc @whitequark update: the VM no longer even boots. Just starts up to BIOS, I think it corrupted something so badly that the boot … sector? EFI configuration? … is no longer even recognizable

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:27 JST mcc mcc
      in reply to
      • Glyph
      • ✧✦Catherine✦✧

      @glyph @whitequark Yup this sounds like python package management to me

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Wednesday, 24-Jul-2024 06:39:28 JST mcc mcc
      in reply to
      • David Zaslavsky
      • Nazo

      @diazona @nazokiyoubinbou yeah, uh, the reason I like using python -m is I'm used to systems with multiple pythons (a 2 and a 3, usually) and using -m guarantees you get the right one. In this case however the reason I was doing it was I didn't understand how pipx worked lol

      In conversation about 10 months ago permalink
      clacke likes this.
    • Embed this notice
      David Zaslavsky (diazona@techhub.social)'s status on Wednesday, 24-Jul-2024 06:39:29 JST David Zaslavsky David Zaslavsky
      in reply to
      • Nazo

      @nazokiyoubinbou @mcc FWIW people often recommend using python -m because it ensures that you're running code from whatever (virtual or system) #Python environment is currently activated, whereas if you run an entry point directly, like just pdm, you might be running a script that happens to be on your PATH but which does not live in the active environment. I do think it's a useful recommendation in most cases to help people avoid accidentally running things from the wrong environment.

      Stuff installed with pipx is the exception, of course, because you specifically *don't* want to run it from whatever env is currently activated. (In a sense pipx is made to provide you with the illusion that a Python program is a regular old executable that you drop into PATH, i.e. you don't have to know or care that it is written in Python and you can just run it the same way as anything else.)

      In conversation about 10 months ago permalink
    • Embed this notice
      Nazo (nazokiyoubinbou@urusai.social)'s status on Wednesday, 24-Jul-2024 06:39:30 JST Nazo Nazo
      in reply to

      @mcc I feel like using python -m is redundant and unnecessary since the scripts are in the path anyway, but it doesn't explain that issue. Is it possible python3 is pointing to a different binary that maybe uses a different path?

      In conversation about 10 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.