ModuleNotFoundError: No module named 'common.***'
Jukkniz opened this issue · 2 comments
Hello, thank you for your work, it's very interesting.
I would like to clarify whether it works on Windows or only on Linux?
I have Windows, but I satisfy all the general requirements from docs/setup.md.
I wanted to test your code and followed your instructions, but I had so many errors with packages. I was able to fix some of them, but one of them is still unsolved - "ModuleNotFoundError: No module named 'common.***', now all errors are related to module common only.
Thank you for your reply.
Hi @Jukkniz, theoretically it should work on windows. I think the problem is that the script doesn't find the path to the folder common
.
I achieved this by:
import sys
sys.path = ['.'] + sys.path
This will put the root directory for the repo at the front. Then when the script runs, it knows where common
is.
Unfortunately, I have not used Windows before.
That helped. Thank you.