#2007: UnicodeDecodeError when logging to file
---------------------+------------------------------------------------------
 Reporter:  non7top  |       Owner:            
     Type:  bug      |      Status:  new       
 Priority:  minor    |   Milestone:  Future    
Component:  other    |     Version:  git master
 Keywords:           |  
---------------------+------------------------------------------------------
 On latest git master
 {{{
 $ deluged --do-not-daemonize -L debug -l
 /home/non7top/.config/deluge/deluged.log
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 104:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 106:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 107:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 104:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 104:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 107:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 106:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 Traceback (most recent call last):
   File "/usr/lib/python2.7/logging/__init__.py", line 865, in emit
     stream.write(fs % msg.encode("UTF-8"))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 104:
 ordinal not in range(128)
 Logged from file alertmanager.py, line 124
 ^C^CUnhandled error in Deferred:
 Unhandled Error
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line
 286, in addCallbacks
     self._runCallbacks()
   File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line
 542, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File "/usr/lib/python2.7/site-packages/deluge/component.py", line 275,
 in on_depends_started
     return self.components[name]._component_start()
   File "/usr/lib/python2.7/site-packages/deluge/component.py", line 126,
 in _component_start
     d = maybeDeferred(self.start)
 --- <exception caught here> ---
   File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line
 133, in maybeDeferred
     result = f(*args, **kw)
   File "/usr/lib/python2.7/site-packages/deluge/core/torrentmanager.py",
 line 216, in start
     self.load_state()
   File "/usr/lib/python2.7/site-packages/deluge/core/torrentmanager.py",
 line 677, in load_state
     resume_data=resume_data.get(torrent_state.torrent_id))
   File "/usr/lib/python2.7/site-packages/deluge/core/torrentmanager.py",
 line 505, in add
     torrent = Torrent(handle, options, state, filename, magnet, owner)
   File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line
 192, in __init__
     self.set_options(self.options)
   File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line
 247, in set_options
     OPTIONS_FUNCS[key](value)
   File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line
 381, in set_file_priorities
 self.set_prioritize_first_last(self.options["prioritize_first_last_pieces"])
   File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line
 316, in set_prioritize_first_last
     slices = ti.map_block(n, 0, ti.piece_size(n))
 exceptions.KeyboardInterrupt:
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2007>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to