Open iomari opened 9 months ago
@iomari Hi! Can you do it without the pastebin? But instead wrap it in this:
<details>
Snippet
</details>
Thank you
Also, can you provide these?
tmux -V
python -V
which pip
which python
which tmuxp
pip show libtmux
pip show tmuxp
echo $PATH
echo $SHELL
tmux 3.3a
Python 3.11.6
which pip: /home/iomari//.local/bin/pip /home/iomari/.local/bin/pip /home/iomari//.pyenv/shims/pip /usr/local/bin/pip /usr/bin/pip /bin/pip /usr/bin/X11/pip /home/iomari//.local/bin/pip
which tmuxp: /home/iomari//.local/bin/tmuxp /home/iomari/.local/bin/tmuxp /home/iomari//.local/bin/tmuxp
pip show libtmux DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/scrapyard_backend-2.1.1-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330 WARNING: Package(s) not found: libtmux
pip show tmuxp DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/scrapyard_backend-2.1.1-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330 WARNING: Package(s) not found: tmuxp
echo $PATH /home/iomari/.rd/bin:/home/iomari//.local/bin:/home/iomari//.poetry/bin:/home/iomari/.local/bin:/usr/local/go/bin:/home/iomari//.pyenv/shims:/home/iomari//.pyenv/bin:/home/iomari//.npm-global/bin:/home/iomari//.autojump/bin:/snap/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/opt/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/bin/mybin:/opt/anaconda/bin:/home/iomari//bin:/home/iomari//.local/bin:/usr/local/go/bin:/home/iomari//.vim/bundle/start/fzf/bin/:/home/iomari//.cargo/bin:/opt/kafka/bin:/home/iomari/.fzf/bin:/home/iomari/.fzf/bin:/snap/bin:/home/iomari/bin/aliases
echo $SHELL /usr/bin/zsh
I can't solve the problem for you, but I think there is an issue with the system's python setup:
which
shows multiple outputs, some with multiple slashes~/.local/bin/tmuxp
exists, but pip show tmuxp
and pip show libtmux
is empty
ls -a ~/.local/bin/tmuxp
point to?tmuxp -V
work? what does it show?tmuxp debug-info
work? what does it show?I also don't want to give advice - as I don't want to risk complicating your setup more: But in my experience I've cleared out my python setup completely between distribution upgrades. Familiarizing with where user / system python packages are stored would alleviate what data to clear out.
You should see something like this (if you use pip install --user --upgrade tmuxp
):
❯ tmuxp -V
tmuxp 1.32.1, libtmux 0.24.1
Note: However, pip install --user --upgrade tmuxp
won't be effective if there's old artifacts inside of ~/.local/bin
and site-packages
.
I've resolved the double slashes. However I think the problem may have something to do with Ubuntu variants don't use pip/pip3 anymore. Instead we have to use pipx which installs in it's own virtual environment then links executables:
ls -la /home/iomari/.local/bin/tmuxp
lrwxrwxrwx 1 iomari iomari 46 Dec 2 12:11 /home/iomari/.local/bin/tmuxp -> /home/iomari/.local/pipx/venvs/tmuxp/bin/tmuxp
I think that's why my tmuxp issue started when I upgrade to 23.10.
So to clarify, there is still an issue?
If so, is there any error?
Does pipx reinstall-all​ help? (per herehttps://pipx.pypa.io/stable/troubleshooting/?)
Does this FAQ item "Pipx files not in expected locations according to documentationhttps://pipx.pypa.io/stable/troubleshooting/#pipx-files-not-in-expected-locations-according-to-documentation" apply to you? Does the instructions help? Troubleshooting - pipxhttps://pipx.pypa.io/stable/troubleshooting/#pipx-files-not-in-expected-locations-according-to-documentation execute binaries from Python packages in isolated environments pipx.pypa.io
What if, instead of pipx, you use pip install --user --upgrade tmuxp​ instead​?
From: Ibrahim Salim Omari @.> Sent: Monday, December 4, 2023 10:33 AM To: tmux-python/tmuxp @.> Cc: Tony Narlock @.>; Comment @.> Subject: Re: [tmux-python/tmuxp] Commands not executing (Issue #892)
I've resolved the double slashes. However I think the problem may have something to do with Ubuntu variants don't use pip/pip3 anymore. Instead we have to use pipx which installs in it's own virtual environment then links executables:
ls -la /home/iomari/.local/bin/tmuxp lrwxrwxrwx 1 iomari iomari 46 Dec 2 12:11 /home/iomari/.local/bin/tmuxp -> /home/iomari/.local/pipx/venvs/tmuxp/bin/tmuxp
I think that's why my tmuxp issue started when I upgrade to 23.10.
— Reply to this email directly, view it on GitHubhttps://github.com/tmux-python/tmuxp/issues/892#issuecomment-1839013464, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAAGNYAOSBO2T2WZURJHT7TYHX3MFAVCNFSM6AAAAABAFXG3CWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZZGAYTGNBWGQ. You are receiving this because you commented.Message ID: @.***>
I can no longer use pip in kubuntu23.10. anything I try to install with pip returns:
`pip3 install pycrypto error: externally-managed-environment
× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.`
Greetings, I recently updated my kubuntu to 23.10 and for some strange reason, when I execute my tmuxp script, the script no longer executes commands written in the script. If you look at the script linked below, you'll see that the script is suppose to execute a few command in certain windows. (mc, ranger, ssh egwfw, weechat). However all I see is the commands on each of the respective terminal command line but not executed. What has changed? I've been using this same script for years now.
https://pastebin.com/1na7PzfM
thanks in advance iomari