Skip to content

Error Json(path="object.json") : AttributeError: 'str' object has no attribute 'read' #21

Description

@limsan

Traceback (most recent call last):
File "testNameTupled.py", line 6, in
vals = namedtupled.json(path="object.json")
File "C:\Users\PERKASA\AppData\Local\conda\conda\envs\python2\lib\site-packages\namedtupled\integrations.py", line 19, in load_json
return mapper(json.load(path), nt_name=name)
File "C:\Users\PERKASA\AppData\Local\conda\conda\envs\python2\lib\json_init
.py", line 287, in load
return loads(fp.read(),
AttributeError: 'str' object has no attribute 'read'

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