Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#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 Cas)

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 Changed 4 years ago by Cas

  • Description modified (diff)
  • Milestone changed from needs verified to 2.0
  • Version changed from master (git) to develop (git)

comment:2 Changed 4 years ago by jl303

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

comment:3 Changed 4 years ago by Cas

No it's not been fixed yet, I'll look into it this week

comment:4 Changed 4 years ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed: [9b92bc2ba]

comment:5 Changed 3 years ago by jl303

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

comment:6 Changed 2 years ago by Cas

  • Milestone changed from 2.0 to 2.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.