Advertisement
Guest User

pysim_typeerror

a guest
Jul 5th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. (env) ➜ counter ./tb_counter.py 4
  2. Traceback (most recent call last):
  3. File "/Users/sam/swdev/scratchpad/gateware/amaranth_learning/counter/./tb_counter.py", line 47, in <module>
  4. with sim.write_vcd("counter.vcd"):
  5. File "/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
  6. return next(self.gen)
  7. ^^^^^^^^^^^^^^
  8. File "/Users/sam/swdev/scratchpad/gateware/amaranth_learning/env/lib/python3.11/site-packages/amaranth/sim/pysim.py", line 329, in write_vcd
  9. vcd_writer = _VCDWriter(self._fragment,
  10. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  11. File "/Users/sam/swdev/scratchpad/gateware/amaranth_learning/env/lib/python3.11/site-packages/amaranth/sim/pysim.py", line 94, in __init__
  12. if re.search(r"[ \t\r\n]", var_name):
  13. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  14. File "/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/__init__.py", line 176, in search
  15. return _compile(pattern, flags).search(string)
  16. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  17. TypeError: expected string or bytes-like object, got 'NoneType'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement