Skip to content

'ascii' codec can't encode characters in position 45-48: ordinal not in range(128) #1237

@mytelegrambot

Description

@mytelegrambot

Expected behaviour:

  1. download torrent.
  2. add torrent to transmission.

Actual behaviour:

but can't add torrent to transmission.

Steps to reproduce:

  • Step 1: ...

Config:

paste relevant config
use paste service if config is too long

Log:

2016-06-15 12:13 CRITICAL task          tvshows         BUG: Unhandled error in plugin transmission: 'ascii' codec can't encode characters in position 45-48: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/task.py", line 443, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/plugin_transmission.py", line 300, in on_task_output
    self.add_to_transmission(self.client, task, config)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/plugin_transmission.py", line 389, in add_to_transmission
    options = self._make_torrent_options_dict(config, entry)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/plugin_transmission.py", line 323, in _make_torrent_options_dict
    add['download_dir'] = text_to_native_str(pathscrub(path))
  File "/usr/local/python/lib/python2.7/site-packages/future/utils/__init__.py", line 221, in text_to_native_str
    return unicode(t).encode(encoding)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 45-48: ordinal not in range(128)

Additional information:

  • Flexget Version:
/usr/local/flexget/env/bin/flexget -V
2.0.46
You are on the latest release.
  • Python Version:
python -V
Python 2.7.9
  • Installation method: pip
  • OS and version: Synology DSM
  • Link to crash log:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions