subprocess.CalledProcessError: Command 'lake build Lean4Repl' returned non-zero exit status 1. #99
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
Hi, Can you upgrade to the latest version ( |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response, This is a very simple demo. Following your advice, I upgraded the version, but the problem still persists. from lean_dojo import *
repo = LeanGitRepo("https://github.com/yangky11/lean4-example", "a61b40b90afba0ee5a3357665a86f7d0bb57461d")
theorem = Theorem(repo, "Lean4Example.lean", "hello_world")
with Dojo(theorem) as (dojo, init_state):
print(init_state)
result = dojo.run_tac(init_state, "rw [add_assoc, add_comm b, ←add_assoc]")
assert isinstance(result, ProofFinished)
print(result) error 2023-11-30 11:16:46.961 | WARNING | lean_dojo.interaction.dojo:__init__:172 - Using Lean 4 without a hard timeout may hang indefinitely.
2023-11-30 11:16:52.968 | INFO | lean_dojo.utils:execute:113 -
2023-11-30 11:16:52.968 | ERROR | lean_dojo.utils:execute:114 - error: unknown target `Lean4Repl`
Traceback (most recent call last):
File "/home/rise/learn/leanDojo/interact.py", line 6, in <module>
with Dojo(theorem) as (dojo, init_state):
File "/home/rise/anaconda3/envs/chx-py3.10/lib/python3.10/site-packages/lean_dojo/interaction/dojo.py", line 293, in __enter__
raise ex
File "/home/rise/anaconda3/envs/chx-py3.10/lib/python3.10/site-packages/lean_dojo/interaction/dojo.py", line 237, in __enter__
self.container.run(
File "/home/rise/anaconda3/envs/chx-py3.10/lib/python3.10/site-packages/lean_dojo/container.py", line 193, in run
execute(cmd, capture_output=capture_output)
File "/home/rise/anaconda3/envs/chx-py3.10/lib/python3.10/site-packages/lean_dojo/utils.py", line 115, in execute
raise ex
File "/home/rise/anaconda3/envs/chx-py3.10/lib/python3.10/site-packages/lean_dojo/utils.py", line 110, in execute
res = subprocess.run(cmd, shell=True, capture_output=capture_output, check=True)
File "/home/rise/anaconda3/envs/chx-py3.10/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'lake build Lean4Repl' returned non-zero exit status 1.
|
Beta Was this translation helpful? Give feedback.
-
I was not able to reproduce the error. Can you run in debug mode (with the environment variable
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
@parsifal-chx @ohyeat It should be fixed in #108. Could you please try and let me know if the error still persists?