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
materialtheme name.Firstly for a sanity-check you can do
pip show mkdocs-material. It should display the path to the installedmkdocs-materialmodule underLocation: <path>. Then check inside of the<path>/materialdirectory if you have theextensionsfolder withemoji.pyand__init__.pyfiles.Perhaps your
mkdocsuses a differentsite-packagesdirectory than the one used withpiporpythoncommands.You can try running
python -m mkdocs serveto see if there is another result.You can also debug it with a hook add the hook to your
mkdocs.ymlconfig and inside the hook write (also remove the failing emoji setting…