Page 1 of 1

Error while creating torrent file

Posted: Tue Apr 21, 2009 3:11 pm
by pi11
Iam trying to create torrent file for directory with many files (23 Gb).
And reciveing this error:

Code: Select all

/usr/lib/python2.6/site-packages/deluge/metafile.py:23: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import sha
Exception in thread Thread-72:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/site-packages/deluge/ui/gtkui/createtorrentdialog.py", line 333, in create_torrent
    httpseeds=httpseeds)
  File "/usr/lib/python2.6/site-packages/deluge/metafile.py", line 96, in make_meta_file
    info = makeinfo(path, piece_length, progress, name, content_type, private)
  File "/usr/lib/python2.6/site-packages/deluge/metafile.py", line 165, in makeinfo
    p2 = [to_utf8(n) for n in p]
  File "/usr/lib/python2.6/site-packages/deluge/metafile.py", line 137, in to_utf8
    'illegal bytes.') % (name, get_filesystem_encoding())
TypeError: unsupported operand type(s) for %: 'exceptions.Exception' and 'tuple'

Python 2.6
Deluge 1.1.6

Re: Error while creating torrent file

Posted: Tue Apr 21, 2009 4:55 pm
by andar
What is your file system encoding?

Code: Select all

$ python
>>> import sys
>>> print sys.getfilesystemencoding()

Re: Error while creating torrent file

Posted: Tue Apr 21, 2009 5:15 pm
by pi11
UTF-8