No module named 'packaging'
guigui64 opened this issue · 6 comments
guigui64 commented
Hi,
I just installed this plugin but it does not work on my setup.
I tried running the script manually and got this error: No module named 'packaging'
I am using python 3.10.6
Let me know if you need some more information.
ofirgall commented
Sorry for the late response, can you share the full output of the script execution?
SilverRainZ commented
- Commit: master (a10a0d7)
- Python 3.10.9
- libtmux 0.16.0 (due to #20)
- Debian GNU/Linux 10 (buster)
- Full output:
Traceback (most recent call last):
File "/home/xxx/.config/tmux/plugins//tmux-window-name/scripts/rename_session_windows.py", line 12, in <module>
import libtmux
File "/home/xxx/.local/lib/python3.10/site-packages/libtmux/__init__.py", line 12, in <module>
from .pane import Pane
File "/home/xxx/.local/lib/python3.10/site-packages/libtmux/pane.py", line 12, in <module>
from libtmux.common import tmux_cmd
File "/home/xxx/.local/lib/python3.10/site-packages/libtmux/common.py", line 17, in <module>
from ._compat import LooseVersion, console_to_str, str_from_console
File "/home/xxx/.local/lib/python3.10/site-packages/libtmux/_compat.py", line 40, in <module>
from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'
Joshswooft commented
Also having this issue
newellista commented
I'm having the same issue. However, I'm running on OSX 13.1
Python 3.10.9
libtmux 0.16.0
Traceback (most recent call last): 15:19:24
File "/Users/stevenewell/.tmux/plugins//tmux-window-name/scripts/rename_session_windows.py", line 12, in <module>
import libtmux
File "/Users/stevenewell/Library/Python/3.10/lib/python/site-packages/libtmux/__init__.py", line 12, in <module>
from .pane import Pane
File "/Users/stevenewell/Library/Python/3.10/lib/python/site-packages/libtmux/pane.py", line 12, in <module>
from libtmux.common import tmux_cmd
File "/Users/stevenewell/Library/Python/3.10/lib/python/site-packages/libtmux/common.py", line 17, in <module>
from ._compat import LooseVersion, console_to_str, str_from_console
File "/Users/stevenewell/Library/Python/3.10/lib/python/site-packages/libtmux/_compat.py", line 40, in <module>
from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'
SilverRainZ commented
This is an upstream issue and already fixed in libtmux v0.16.1, see tmux-python/libtmux#460
ofirgall commented
@SilverRainZ thanks for investigating the issue.
Changed the README to suggest installing libtmux 0.16.1