Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtmux 0.16.0 missing dependency on packaging module #460

Closed
dtrodrigues opened this issue Dec 11, 2022 · 3 comments
Closed

libtmux 0.16.0 missing dependency on packaging module #460

dtrodrigues opened this issue Dec 11, 2022 · 3 comments
Labels

Comments

@dtrodrigues
Copy link

dtrodrigues commented Dec 11, 2022

#351 introduces a dependency on the packaging module which causes tmuxp to not be able to run:

[root@c63a3100748d /]# python3 -m pip install tmuxp==1.19.0
Collecting tmuxp==1.19.0
  Downloading tmuxp-1.19.0-py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.4/46.4 kB 3.4 MB/s eta 0:00:00
Collecting PyYAML<7.0,>=6.0
  Downloading PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 757.9/757.9 kB 26.4 MB/s eta 0:00:00
Collecting colorama>=0.3.9
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting libtmux<0.17.0,>=0.16.0
  Downloading libtmux-0.16.0-py3-none-any.whl (35 kB)
Installing collected packages: PyYAML, libtmux, colorama, tmuxp
Successfully installed PyYAML-6.0 colorama-0.4.6 libtmux-0.16.0 tmuxp-1.19.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[root@c63a3100748d /]# tmuxp
Traceback (most recent call last):
  File "/usr/local/bin/tmuxp", line 5, in <module>
    from tmuxp import cli
  File "/usr/local/lib/python3.11/site-packages/tmuxp/__init__.py", line 11, in <module>
    from . import cli, util
  File "/usr/local/lib/python3.11/site-packages/tmuxp/cli/__init__.py", line 14, in <module>
    from libtmux.__about__ import __version__ as libtmux_version
  File "/usr/local/lib/python3.11/site-packages/libtmux/__init__.py", line 12, in <module>
    from .pane import Pane
  File "/usr/local/lib/python3.11/site-packages/libtmux/pane.py", line 12, in <module>
    from libtmux.common import tmux_cmd
  File "/usr/local/lib/python3.11/site-packages/libtmux/common.py", line 17, in <module>
    from ._compat import LooseVersion, console_to_str, str_from_console
  File "/usr/local/lib/python3.11/site-packages/libtmux/_compat.py", line 40, in <module>
    from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'

[root@c63a3100748d /]# python3 -m pip install packaging
Collecting packaging
  Downloading packaging-22.0-py3-none-any.whl (42 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.6/42.6 kB 2.7 MB/s eta 0:00:00
Installing collected packages: packaging
Successfully installed packaging-22.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[root@c63a3100748d /]# tmuxp
usage: tmuxp [-h] [--version] [--log-level log-level] {load,shell,import,convert,debug-info,ls,edit,freeze} ...

positional arguments:
  {load,shell,import,convert,debug-info,ls,edit,freeze}
    load                load tmuxp workspaces
    shell               launch python shell for tmux server, session, window and pane
    import              import workspaces from teamocil and tmuxinator.
    convert             convert workspace files between yaml and json.
    debug-info          print out all diagnostic info
    ls                  list workspaces in tmuxp directory
    edit                run $EDITOR on workspace file
    freeze              freeze a live tmux session to a tmuxp workspace file

options:
  -h, --help            show this help message and exit
  --version, -V         show program's version number and exit
  --log-level log-level
                        log level (debug, info, warning, error, critical) (default "info")
@tony
Copy link
Member

tony commented Dec 12, 2022

@dtrodrigues Thank you!

Fixed in v0.16.1, tmuxp is also v1.19.1

If you try now, any better?

@dtrodrigues
Copy link
Author

Looks better now. Thanks for the quick fix.

@tony
Copy link
Member

tony commented Dec 12, 2022

Good to know it's resolved! Thank you for the quick check!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants