zhaoterryy / mkdocs-pdf-export-plugin

An MkDocs plugin to export content pages as PDF files
MIT License
318 stars 42 forks source link

Can't install on WSL #114

Closed moltco closed 1 year ago

moltco commented 1 year ago

Hi

When running 'pip install mkdocs-with-pdf' (Jul 3 21 release from pip) on WSL on Win10 running Ubuntu 20.04 (ver 2) I get the following error from pip / pillow:

`Building wheels for collected packages: Pillow Running setup.py bdist_wheel for Pillow ... error Complete output from command /home/user/.env/mkdocs/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-26cvi43d/Pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpa6pyqilipip-wheel- --python-tag cp36: /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for Pillow Running setup.py clean for Pillow`

and then at the end

Command "/home/user/.env/mkdocs/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-26cvi43d/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7gglh1tc-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/.env/mkdocs/include/site/python3.6/Pillow" failed with error code 1 in /tmp/pip-build-26cvi43d/Pillow/

Seems an option supplied with pillow needs some adjustment?

moltco commented 1 year ago

It turns out - 'wheel' was missing so I needed to do pip install wheel first and then upgrade pip as well (pip install -U pip) You'd still hope for a user friendly message...