How can i debug my environment where mkdocs and mike cannot find material-extensions even though it is installed? #6839
-
Hi, Note I am adding this question as a discussion rather than an issue because I most likely made a mistake while setting my project up. I can use the deprecated emoji index to unblock my project for now, but i would like to use the updated packages. I have the following list of extensions in my
When I run
Here's my environment:
Any ideas on what may be causing this issue and pointers on how I can debug the build process in this environment? Should I try installing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @ritwika314, Firstly for a sanity-check you can do Perhaps your import sys
import os
for path in sys.path:
print("sys path:", path)
import material
print("material file:", os.path.abspath(material.__file__))
import material.extensions as extensions
print("extensions file:", os.path.abspath(extensions.__file__)) it runs from top to bottom, so if there is a crash with You can also run |
Beta Was this translation helpful? Give feedback.
Hello @ritwika314,
quite weird issue, especially if MkDocs does resolve the
material
theme name.Firstly for a sanity-check you can do
pip show mkdocs-material
. It should display the path to the installedmkdocs-material
module underLocation: <path>
. Then check inside of the<path>/material
directory if you have theextensions
folder withemoji.py
and__init__.py
files.Perhaps your
mkdocs
uses a differentsite-packages
directory than the one used withpip
orpython
commands.You can try running
python -m mkdocs serve
to see if there is another result.You can also debug it with a hook add the hook to your
mkdocs.yml
config and inside the hook write (also remove the failing emoji setting…