Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Dump Error #43

Open
felipunky opened this issue Apr 10, 2020 · 0 comments
Open

JSON Dump Error #43

felipunky opened this issue Apr 10, 2020 · 0 comments

Comments

@felipunky
Copy link

Hi guys thanks for all the work on the amazing tools.

I wanted to report a bug I encountered in Hydra's writeMetadataFile function, I guess the problem was something related to the encodings of ascii characters or something like that.

This function works:

def writeMetadataFile(fileName, repoTargetFolder, metaDataDict):
    jsonFilePath = repoTargetFolder + '\\' + 'input.json'
    try:
        with open(jsonFilePath, "w") as outfile:
            json.dump(metaDataDict, outfile, ensure_ascii=False)
    except:
        print("Oops!",sys.exc_info()[0],"occured.")
    return jsonFilePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants