#7 Initial configuration creation fails

Cerrada
aberta %!s(int64=6) %!d(string=hai) anos por Hoshpak · 0 comentarios

Python 3, did not use the configuration assistant:

Traceback (most recent call last):
  File "./stov", line 246, in <module>
    CONF.initialize()
  File "/home/helmut/Documents/dev/python/stov/lib_stov/configuration.py", line 121, in initialize
    self.write_config()
  File "/home/helmut/Documents/dev/python/stov/lib_stov/configuration.py", line 104, in write_config
    json.dump(self.values, configfile, indent=0)
  File "/usr/lib/python3.6/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/usr/lib/python3.6/json/encoder.py", line 430, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable
Python 3, did not use the configuration assistant: ``` Traceback (most recent call last): File "./stov", line 246, in <module> CONF.initialize() File "/home/helmut/Documents/dev/python/stov/lib_stov/configuration.py", line 121, in initialize self.write_config() File "/home/helmut/Documents/dev/python/stov/lib_stov/configuration.py", line 104, in write_config json.dump(self.values, configfile, indent=0) File "/usr/lib/python3.6/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.6/json/encoder.py", line 430, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict yield from chunks File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode o = _default(o) File "/usr/lib/python3.6/json/encoder.py", line 180, in default o.__class__.__name__) TypeError: Object of type 'bytes' is not JSON serializable ```
Accede para unirte á conversa.
Sen fito
Sen asignado
1 participantes
Cargando...
Cancelar
Gardar
Aínda non existe contido.