Comments (5)
>>> 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.
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.
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.
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.
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)
- Tests failing on ppc64le HOT 2
- Tests failing on aarch64 HOT 2
- Tests failing on armv7l HOT 3
- Intermittent errors with tests on x86_64 / amd64 HOT 7
- Intermittent errors with tests on i586 (32bit)
- Is there any way to connect to a tmux session on a remote machine? HOT 1
- Intermittent / flaky test test_capture_pane
- select_pane not working correctly with multiple sessions HOT 2
- Drop Python 3.7 HOT 1
- `build(build-system)`: Remove `setuptools` build dependency
- unknown pytest option --doctest-docutils-modules HOT 7
- Unable to access server via WSGI HOT 4
- `TmuxObjectDoesNotExist` when creating `libtmux.Server().new_session(attach=True)` HOT 13
- Remove assert from __eq__ for windows HOT 5
- Tests failing with "FileNotFoundError: [Errno 2]" and "Unknown directive type: 'currentmodule' [myst.directive_unknown]" HOT 6
- Tests: Snapshots
- Options: Typed structures
- Environment: Add to `new-window`, `split-window`, `respawn-window`, `respawn-pane`
- No implicit exports from __init__.py HOT 1
- `pane.send_keys()` doesn't send cmd to correct pane when cmd has a `-t` flag HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libtmux.