Custom Query (2447 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (433 - 435 of 2447)

Ticket Resolution Summary Owner Reporter
#2708 WorksForMe Console KeyError: 'progress' Calum
Description

Seeing the following error on startup of the ncurses console

File "/home/ubuntu/deluge.git_master/deluge/transfer.py", line 118, in _handle_complete_message 
self.message_received(rencode.loads(zlib.decompress(data), decode_utf8=True))
File "/home/ubuntu/deluge.git_master/deluge/ui/client.py", line 123, in message_received d.callback(request[2])
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 362, in callback self._startRunCallbacks(result)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks current.result = callback(current.result, *args, **kw)
File "/home/ubuntu/deluge.git_master/deluge/ui/console/modes/alltorrents.py", line 434, in set_state self._sorted_ids = self._sort_torrents(self.curstate)
File "/home/ubuntu/deluge.git_master/deluge/ui/console/modes/alltorrents.py", line 584, in _sort_torrents result = sorted(result, cmp_func, lambda s: state.get(s)["progress"] == 100.0)
File "/home/ubuntu/deluge.git_master/deluge/ui/console/modes/alltorrents.py", line 584, in <lambda> result = sorted(result, cmp_func, lambda s: state.get(s)["progress"] == 100.0)
exceptions.KeyError: 'progress'
#1698 Fixed Console - KeyError 'state' nick nogare
Description

I'm using the dev version of deluge console and really like it, however i've encountered a bug.

Details of my setup Debian 6 python2.6 connecting to deluge 1.3.1 running deluge-console in screen

--- <exception caught here> ---

File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks

current.result = callback(current.result, *args, kw)

File "/usr/lib/pymodules/python2.6/deluge/ui/console/modes/alltorrents.py", line 312, in set_state newrows.append((format_utils.format_row([column.get_column_value(name,ts) for name in self.columns],self.column_widths),tsstate))

exceptions.KeyError: 'state' Unhandled error in Deferred: Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 460, in doRead return self.protocol.dataReceived(data) File "/usr/lib/pymodules/python2.6/deluge/ui/client.py", line 183, in dataReceived d.callback(request[2]) File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 361, in callback self._startRunCallbacks(result)

File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 455, in _startRunCallbacks

self._runCallbacks()

#1140 Fixed Console ui "add" autocomplete crashes on unicode filename nullie
Description

Console ui crashes then I try to list options for add command autocomplete and directory contains unicode filenames, i.e.:

add /path/to/directory/with/unicode/entries/ <TAB> <TAB>

Traceback:

[ERROR   ] 23:17:28 screen:300 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/nullie/work/deluge/trunk/deluge/ui/console/screen.py", line 298, in doRead
    self._doRead()
  File "/home/nullie/work/deluge/trunk/deluge/ui/console/screen.py", line 337, in _doRead
    self.input, self.input_cursor = self.tab_completer(self.input, self.input_cursor, second_hit)
  File "/home/nullie/work/deluge/trunk/deluge/ui/console/main.py", line 377, in tab_completer
    self.write(match)
  File "/home/nullie/work/deluge/trunk/deluge/ui/console/main.py", line 268, in write
    self.screen.add_line(line, not self.batch_write)
  File "/home/nullie/work/deluge/trunk/deluge/ui/console/screen.py", line 193, in add_line
    line_length = colors.get_line_length(line)
  File "/home/nullie/work/deluge/trunk/deluge/ui/console/colors.py", line 129, in get_line_length
    line = line.encode(encoding, "replace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)

That happens because os.listdir in deluge/ui/console/commands/add.py:94 gets encoded string, so it returns encoded strings as result, and screen.py doesn't handle encoded strings.

I could fix this, but don't know where should I do decoding (or make screen accept encoded strings).

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.