Skip to content

cannot find module 'ext.slugs' (No module named 'ext') #7242

Answered by kamilkrzyskow
pitosalas asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @pitosalas,
you can run:

python -c "import sys; print(*sys.path, sep='\n')"

to check what directories are in your python interpreter path.

You can add your current directory with export PYTHONPATH=. on a UNIX-like terminal.
Note that . means every "current directory" at any given path, so watch out for name conflicts, but overall didn't happen to me yet despite working in many MkDocs projects.
You can also add an absolute path.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by kamilkrzyskow
Comment options

You must be logged in to vote
1 reply
@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
1 reply
@kamilkrzyskow
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants