Skip to content

UnicodeEncodeError when a plugin fails to load #1998

Closed
@nicoddemus

Description

@nicoddemus

Hi,

A coworker got this traceback when a plugin failed to import:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 9939: ordinal not in range(128)

This happened in config.py, at this point:

        except ImportError as e:
            new_exc = ImportError('Error importing plugin "%s": %s' % (modname, e))

And it was caused because the message came from the OS in pt-BR due to a DLL not being found:

DLL load failed: Não foi possível encontrar o módulo especificado.

cc @dplucenio

Metadata

Metadata

Assignees

Labels

good first issueeasy issue that is friendly to new contributortopic: reportingrelated to terminal output and user-facing messages and errors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions