BurntSushi / pytyle3

An updated (and much faster) version of pytyle that uses xpybutil and is compatible with Openbox Multihead.
Do What The F*ck You Want To Public License
180 stars 19 forks source link

UnboundLocalError: local variable 'basestring' referenced before assignment #23

Open ViktorNova opened 9 years ago

ViktorNova commented 9 years ago

I am having this issue, which was also reported by someone else in the past but was closed without explanation: https://github.com/BurntSushi/pytyle3/issues/22

This error happens immediately on startup

Here is the traceback

Traceback (most recent call last):
  File "/usr/bin/pytyle3", line 19, in <module>
    client.update_clients()
  File "/usr/lib/python2.7/site-packages/pt3/client.py", line 192, in update_clients
    track_client(c)
  File "/usr/lib/python2.7/site-packages/pt3/client.py", line 208, in track_client
    clients[client] = Client(client)
  File "/usr/lib/python2.7/site-packages/pt3/client.py", line 52, in __init__
    tile.update_client_add(self)
  File "/usr/lib/python2.7/site-packages/pt3/tile.py", line 88, in update_client_add
    tiler.add(c)
  File "/usr/lib/python2.7/site-packages/pt3/layouts/layout_vert_horz.py", line 21, in add
    self.store.add(c)
  File "/usr/lib/python2.7/site-packages/pt3/layouts/store.py", line 16, in add
    ewmh.request_wm_state_checked(c.wid,0,util.get_atom('_NET_WM_STATE_BELOW')).check()
  File "/usr/lib/python2.7/site-packages/xpybutil/ewmh.py", line 1434, in request_wm_state_checked
    action, first, second, source)
  File "/usr/lib/python2.7/site-packages/xpybutil/event.py", line 90, in root_send_client_event_checked
    packed = pack_client_message(window, message_type, *data)
  File "/usr/lib/python2.7/site-packages/xpybutil/event.py", line 72, in pack_client_message
    if isinstance(message_type, basestring):
UnboundLocalError: local variable 'basestring' referenced before assignment