Zulip Chat Archive
Stream: general
Topic: Can't install mathlibtools
Adam Topaz (Dec 27 2021 at 19:10):
I just updated my OS, and for some reason my mathlibtools installation broke. I tried reinstalling in the usual way, but I'm getting some errors. I think it is an issue with incompatible versions of something from python?
Here are my current python/pipx/pip versions
$ python --version
Python 3.10.1
$ pipx --version
0.16.4
pip --version
pip 20.3.4 from /usr/lib/python3.10/site-packages/pip (python 3.10)
And the error I get from trying to install mathlib tools with pipx:
$ pipx install mathlibtools
Fatal error from pip prevented installation. Full pip output in file:
/home/adam/.local/pipx/logs/cmd_2021-12-27_12.09.25_pip_errors.log
Error installing mathlibtools.
The contents of that log file are
PIP STDOUT
----------
PIP STDERR
----------
/home/adam/.local/pipx/venvs/mathlibtools/bin/python: No module named pip
Does anyone have any suggestions?
Adam Topaz (Dec 27 2021 at 19:16):
Well, I don't know what the issue is, but pip install mathlibtools
seems to work.
Julian Berman (Dec 27 2021 at 20:20):
That error means somehow your pipx mathlibtools virtualenv doesn't have pip installed to it -- something like pipx uninstall mathlibtools && pipx install mathlibtools
should probably do something.
Julian Berman (Dec 27 2021 at 20:20):
(Basically you want it to fully recreate that virtualenv)
Adam Topaz (Dec 27 2021 at 20:22):
@Julian Berman that doesn't work -- I uninstalled mathlibtools with pipx before trying the whole thing, and pipx install still does not work (I just tried again, to verify).
Adam Topaz (Dec 27 2021 at 20:23):
Trying again now, and I can confirm that ~/.local/pipx/venvs
is empty... Still doesn't work.
Sofia Salazar (Dec 27 2021 at 20:44):
Hi, i have this problem and I don't know how to solve it
image_2021-12-27_154445.png
Julian Berman (Dec 27 2021 at 20:56):
@Adam Topaz OK time to nuke I guess then? rm -r ~/.local/pipx/venvs/mathlibtools
Julian Berman (Dec 27 2021 at 20:56):
Followed by pipx install mathlibtools
Adam Topaz (Dec 27 2021 at 20:57):
I'll try...
Julian Berman (Dec 27 2021 at 20:57):
@Sofia Salazar hello, welcome! You should ask that in your own thread so it's more likely to be seen.
Adam Topaz (Dec 27 2021 at 20:57):
Well... as I said above, my .local/pipx/venvs
folder is empty. Is it safe to just nuke .local/pipx
?
Julian Berman (Dec 27 2021 at 20:58):
Ah sorry, I misread. If you don't use pipx for anything else it should be safe yeah, but the error message is suspicious in that case.
Julian Berman (Dec 27 2021 at 20:59):
/home/adam/.local/pipx/venvs/mathlibtools/bin/python: No module named pip
is an error coming from an existent python
, so if that directory is indeed empty, something has been deleting it in the past few minutes
Julian Berman (Dec 27 2021 at 21:00):
Can I see type -a pipx
just to be sure as well?
Julian Berman (Dec 27 2021 at 21:00):
And if you know, where did you get pipx from? Your package manager or directly from PyPI or something?
Adam Topaz (Dec 27 2021 at 21:00):
It's from my package manager. I'm on arch.
Adam Topaz (Dec 27 2021 at 21:00):
I'm going to nuke pipx completely....
Julian Berman (Dec 27 2021 at 21:00):
May want to reinstall it then via pacman
Julian Berman (Dec 27 2021 at 21:00):
Yeah.
Julian Berman (Dec 27 2021 at 21:01):
I don't know what Arch does these days, but I'd suspect maybe if your Python gets upgraded that it may scrub your pipx venvs? Which would simultaneously be infuriating but also semicorrect.
Adam Topaz (Dec 27 2021 at 21:01):
ok, I uninstalled pipx using pacmac, nuked the .local/pipx
folder, now let me try to instaall mathlibtools
Adam Topaz (Dec 27 2021 at 21:02):
AHA! It worked this time.
Adam Topaz (Dec 27 2021 at 21:02):
I suspect the .local/pipx/shared
folder was somehow corrupted.
Julian Berman (Dec 27 2021 at 21:02):
Hooray.
Adam Topaz (Dec 27 2021 at 21:02):
Thanks Julian!
Julian Berman (Dec 27 2021 at 21:02):
np
Sofia Salazar (Dec 27 2021 at 21:02):
Julian Berman said:
Sofia Salazar hello, welcome! You should ask that in your own thread so it's more likely to be seen.
Sorry, Which is my thread?
Adam Topaz (Dec 27 2021 at 21:03):
@Sofia Salazar You would get more help if you ask in the #new members stream.
Sofia Salazar (Dec 27 2021 at 21:03):
Thanks
Adam Topaz (Dec 27 2021 at 21:03):
@Sofia Salazar and make sure to start a new thread with a new title.
Adam Topaz (Dec 27 2021 at 21:05):
@Julian Berman Looking at my fresh .local/pipx/shared/bin
folder, I now have a pip3.10
binary, which was missing before.
Julian Berman (Dec 27 2021 at 21:21):
That's certainly a good sign yeah
Julian Berman (Dec 27 2021 at 21:22):
I would guess you got upgraded to py3.10 in the past few days
Julian Berman (Dec 27 2021 at 21:22):
And that that blew away pipx things
Julian Berman (Dec 27 2021 at 21:22):
So be prepared if/when this happens again for 3.11 :D
Last updated: Dec 20 2023 at 11:08 UTC