Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django. OSError: cannot load library 'gobject-2.0-0' #1526

Closed
Gatisvagulis opened this issue Dec 16, 2021 · 3 comments
Closed

Django. OSError: cannot load library 'gobject-2.0-0' #1526

Gatisvagulis opened this issue Dec 16, 2021 · 3 comments

Comments

@Gatisvagulis
Copy link

Hi, I am using Python 3.9.5, Django==3.2.7, weasyprint==54.0b1 (tried lower version 53.0 but no luck), and gtk3-runtime-3.24.29-2021-04-29-ts-win64.exe. I (windows) puted gtk in the path above all others (for both user and system).. I restarted computer. Uninstall weasyprint and install from beginning. tired to set paths like this:
Importing in views.py
from weasyprint import HTML
I am not using add_dll_directory because for this version it is not needed anymore. but Have tried it anyway without luck.
And last thing I did in virtual environment: set WEASYPRINT_DLL_DIRECTORIES=C:\Program Files\GTK3-Runtime Win64\bin like path is on my computer.
Error still the same 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'
I am using Windows 10 Pro, 64-bit operating system, x64-based processor

I dont know what else I can triy...

@sanketwagh147
Copy link

iam facing the same issue with fastapi

@KateAilet
Copy link

The same issue... and I'm really getting desperate(((((

@liZe
Copy link
Member

liZe commented Jan 26, 2024

Please carefully follow the Install section of the documentation. If it doesn’t work, you can follow the Troubleshooting section dedicated to this problem.

If the problem is not solved, please open a new issue so that we can solve your specific problems.

@Kozea Kozea locked as resolved and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants