I have this weird bug of No module named 'timeout_decorator' when trying to import timeout_decorator. I have timeout-decorator==0.4.1 installed in my virtual environment and I am able to import timeout_decorator in python interpreter. But when I ran pytest test.py, it threw this error. I have pytest version 5.4.2. Anyone has any ideas ?
I think I have some problems with my virtual environment and the module probably did not point to the right system path. It works when the python packages are in the system path.
No module named 'timeout_decorator'