Cannot run insiders with the optimization plugin - Config value "plugins": The "optimize" plugin is not installed #6446
-
Hello! I've faced with the following problem: I've installed mkdocs-material 9.4.14+insiders.4.46.0 and try to run the optimize plugin (including image optimization). The mkdocs.yml part with the optimize plugin activation looks like this:
requirements.txt looks like this:
I'm running the docs build on netlify. The newtlify config file looks like this:
It looks like Netlify installs evertyhing but returns the following error in the end:
Did someone face with the same problem? What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 30 replies
-
I note that you have |
Beta Was this translation helpful? Give feedback.
-
Hello, INFO: pip is looking at multiple versions of mkdocs-material[imaging] to determine which version is compatible with other requirements. This could take a while.
Collecting mkdocs-material[imaging] (from -r requirements.txt (line 10))
Obtaining dependency information for mkdocs-material[imaging] from https://files.pythonhosted.org/packages/a0/06/48127f4ba9cea7c0ccb8a63f8db7c4323caca1301ee42490a636215a87a6/mkdocs_material-9.4.13-py3-none-any.whl.metadata
Downloading mkdocs_material-9.4.13-py3-none-any.whl.metadata (16 kB)
Obtaining dependency information for mkdocs-material[imaging] from https://files.pythonhosted.org/packages/85/9a/e8b05e18c51c528dc91837568eac7fa198ecaa89e4480b9361ac6a676dbe/mkdocs_material-9.4.12-py3-none-any.whl.metadata
... "This could take a while" is too long for me, so I changed the entry to ERROR: Cannot install mkdocs-material 9.4.14+insiders.4.46.0 (from git+https://github.com/...) and mkdocs-material[imaging]==9.4.14 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested mkdocs-material 9.4.14+insiders.4.46.0 (from git+https://github.com/...)
mkdocs-material[imaging] 9.4.14 depends on mkdocs-material 9.4.14 (from https://files.pythonhosted.org/packages/34/31/98fff7fe1401cf8c45127d836cd34b6d512a5e984f2f4dc3cbb17aad8674/mkdocs_material-9.4.14-py3-none-any.whl (from https://pypi.org/simple/mkdocs-material/) (requires-python:>=3.8))
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts Therefore it seems that there is some sort of conflict with those 2 packages 🤔. The Netlify guide for Insiders also instructs to only use the Insiders version: https://www.starfallprojects.co.uk/projects/deploy-host-docs/deploy-mkdocs-material-netlify/ The
mkdocs-material/pyproject.toml Lines 65 to 68 in 560bb90 This allowed me to successfully install it with pip. As for the other matter of using Netlify and probably a Linux Docker image, I explained some debugging methods for packages in another discussion: mkdocs/mkdocs#3492 |
Beta Was this translation helpful? Give feedback.
-
Thanks everyone for the help! CLosing the issues - the problem has been caused by Netlify limitations |
Beta Was this translation helpful? Give feedback.
Hello,
using your example
requirements.txt
(changing of course the URL to Insiders) on Windows,pip
reported with: