tmux-window-name icon indicating copy to clipboard operation
tmux-window-name copied to clipboard

rename_session_windows.py' returned 1 error on window switch

Open nach00 opened this issue 8 months ago • 6 comments

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.

nach00 avatar Mar 31 '25 22:03 nach00

bump

any ideas? thanks.

nach00 avatar Apr 16 '25 16:04 nach00

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

ofirgall avatar Apr 16 '25 16:04 ofirgall

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.

nach00 avatar Apr 24 '25 06:04 nach00

bump

nach00 avatar May 07 '25 06:05 nach00

I'm having the same issue.

serhez avatar Jun 03 '25 12:06 serhez

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!

serhez avatar Jun 03 '25 13:06 serhez

Had the same error using Debian Trixie. Installing libtmux via apt solved the issue

sudo apt install python3-libtmux

Hope this helps.

fatbluefish avatar Jul 30 '25 21:07 fatbluefish

Gonna go ahead and close this issue. @serhez 's solution resolved my issue. Also, I just switched to zellij because tmux was laggy 🤷

nach00 avatar Sep 25 '25 08:09 nach00

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?

ShelpAm avatar Nov 18 '25 10:11 ShelpAm