Skip to content

cocotb version 2.0 breaks in the agentic and nonagentic_code_generation_commercial datasets #20

@ali-sadigh

Description

@ali-sadigh

The statement “from cocotb.runner import get_runner” in some datasets breaks for cocotb version 2.0, but works for version 1.9. The runner has moved to the cocotb_tools in version 2.0, thus "from cocotb_tools.runner import get_runner". This imports the runner OK but crashes later in the code, as the implementation perhaps has a breaking change compared to the provious version.

I eneded up restricting cocotb's version using "pip3 install 'cocotb>=1.9,<2.0'" in the affected datasets and it solved the problem, at least for now.

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