Skip to content

libtmux 0.16.0 missing dependency on packaging module #460

Closed
@dtrodrigues

Description

@dtrodrigues

#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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions