-
Notifications
You must be signed in to change notification settings - Fork 90
Description
What's your CLI version?
1.8.1
Description & steps to reproduce
This is the main.star file given in their guide to set up a private ethereum blockchain:
main.star
import yaml
geth = import_module("github.com/kurtosis-tech/geth-package/lib/geth.star")
lighthouse = import_module("github.com/kurtosis-tech/lighthouse-package/lib/lighthouse.star")
with open("./network_params.yaml") as stream:
network_params = yaml.safe_load(stream)
def run(plan):
# Generate genesis, note EL and the CL needs the same timestamp to ensure that timestamp based forking works
final_genesis_timestamp = geth.generate_genesis_timestamp()
el_genesis_data = geth.generate_el_genesis_data(plan, final_genesis_timestamp, network_params)
# NEW LINES TO ADD:
# Run the nodes
el_context = geth.run(plan, network_params, el_genesis_data)
lighthouse.run(plan, network_params, el_genesis_data, final_genesis_timestamp, el_context)
return
When I run kurtosis run main.star I get the following error:
main.star
INFO[2025-06-02T08:51:16+05:30] Creating a new enclave for Starlark to run inside...
INFO[2025-06-02T08:51:17+05:30] Enclave 'tropical-cenote' created successfully
There was an error interpreting Starlark code
Evaluation error: module has no .load_yaml field or method
at [7:26]: run
Error encountered running Starlark code.
INFO[2025-06-02T08:51:19+05:30] ========================================================
INFO[2025-06-02T08:51:19+05:30] || Created enclave: tropical-cenote ||
INFO[2025-06-02T08:51:19+05:30] ========================================================
Name: tropical-cenote
UUID: 19af60c6f390
Status: RUNNING
Creation Time: Mon, 02 Jun 2025 08:51:16 IST
Flags:
========================================= Files Artifacts =========================================
UUID Name
========================================== User Services ==========================================
UUID Name Ports Status
Desired behavior
It should run the script successfully and create a private etherum blockchain
What is the severity of this bug?
Critical; I am blocked and Kurtosis is unusable for me because of this bug.
What area of the product does this pertain to?
CLI: the Command Line Interface