liftoff/GateOne — Issue #59: Python 2.6 Issues
Author: zebulon501
Created: 2011-11-06 22:30:23+00:00
State: open

Due to http://bugs.python.org/issue5228, gateone can't be run out of the box with Python 2.6, as stated in setup.py and setup.cfg:
```[E 111106 23:13:02 websocket:173] Uncaught exception in /ws
Traceback (most recent call last):
File "/usr/local/python26/lib/python2.6/site-packages/tornado/websocket.py", line 170, in wrapper
return callback(*args, **kwargs)
File "gateone.py", line 718, in on_message
self.commands[key](value)
File "gateone.py", line 945, in new_terminal
terminal.CALLBACK_TITLE, safe_callback, callback_id)
File "", line 2, in add_callback
File "/usr/local/python26/lib/python2.6/multiprocessing/managers.py", line 740, in _callmethod
raise convert_to_error(kind, result)
RemoteError:
---------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/python26/lib/python2.6/multiprocessing/managers.py", line 214, in serve_client
request = recv()
TypeError: type 'partial' takes at least one argument
---------------------------------------------------------------------------
```

There are also some str.decode() issues, as Python 2.6 version doesn't have named arguments:
```[E 111106 23:13:11 termio:448] Got BIZARRO exception in proc_read (WTF?): TypeError('decode() takes no keyword arguments',)
Traceback (most recent call last):
File "/opt/gateone/liftoff-GateOne-a041bdd/gateone/termio.py", line 439, in _buffer_to_term
self.term_write(updated)
File "/opt/gateone/liftoff-GateOne-a041bdd/gateone/termio.py", line 397, in term_write
output = unicode(chars.decode('utf-8', errors="ignore"))
TypeError: decode() takes no keyword arguments
```
Is Python 2.6 supported or do I have to upgrade to Python 2.7?