Skip to content

create tmux sessions raises an error #107

Open
@0xIslamTaha

Description

@0xIslamTaha

There was no tmux installed in the machine and it raises this error

JS-NG> j.core.executors.tmux.create_session('0xislamtaha')                                                                                                                                                           
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/js-ng/jumpscale/core/executors/tmux.py", line 8, in create_session
    return server.new_session(session_name, kill_session=kill_if_exists)
           │                  │                          └ False
           │                  └ '0xislamtaha'<libtmux.server.Server object at 0x7fa4b99f2f28>
  File "/root/.cache/pypoetry/virtualenvs/js-ng-py3.7/lib/python3.7/site-packages/libtmux/server.py", line 514, in new_session
    if self.has_session(session_name):
  File "/root/.cache/pypoetry/virtualenvs/js-ng-py3.7/lib/python3.7/site-packages/libtmux/server.py", line 369, in has_session
    if exact and has_gte_version('2.1'):
  File "/root/.cache/pypoetry/virtualenvs/js-ng-py3.7/lib/python3.7/site-packages/libtmux/common.py", line 527, in has_gte_version
    return get_version() >= LooseVersion(min_version)
           │                │            └ '2.1'
           │                └ <class 'distutils.version.LooseVersion'><function get_version at 0x7fa4b10d0840>
  File "/root/.cache/pypoetry/virtualenvs/js-ng-py3.7/lib/python3.7/site-packages/libtmux/common.py", line 457, in get_version
    proc = tmux_cmd('-V')
           └ <class 'libtmux.common.tmux_cmd'>
  File "/root/.cache/pypoetry/virtualenvs/js-ng-py3.7/lib/python3.7/site-packages/libtmux/common.py", line 195, in __init__
    raise (exc.TmuxCommandNotFound)
           └ <module 'libtmux.exc' from '/root/.cache/pypoetry/virtualenvs/js-ng-py3.7/lib/python3.7/site-packages/libtmux/exc.py'>
libtmux.exc.TmuxCommandNotFound

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions