tmux-window-name
tmux-window-name copied to clipboard
rename_session_windows.py' returned 1 error on window switch
Getting this error when switching between tmux windows on Mac:
/rename_session_windows.py' returned 1
this is a duplicate of a previously closed issue (https://github.com/ofirgall/tmux-window-name/issues/32), but I am still getting this same error with the proposed solution, so I am creating a new issue. I've tried installing manually, and have all dependencies installed an up to date.
bump
any ideas? thanks.
Hey sorry for the delay im on a long vacation, please execute the script manually and share the full error here. The same you did in #32
Hi, no worries, thanks for the response. I hope you're having a nice vacay!
Anyway, running the script manually performs as excepted with no errors, but when I switch tmux sessions I get the aforementioned error.
bump
I'm having the same issue.
The solution is to do this /usr/bin/python3 -m pip install --user -U libtmux. This is assuming that is the python bin that rename_session_windows.py is using. Otherwise, you can add a line in rename_session_windows.py to print the result of which python3. Hope it helps!
Had the same error using Debian Trixie. Installing libtmux via apt solved the issue
sudo apt install python3-libtmux
Hope this helps.
Gonna go ahead and close this issue. @serhez 's solution resolved my issue. Also, I just switched to zellij because tmux was laggy 🤷
I'm also facing this issue, and running the script manually works as expected with no error.
And I found that the issue came from tmux run-shell xxx.py not recognizing any user-installed module (in my case libtmux). But I'm not familiar with python so don't know the exact reason. Can anyone offer some clue?