Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

new_session API returns LibTmuxException #486

Ashit-Sood started this conversation in General
Discussion options

Python 3.10.8 (tags/v3.10.8:aaaf517424, Oct 14 2022, 15:27:04) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtmux
>>> server = libtmux.Server()
>>> server.new_session()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/asood/.virtualenvs/rexsim_int/lib/python3.10/site-packages/libtmux/server.py", line 494, in new_session
    return Session.from_session_id(
  File "/home/asood/.virtualenvs/rexsim_int/lib/python3.10/site-packages/libtmux/session.py", line 85, in from_session_id
    session = fetch_obj(
  File "/home/asood/.virtualenvs/rexsim_int/lib/python3.10/site-packages/libtmux/neo.py", line 234, in fetch_obj
    obj_formatters_filtered = fetch_objs(
  File "/home/asood/.virtualenvs/rexsim_int/lib/python3.10/site-packages/libtmux/neo.py", line 210, in fetch_objs
    raise exc.LibTmuxException(proc.stderr)
libtmux.exc.LibTmuxException: ['command too long']
You must be logged in to vote

Replies: 2 comments

Comment options

Do you have the libtmux version?

You must be logged in to vote
0 replies
Comment options

Does server.new_session(detach=True) work?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.