1👍
I got following error message: OSError: dlopen() failed to load a library: cairo / cairo-2 / cairo-gobject-2
, on Windows 10.
The GTK+ libraries which contain the libraries above can be obtained and installed from
https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer, as documented on https://weasyprint.readthedocs.io/en/latest/install.html#gtk64installer.
Note that your development environment will need to be restarted to read PATH
.
5👍
See http://win32builder.gnome.org/ or http://gtk-win.sourceforge.net/home/ for a list of GTK+ bundles to install. These include the required cairo/cairo-2 libs.
- Extract the contents of the
bin\
folder to e.g.C:\Program Files (x86)\GTK2-bundle\
(any directory would do) - Add the above directory to your PATH environment variable
- Restart your development environment (in my case PyCharm)
- How to save `LANGUAGE_CODE` to database with i18n switcher so that the language is not changed in different browsers in Django?
- Django and Folium integration
- Model class doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS
- CSRF is only checked when authenticated in DRF?
0👍
I had same problem on windows X64/Python37 but i fixed with bellow link:
follow this steps : https://weasyprint.readthedocs.io/en/stable/install.html#windows,
(i installed gtk with MSYS Installer and added C:\msys64\mingw32\bin to PATH variable,after that i occurred with same error and i deleted cairocffi python library and reinstall it)
- Range query in Elasticsearch_dsl by integer field
- Django superuser doesn't have permission to delete models
- Timeout when uploading a large file?
- How to fix Error: pg_config executable not found on Elastic Beanstalk permanently