#3076 closed bug (Fixed)
Can't Remove Torrent Using Console "global name '_n' is not defined"
| Reported by: | jl303 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.0.0 |
| Component: | Console UI | Version: | develop |
| Keywords: | Cc: |
Description (last modified by )
I get an error when I try to remove a torrent using deluge-console.
deluge-console 2.0.0.dev7077 libtorrent: 1.1.3.0 Python: 2.7.12+ OS: Linux Ubuntu 16.10 yakkety
$ deluge-console rm 03b
global name '_n' is not defined
13:14:32.497 [ERROR ][deluge.ui.console.cmdline.command :1
35 ] global name '_n' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/cmdline/command.py",
line 132, in exec_command
ret = self._commands[options.command].handle(options)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/cmdline/commands/rm.p
y", line 40, in handle
_n('torrent', 'torrents', len(torrent_ids)),
NameError: global name '_n' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/cmdline/command.py",
line 132, in exec_command
ret = self._commands[options.command].handle(options)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/cmdline/commands/rm.p
y", line 40, in handle
_n('torrent', 'torrents', len(torrent_ids)),
NameError: global name '_n' is not defined
Change History (6)
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|---|
| Milestone: | needs verified → 2.0 |
| Version: | master (git) → develop (git) |
comment:2 by , 9 years ago
comment:5 by , 9 years ago
I still get the following errors for bunch of commands like rm, resume, and so on. Also if I change some settings in preference using web-ui, I get the similar errors in the console.
deluged 2.0.0.dev7097
libtorrent: 1.1.4.0
Python: 2.7.12+
OS: Linux Ubuntu 16.10 yakkety
self.console.write_event(string)
lqqqqqqqqqqqqqqqqqqqqqqqk File "/usr/lib/python2.7/dist-px Filter /consolx/main.py", line 441, in write_event
x * All 0 x self.active_modex - Active 0 x
x - Downloading 0 x/python2.7/dist-packages/deluge/ui/console/modes/cmdlinx - Seeding 0 x
x - Paused 0 x self.add_line(line, not self.batch_write)
x - Error 0 x File "/ux - Checking 0 xkages/deluge/ui/console/modes/cmdline.py", line 461, inx - Queued 0 x
x - Allocating 0 x= colors.get_line_width(line)
x - Moving 0 x File "/usr/lib/python2.7xdist-packages/deluge/uixconsole/utils/colors.py", line 163, in get_line_width
x x x xwidth(line)
x x File "/usr/lib/python2.7/dist-packages/delx xat_utils.py", line 300, in strwidth
x x return sum([1 + x xn ['W', 'F']) for char in string])
x x exceptions.TypeError:xeast_asian_width() arguxent 1 must be unicode, not str
83
Note:
See TracTickets
for help on using tickets.



Having the same problem after updating to: deluge-console 2.0.0.dev7095 libtorrent: 1.1.3.0 Python: 2.7.12+ OS: Linux Ubuntu 16.10 yakkety