Opened 4 months ago

#3385 new bug

TypeError: a bytes-like object is required, not 'str'

Reported by: fdge00 Owned by:
Priority: minor Milestone: needs verified
Component: Unknown Version: 2.0.3
Keywords: Cc:


Python 3.7 libtorrent 1.2.5 boost 1.72 FreeBSD 11.3-RELEASE-p7 (FreeNAS.amd64)

Traceback (most recent call last):
  File "/home/deluge/.local/bin/deluged", line 11, in <module>
    load_entry_point('deluge==2.0.4.dev0', 'console_scripts', 'deluged')()
  File "/home/deluge/.local/lib/python3.7/site-packages/deluge-2.0.4.dev0-py3.7.egg/deluge/core/", line 87, in start_daemon
    options = parser.parse_args()
  File "/home/deluge/.local/lib/python3.7/site-packages/deluge-2.0.4.dev0-py3.7.egg/deluge/", line 250, in parse_args
    return self._handle_ui_options(options)
  File "/home/deluge/.local/lib/python3.7/site-packages/deluge-2.0.4.dev0-py3.7.egg/deluge/", line 329, in _handle_ui_options
    _file.write('%d\n' % os.getpid())
TypeError: a bytes-like object is required, not 'str'

changing the line to

_file.write(b'%d\n' % os.getpid())

allows it to get further, but then I get an OpenSSL error which I'll make another ticket for.

Change History (0)

Note: See TracTickets for help on using tickets.