TinyTapeout / tt09-verilog-template

Submission template for Tiny Tapeout 9 - Verilog HDL Projects
Apache License 2.0
7 stars 84 forks source link

No such file or directory: 'yosys' #8

Closed xzores closed 3 days ago

xzores commented 1 week ago

Setup

This is a continuation of https://github.com/TinyTapeout/tt09-verilog-template/issues/7 I removed all the invalid flag from the python file and now the linter does not complain, but yosys does.

The error log:

[11:19:07] VERBOSE  Running 'Yosys.JsonHeader'…                                                                                                                                                                                                                                                                                                                                                               step.py:1088
[11:19:07] VERBOSE  Logging subprocess to runs/wokwi/05-yosys-jsonheader/yosys-jsonheader.log…                                                                                                                                                                                                                                                                                                                step.py:1268
Classic - Stage 5 - Generate JSON Header ━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  4/76 0:00:00
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/__main__.py", line 440, in <module>
    cli()
  File "/workspace/tt/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/workspace/tt/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/workspace/tt/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/flows/cli.py", line 434, in pdk_resolve_wrapper
    return f(*args, pdk_root=pdk_root, pdk=pdk, scl=scl, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/__main__.py", line 435, in cli
    run(ctx, **run_kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/__main__.py", line 145, in run
    state_out = flow.start(
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/flows/flow.py", line 656, in start
    final_state, step_objects = self.run(
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/flows/sequential.py", line 322, in run
    current_state = step.start(
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/steps/step.py", line 1113, in start
    views_updates, metrics_updates = self.run(state_in_result, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/steps/yosys.py", line 355, in run
    return super().run(state_in, power_defines=True, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/steps/yosys.py", line 337, in run
    return super().run(state_in, env=env, **kwargs)
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/steps/tclstep.py", line 205, in run
    subprocess_result = self.run_subprocess(
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/steps/tclstep.py", line 281, in run_subprocess
    return super().run_subprocess(
  File "/workspace/tt/venv/lib/python3.10/site-packages/openlane/steps/step.py", line 1271, in run_subprocess
    process = _popen_callable(
  File "/workspace/tt/venv/lib/python3.10/site-packages/psutil/__init__.py", line 1408, in __init__
    self.__subproc = subprocess.Popen(*args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'yosys'
2024-10-23 11:19:07,790 - project    - ERROR    - harden failed
urish commented 3 days ago

See my comment in the original issue: https://github.com/TinyTapeout/tt09-verilog-template/issues/7#issuecomment-2440051219