tmuxp: tmux freeze fails
Hi,
I just installed tmuxp using pip3 install tmuxp. It believed it installed fine because if I type just tmuxp, it shows the help.
I have a tmux session named main. But when I typed tmuxp freeze main, I got this backtrace:
> tmuxp freeze main
Traceback (most recent call last):
File "/home/kmodi/stowed/bin/tmuxp", line 11, in <module>
load_entry_point('tmuxp==1.2.8', 'console_scripts', 'tmuxp')()
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/tmuxp/cli.py", line 387, in command_freeze
sconf = freeze(session)
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/tmuxp/workspacebuilder.py", line 324, in freeze
'options': w.show_window_options(),
File "/home/kmodi/stow/pkgs/python/3.6.1/lib/python3.6/site-packages/libtmux/window.py", line 195, in show_window_options
window_options = dict(cmd)
ValueError: dictionary update sequence element #2 has length 4; 2 is required
Python version: 3.6.1 OS: RHEL 6.6
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (12 by maintainers)
Commits related to this issue
- Retain spaces in quoted strings in window options Fixes https://github.com/tony/tmuxp/issues/239 With the below in tmux config: setw -g pane-border-format " #P " Before the fix: ('pane-bo... — committed to kaushalmodi/libtmux by kaushalmodi 7 years ago
- Retain spaces in quoted strings in window options Fixes https://github.com/tony/tmuxp/issues/239 With the below in tmux config: setw -g pane-border-format " #P " Before the fix: ('pane-bo... — committed to kaushalmodi/libtmux by kaushalmodi 7 years ago
This is live in 1.3.0
I am going to consider loosening the 2.6 requirement. It’s been almost 4 years since that issue.
Last 2.6 release was 2.6.9 in October 29, 2013. Support ended then.
Yes, I was reading
shlexdocumentation, but don’t know whathas to do with Unicode support.
Thanks for the consideration. I wouldn’t rely on my ability to find a different approach as I am not a serious Python coder. I can even keep on using my forked version with the fix.
Oh well, looks like things are failing. I’ll get some time at later to understand how the
shlex.splitimpacted the tests.