Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'resources.fonts' #2

Open
Cantersoft opened this issue Oct 20, 2021 · 4 comments
Open

ModuleNotFoundError: No module named 'resources.fonts' #2

Cantersoft opened this issue Oct 20, 2021 · 4 comments

Comments

@Cantersoft
Copy link

After installing the requirements and running depix_hmm.py, ModuleNotFoundError: No module named 'resources.fonts' is returned. I have manually installed the resources module too, to see if that would fix it, but no luck.

@KelviNosse
Copy link

KelviNosse commented Oct 24, 2021

@Cantersoft I fixed this by appending export PYTHONPATH="${PYTHONPATH}:/path/to/the/project/" to the venv/bin/activate file

Let me know if it works for you!

@Cantersoft
Copy link
Author

Isn't that a Linux path? If this repository wasn't designed to work with Windows I could just use Linux instead.

@KelviNosse
Copy link

@Cantersoft Haven't tested on Windows, but you should be able to run it through wsl without problems too.

@JonasSchatz
Copy link
Owner

Generally: I've been developing this tool on Windows and Ubuntu, so it should work on both systems. It's interesting that @KelviNosse has had the same issue, but apparently solved it. Btw, the only reason resources.fonts exists is, that the most commonly found fonts are not installed on Linux distributions.

I haven't encountered this particular issue. Can you give more information on how you execute depix_hmm.py ? Have you tried running the tests? I am using PyCharm, it's possible that it is implicitely doing something in the background that prevents this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants