mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

Installation of exporter plugin

Open sm100327 opened this issue 2 years ago • 3 comments

Context

I am trying to install mkdocs-exporter in the docker container as described in the documentation

FROM squidfunk/mkdocs-material
RUN pip install mkdocs-exporter

https://squidfunk.github.io/mkdocs-material/getting-started/#with-docker

one requirement is "playwright" and this can not be installed because it does not find any usable versions. It seems to be a problem with the platform (the container)

Bug description

Try to install playwright

pip install playwright

in the container fails with "no version"

Related links

Reproduction

The reproduction does not really apply here i think

Steps to reproduce

Add

RUN pip install mkdocs-exporter

to the Dockerfile and build the container

docker build -t squidfunk/mkdocs-material .

the installation does not finish with this error (error from manual pip install in container)

ERROR: Could not find a version that satisfies the requirement playwright==1.33.0 (from versions: none)

Browser

No response

Before submitting

sm100327 avatar Aug 30 '24 09:08 sm100327

Hello @sm100327, the issue is probably same as https://stackoverflow.com/questions/74254853/installing-playwright-in-docker-image-fails Material for MkDocs uses Alpine-based containers, and playwright doesn't compile a wheel for this Linux variant.

So I guess your only option now is to make another Docker image based on Ubuntu, or modify the one provided by Microsoft https://hub.docker.com/r/microsoft/playwright

kamilkrzyskow avatar Aug 30 '24 10:08 kamilkrzyskow

Hi @kamilkrzyskow

thank you for the fast answer, ok, we will discuss the option of creating our own container

soeren

sm100327 avatar Aug 30 '24 10:08 sm100327

Thanks for reporting. The aim of our official image is to provide the smallest possible variant for getting going, which given that it's Alpine Linux, comes with limitations. For advanced use, a custom Docker image is the way to go.

Closing as out of scope.

squidfunk avatar Aug 30 '24 10:08 squidfunk