Skip to content

code not working on python 3.5 TypeError: a bytes-like object is required, not 'str' #3

Description

@gwen10nnyson

Traceback (most recent call last):
File "ptb-utt.py", line 155, in
main(config)
File "ptb-utt.py", line 97, in main
prepare_dirs_loggers(config, os.path.basename(file))
File "C:\Users\hw\NeuralDialog-LAED-master\laed\utils.py", line 105, in prepare_dirs_loggers
json.dump(config.dict, fp, indent=4, sort_keys=True)
File "C:\Users\hw\Anaconda3\envs\py35\lib\json_init_.py", line 179, in dump
fp.write(chunk)
TypeError: a bytes-like object is required, not 'str'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions