Skip to content

Missing output directories/files causing FileNotFoundError during reproduction #1

@SCAU-CWB

Description

@SCAU-CWB

When attempting to run the experiment with sample_v1.json, the script fails with a FileNotFoundError because the required output directories (res/res_all/ and res/res_pass/) do not exist. The script tries to write to these directories but crashes because they aren’t pre-created.

Traceback (most recent call last):
File "/mnt/e/test_oracle/chatassert/src/main/doall.py", line 377, in main
with open(os.path.join(PRO_DIR, "res/res_all/res_all_{}.csv".format(sample_id)), "w+") as resAll, open(os.path.join(PRO_DIR, "res/res_pass/res_pass_{}.csv".format(sample_id)), "w+") as resPass:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/e/chatassert/src/res/res_all/res_all_v1.csv'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions