Giter Club home page Giter Club logo

Comments (5)

tony avatar tony commented on May 25, 2024
>>> tmux.find_where({'session_name': 'libtmux'}).find_where({'window_name': 'libtmux'}).attached_pane
Pane(%10 Window(@4 1:libtmux, Session($1 libtmux)))

I can't reproduce this. Is the parent session (mineraft) changing?

Can you let me know your platform, python, libtmux and tmux version?

Other things that would be helpful is knowing the full output of tmux list-panes -a, when you're able to reproduce the error.

from libtmux.

ShadwDrgn avatar ShadwDrgn commented on May 25, 2024

tmux 2.1
python 2.7.12
libtmux==0.6.5
Ubuntu 16.04

user@host:~/$ tmux list-panes -a
minecraft:0.0: [200x43] [history 1857/2000, 2089756 bytes] %0 (active)
minecraft:1.0: [200x43] [history 1348/2000, 1623574 bytes] %1 (active)
minecraft:2.0: [200x43] [history 377/2000, 371726 bytes] %2 (active)

The tmux session is started by the user from command line first, then after that I go into python and get the error

from libtmux.

tony avatar tony commented on May 25, 2024

So the behavior is still happening, after you tried it again?

Can you give me your tmux list-sessions and tmux list-windows -a?

from libtmux.

ShadwDrgn avatar ShadwDrgn commented on May 25, 2024

As far as I'm aware nothing is changing in this tmux session at all.

$ tmux list-sessions
minecraft: 3 windows (created Mon Apr 17 23:09:41 2017) [200x43]

$ tmux list-windows -a
minecraft:0: python- (1 panes) [200x43]
minecraft:1: server (1 panes) [200x43]
minecraft:2: bash* (1 panes) [200x43]

Tried Again:

>>> tmux = libtmux.Server()
>>> tmux.find_where({'session_name': 'minecraft'}).find_where({'window_name': 'server'}).attached_pane
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/libtmux/window.py", line 441, in attached_pane
    for pane in self._panes:
  File "/usr/local/lib/python2.7/dist-packages/libtmux/window.py", line 466, in _panes
    return self._list_panes()
  File "/usr/local/lib/python2.7/dist-packages/libtmux/window.py", line 455, in _list_panes
    p for p in panes if p['session_id'] == self.get('session_id')
KeyError: u'session_id'

from libtmux.

stale avatar stale commented on May 25, 2024

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

This bot is used to handle issues where the issue hasn't been discussed or
has gone out of date. If an issue isn't resolved and handled in a certain
period of time, it may be closed. If you would like your issue re-opened,
please create a fresh issue with the latest, up to date information and
mention this issue in it.

from libtmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.