GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Issue with mkdocs / cairocffi · Issue #1382 · winpython/winpython

Issue with mkdocs / cairocffi #1382

New issue
Copy link
New issue
Copy link
Open
Open
Issue with mkdocs / cairocffi#1382
Copy link
Labels
ProcedureProcedureProcedure

Description

@dornech
dornech
opened on Sep 1, 2024
Issue body actions

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 ******************
...

Activity

  1. dornech
    changed the title [-]Issue with mkdocs / cairoffi[/-] [+]Issue with mkdocs / cairocffi[/+] on Sep 1, 2024
  2. stonebig commented on Sep 1, 2024

    @stonebig
    stonebig
    on Sep 1, 2024
    Contributor
    More actions

    Unless the given package handles it less manually, this is a possible workaround

  3. dornech commented on Sep 1, 2024

    @dornech
    dornech
    on Sep 1, 2024
    Author
    More actions

    Well, I thought as such workarounds are implemented for qt5 and others, this might be an option ...

  4. stonebig
    added
    ProcedureProcedureProcedure
    on May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProcedureProcedureProcedure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.