Skip to content

Error in make setup: setup-cocotb-env is not run using venv-cocotb python #370

Open
@bman12three4

Description

@bman12three4

I believe this is the fix:

diff --git a/Makefile b/Makefile
index 8bbd1b6..0de8a89 100644
--- a/Makefile
+++ b/Makefile
@@ -349,7 +349,7 @@ install-caravel-cocotb:

 .PHONY: setup-cocotb-env
 setup-cocotb-env:
-       @(python3 $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT))
+       @(./venv-cocotb/bin/$(PYTHON_BIN) $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT))

 .PHONY: setup-cocotb
 setup-cocotb: install-caravel-cocotb setup-cocotb-env simenv-cocotb

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