tancheng / VectorCGRA

CGRA framework with vectorization support.
BSD 3-Clause "New" or "Revised" License
19 stars 11 forks source link

Question about runing the example test #19

Open n0thingNoob opened 1 month ago

n0thingNoob commented 1 month ago

Hi, I am trying to run the example test in the instructions but I have problems like this: pytest VectorCGRAKingMeshRTL_test.py -xvs --tb=short --test-verilog --dump-vtb --dump-vcd ============================= 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/VectorCGRA/cgra/translate/.hypothesis/examples')) rootdir: /home/michael/cgra/VectorCGRA configfile: pytest.ini plugins: hypothesis-6.114.1, pymtl3-3.1.13 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.64s ============================= Did I miss anything in the instruction? Thank you and have a nice day!

tancheng commented 1 month ago

Which pymtl u r using? % pip install -U git+https://github.com/tancheng/pymtl3.1@yo-struct-list-fix

n0thingNoob commented 1 month ago

Which pymtl u r using? % pip install -U git+https://github.com/tancheng/pymtl3.1@yo-struct-list-fix I am using the same command as the instructions for installing the Python. it is pymtl3-3.1.13

tancheng commented 1 month ago

Can you try python 3.7? Though I think 3.10 should also work... Plz check what is the difference between your installation and the CI/CD: https://github.com/tancheng/VectorCGRA/blob/master/.github/workflows/python-package.yml

The test you run is already included in github actions/verification and it passed before..

n0thingNoob commented 1 month ago

Yes, I have to uninstall the 3.10 venv and install the python3.7venv to make it work. I am not sure if this also relates to my computer's setup because I am using a small linux desktop with Intel 12th N95 chip and Ubuntu 22.04

tancheng commented 1 month ago

So now it works?

I did remember I have a working version for 3.10. I will try 3.10 later to double-check.

n0thingNoob commented 1 month ago

Yes, it works for two example tests in the instruction with python3.7. I don't know why I just cannot use 3.10 to do that on my computer