Skip to content

cannot load library 'gobject-2.0-0' - windows 10 #2071

Description

@lmcamoes

first of all, Thank you for your hard work and support.

I would like to use WeasyPrint on my Flask project but I am having some issues that I can't solve.
I follow instructions from https://doc.courtbouillon.org/weasyprint/stable/first_steps.html but with no success.
My system:
windows 10 Pro x64
Visual studio code 1.86.1
Python 3.12.1

I Installed GTK3 on C:\Program Files\GTK3-Runtime Win64

when running my code I have the error:
Exception has occurred: OSError
cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'

Please help.

(.venv) PS E:\Finances\Flask example> python -m weasyprint --info
System: Windows
Machine: AMD64
Version: 10.0.19045
Release: 10

WeasyPrint version: 61.0
Python version: 3.9.7
Pydyf version: 0.8.0
Pango version: 15003

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions