Traceback (most recent call last):


 "/nix/store/dapv0ldc6pw0hsq3fdqfpc9aii6xwqq1-ranger-1.9.1/bin/.ranger-wrapped", line 36, in <module>

import ranger
# NOQA pylint: disable=import-self,wrong-import-position


 "/nix/store/dapv0ldc6pw0hsq3fdqfpc9aii6xwqq1-ranger-1.9.1/lib/python3.6/site-packages/ranger/__init__.py", line 40, in <module>

from ranger.core.main import main
# NOQA pylint: disable=wrong-import-position


 "/nix/store/dapv0ldc6pw0hsq3fdqfpc9aii6xwqq1-ranger-1.9.1/lib/python3.6/site-packages/ranger/core/main.py", line 22, in <module>

'Locale: {0}'.format('.'.join(str(s) for s in locale.getlocale())),


 "/nix/store/zdw6v0s91x1d4r2pjj44vk8cz40m99kx-python3-3.6.6/lib/python3.6/locale.py", line 581, in getlocale

return _parse_localename(localename)


 "/nix/store/zdw6v0s91x1d4r2pjj44vk8cz40m99kx-python3-3.6.6/lib/python3.6/locale.py", line 490, in _parse_localename

raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/salt/utils/process.py", line 760, in wrapped_run_func

return run_func()


 "/usr/lib/python3/dist-packages/salt/master.py", line 1139, in run

self.key,


 "/usr/lib/python3/dist-packages/salt/master.py", line 1891, in __init__

ignore_config_errors=True


 "/usr/lib/python3/dist-packages/salt/minion.py", line 898, in __init__

self.opts['grains'] = salt.loader.grains(opts)


 "/usr/lib/python3/dist-packages/salt/loader.py", line 808, in grains

ret = funcs[key]()


 "/usr/lib/python3/dist-packages/salt/grains/core.py", line 2279, in ip_fqdn

info = socket.getaddrinfo(_fqdn, None, socket_type)


 "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo

for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
