Skip to content

Issue with mkdocs / cairocffi #1382

@dornech

Description

@dornech

I have some trouble using mkdocs because I run into this error using WinPython:
https://squidfunk.github.io/mkdocs-material/plugins/requirements/image-processing/#troubleshooting
Problem seems to be cairocffi not finding the cairo library.

After some investigation I found that the cairo library is present at %WINPYDIR%\Lib\site-packages\wx.

Furthermore I found out that cairocffi supports an environment variable CAIROCFFI_DLL_DIRECTORIES.
I thought setting this in env.bat would fix the problem but it did not. I added it to PATH as well. This did work.

...
:after_pyzo_conf


rem ******************
rem handle cairocffi / wx if included
rem ******************
set tmp_pyz=%WINPYDIR%\Lib\site-packages\wx
if not exist "%tmp_pyz%" goto end_wx_conf
set CAIROCFFI_DLL_DIRECTORIES=%WINPYDIR%\Lib\site-packages\wx
set "PATH=%WINPYDIR%\Lib\site-packages\wx;%PATH%;"
:end_wx_conf


set tmp_pyz


rem ******************
rem WinPython.ini part (removed from nsis)
rem ******************
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy