Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytyle3: IndexError: list index out of range #11

Open
solix2011 opened this issue Nov 28, 2012 · 2 comments
Open

pytyle3: IndexError: list index out of range #11

solix2011 opened this issue Nov 28, 2012 · 2 comments

Comments

@solix2011
Copy link

I have a issue with pytyle3 on my setup: Ubuntu server 12.04 and Openbox. I follow the link https://github.com/BurntSushi/pytyle3/wiki/Ubuntu-12.04-installation-documentation to download source and compile sucessful, but when running, it shows the error below, pls help

./pytyle3
Openbox window manager is running...
Traceback (most recent call last):
File "./pytyle3", line 19, in
client.update_clients()
File "/home/yvo/packages/pytyle3/pt3/client.py", line 189, in update_clients
track_client(c)
File "/home/yvo/packages/pytyle3/pt3/client.py", line 205, in track_client
clients[client] = Client(client)
File "/home/yvo/packages/pytyle3/pt3/client.py", line 52, in init
tile.update_client_add(self)
File "/home/yvo/packages/pytyle3/pt3/tile.py", line 83, in update_client_add
tiler.add(c)
File "/home/yvo/packages/pytyle3/pt3/layouts/layout_vert_horz.py", line 20, in add
debug('%s being added to %s' % (c, self))
File "/home/yvo/packages/pytyle3/pt3/layouts/init.py", line 61, in str
wa = self.get_workarea()
File "/home/yvo/packages/pytyle3/pt3/layouts/init.py", line 56, in get_workarea
mon = state.workarea[state.visibles.index(self.desk)]
IndexError: list index out of range

@BurntSushi
Copy link
Owner

Do you have anything special about your setup? Multiple monitors? Are you using regular Openbox or my fork, Openbox Multihead?

Also, could you run xprop -root and post the output here? (Or in gist/pasty.)

@solix2011
Copy link
Author

This is a ouput xprop -root. I run on Virtual box. I don't have any special setup.

  • Setup ubuntu server 12.04.
  • Then setup the Openbox by: sudo apt-get install openbox obconf

That's all.

_NET_ACTIVE_WINDOW(WINDOW): window id # 0x1000004
_NET_CLIENT_LIST(WINDOW): window id # 0xe00005, 0x1000004, 0x1200079
_NET_SHOWING_DESKTOP(CARDINAL) = 0
_NET_CURRENT_DESKTOP(CARDINAL) = 0
_NET_DESKTOP_NAMES(UTF8_STRING) = "desktop 1", "desktop 2", "desktop 3", "desktop 4"
_NET_WORKAREA(CARDINAL) = 0, 30, 800, 570, 0, 30, 800, 570, 0, 30, 800, 570, 0, 30, 800, 570
_NET_DESKTOP_VIEWPORT(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0
_NET_NUMBER_OF_DESKTOPS(CARDINAL) = 4
_NET_DESKTOP_GEOMETRY(CARDINAL) = 800, 600
_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x1200079, 0x1000004, 0xe00005
_OB_THEME(UTF8_STRING) = "Carbon"
_OB_VERSION(UTF8_STRING) = "3.5.0"
_NET_SUPPORTED(ATOM) = _NET_SUPPORTING_WM_CHECK, _NET_WM_FULL_PLACEMENT, _NET_CURRENT_DESKTOP, _NET_NUMBER_OF_DESKTOPS, _NET_DESKTOP_GEOMETRY, _NET_DESKTOP_VIEWPORT, _NET_ACTIVE_WINDOW, _NET_WORKAREA, _NET_CLIENT_LIST, _NET_CLIENT_LIST_STACKING, _NET_DESKTOP_NAMES, _NET_CLOSE_WINDOW, _NET_DESKTOP_LAYOUT, _NET_SHOWING_DESKTOP, _NET_WM_NAME, _NET_WM_VISIBLE_NAME, _NET_WM_ICON_NAME, _NET_WM_VISIBLE_ICON_NAME, _NET_WM_DESKTOP, _NET_WM_STRUT, _NET_WM_STRUT_PARTIAL, _NET_WM_ICON, _NET_WM_ICON_GEOMETRY, _NET_WM_WINDOW_TYPE, _NET_WM_WINDOW_TYPE_DESKTOP, _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_ALLOWED_ACTIONS, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _NET_WM_STATE, _NET_WM_STATE_MODAL, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_SHADED, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER, _NET_WM_STATE_HIDDEN, _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_ABOVE, _NET_WM_STATE_BELOW, _NET_WM_STATE_DEMANDS_ATTENTION, _NET_MOVERESIZE_WINDOW, _NET_WM_MOVERESIZE, _NET_WM_USER_TIME, _NET_FRAME_EXTENTS, _NET_REQUEST_FRAME_EXTENTS, _NET_RESTACK_WINDOW, _NET_STARTUP_ID, _NET_WM_SYNC_REQUEST, _NET_WM_SYNC_REQUEST_COUNTER, _NET_WM_PID, _NET_WM_PING, _KDE_WM_CHANGE_STATE, _KDE_NET_WM_FRAME_STRUT, _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _OB_WM_ACTION_UNDECORATE, _OB_WM_STATE_UNDECORATED, _OPENBOX_PID, _OB_THEME, _OB_CONFIG_FILE, _OB_CONTROL, _OB_VERSION, _OB_APP_ROLE, _OB_APP_TITLE, _OB_APP_NAME, _OB_APP_CLASS, _OB_APP_TYPE
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0xa0000e
_OPENBOX_PID(CARDINAL) = 1307
RESOURCE_MANAGER(STRING) = "*customization:\t-color\n"
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
XFree86_VT(INTEGER) = 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants