-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No install under Python 3.9 #32
Comments
After
|
On my system This part looks interesting:
Here is that code formatted as a python 3 script: import sys, setuptools, tokenize
sys.argv[0] = """tmp/pip-install-43rf94ig/pipx-in-pipx/setup.py"""
__file__ = """/tmp/pip-install-4 3rf94ig/pipx-in-pipx/setup.py"""
f = getattr(tokenize, """open""", open)(__file__)
code = f.read().replace("""\r\n""", """\n""")
f.close()
exec(compile(code, __file__, """exec""")) It seems as if the install script cannot find the |
This may be a problem with pipx: $ pip3 --isolated install --user pipx
...
$ pipx install --force youtube-dl
Installing to existing directory '/home/ryan/.local/pipx/venvs/youtube-dl'
/home/ryan/.local/pipx/shared/bin/python: No module named pip
Failed to upgrade shared libraries
Traceback (most recent call last):
File "/home/ryan/.local/lib/python3.9/site-packages/pipx/shared_libs.py", line 73, in upgrade
run(
File "/home/ryan/.local/lib/python3.9/site-packages/pipx/util.py", line 135, in run
raise PipxError(f"{cmd_str!r} failed")
pipx.util.PipxError: '/home/ryan/.local/pipx/shared/bin/python -m pip --disable-pip-version-check install -q --upgrade pip setuptools wheel' failed
/home/ryan/.local/pipx/venvs/youtube-dl/bin/python: No module named pip
Not removing existing venv /home/ryan/.local/pipx/venvs/youtube-dl because it was not created in this session
Error installing youtube-dl.
$ |
The README has the fix. I'm surprised I stepped on this rake again:
|
Sorry folks, I've been kinda out of it the last couple months. @pikeas the interesting bit to me in the error output is:
That is odd to me, as it should be doing effectively the same thing as the bootstrapping step, which worked successfully. Did you already have a |
@mattsb42 Thanks for replying! Here's a more complete run-through that throws the same error:
|
For now, I'm using this workaround:
This pipx is mostly functional but is unable to self-manage, it will break when reinstalling itself. |
I wound up listing the contents of while read -r pkg ; do pipx install "$pkg" || break ; done < pipx_things Not exactly the most comfortable upgrade path, but not the most painful either. |
This is expected of If you want to reinstall to update references to a new Python install, see the comments in the readme[1]. If you want to reinstall for some other reason, I'd be interested to understand what that reason is. [1] https://github.com/mattsb42-meta/pipx-in-pipx#which-python |
I recently added a Python 3.9 to my system and tried to update my pipx-in-pipx to match. However, nothing seems to happen. I've searched throughout the Python installation and there are no files relating to pipx.
The install completes successfully:
There's no bootstrapping output, is it possible that the pipx-in-pipx setup entrypoint isn't being run?
The text was updated successfully, but these errors were encountered: