web-arena-x / webarena

Code repo for "WebArena: A Realistic Web Environment for Building Autonomous Agents"
https://webarena.dev
Apache License 2.0
700 stars 108 forks source link

minimal_example.py assumes python == python3 #94

Closed tdene closed 6 months ago

tdene commented 8 months ago

In this code-block of minimal_example.py, it is assumed that the "python" executable on the system will point to "python3".

This is often not the case.

The output of the subprocess run should be inspected for errors, and a try-catch should automatically attempt to re-execute the subprocess with "python3" instead of "python".

tdene commented 8 months ago

The prepare.sh file has the same issue.

tdene commented 8 months ago

This line has the same issue

shuyanzhou commented 8 months ago

Hi @tdene maybe you could modify the code and hard code the path to your python executable. You can localize your desired version by which python and change the code block to

p = subprocess.run(
    ["<your_python_executable>", "scripts/generate_test_data.py"], capture_output=True
)