pnnl / OpenCGRA

OpenCGRA is an open-source framework for modeling, testing, and evaluating CGRAs.
Other
133 stars 22 forks source link

Question about running the test #15

Closed n0thingNoob closed 1 week ago

n0thingNoob commented 1 week ago

Hi, I have followed the instructions on GitHub and I am trying to run the test shown in the instruction but I got errors like this: (venv) michael@michael-DNB20-series:~/cgra/OpenCGRA/cgra/translate$ pytest --tb=short -sv CGRARTL_test.py ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.3.3, pluggy-1.5.0 -- /home/michael/venv/bin/python3 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/michael/cgra/OpenCGRA/cgra/translate/.hypothesis/examples')) rootdir: /home/michael/cgra/OpenCGRA configfile: pytest.ini plugins: hypothesis-6.114.1, pymtl3-0.5.5.1 collected 1 item
INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/main.py", line 283, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/main.py", line 336, in _main INTERNALERROR> config.hook.pytest_collection(session=session) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_hooks.py", line 513, in call INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 120, in _hookexec INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 139, in _multicall INTERNALERROR> raise exception.with_traceback(exception.traceback) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/logging.py", line 790, in pytest_collection INTERNALERROR> return (yield) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/warnings.py", line 121, in pytest_collection INTERNALERROR> return (yield) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr] INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/config/init.py", line 1417, in pytest_collection INTERNALERROR> return (yield) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 103, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/main.py", line 347, in pytest_collection INTERNALERROR> session.perform_collect() INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/_pytest/main.py", line 811, in perform_collect INTERNALERROR> self.config.pluginmanager.check_pending() INTERNALERROR> File "/home/michael/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 391, in check_pending INTERNALERROR> raise PluginValidationError( INTERNALERROR> pluggy._manager.PluginValidationError: unknown hook 'pytest_cmdline_preparse' in plugin <module 'pytest_plugin.pytest_pymtl3' from '/home/michael/venv/lib/python3.10/site-packages/pytest_plugin/pytest_pymtl3.py'>

============================ no tests ran in 0.89s ============================= I am not sure which step I missed and how to solve this problem. Could you help me with this?