I am not very frequent in Windows OS but Linux, but with some temporary access to the former OS, I tried installing and launching this project. Once installed via the Pip command (with no issues), and tried launching, the following exception was thrown:
E:\files\temp>dns-benchmark benchmark --use-defaults --formats csv,excel
-----
WeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue:
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#troubleshooting
-----
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "c:\users\user\appdata\local\programs\python\python313\scripts\dns-benchmark.exe\__main__.py", line 4, in <module>
from dns_benchmark.cli import cli
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\dns_benchmark\cli.py", line 22, in <module>
from dns_benchmark.exporters import (
...<4 lines>...
)
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\dns_benchmark\exporters.py", line 13, in <module>
from weasyprint import HTML
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\weasyprint\__init__.py", line 433, in <module>
from .css import preprocess_stylesheet # noqa: I001, E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\weasyprint\css\__init__.py", line 28, in <module>
from .computed_values import COMPUTER_FUNCTIONS
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\weasyprint\css\computed_values.py", line 9, in <module>
from ..text.ffi import FROM_UNITS, ffi, pango
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\weasyprint\text\ffi.py", line 475, in <module>
gobject = _dlopen(
ffi, 'libgobject-2.0-0', 'gobject-2.0-0', 'gobject-2.0',
'libgobject-2.0.so.0', 'libgobject-2.0.dylib', 'libgobject-2.0-0.dll')
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\weasyprint\text\ffi.py", line 463, in _dlopen
return ffi.dlopen(names[0], flags) # pragma: no cover
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\cffi\api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\cffi\api.py", line 834, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\cffi\api.py", line 829, in _load_backend_lib
raise OSError(msg)
OSError: cannot load library 'libgobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libgobject-2.0-0'
OS: Windows 10 Pro (22H2) x86_64
Kernel: WIN32_NT 10.0.19045.6466
WM: Desktop Window Manager 10.0.19041.4355
Python: 3.13.5
Pip: 26.0.1 from c:\users\user\appdata\local\programs\python\python313\Lib\site-packages\pip (python 3.13)
Dear Developers and Artists,
Thank you for the project!
I am not very frequent in Windows OS but Linux, but with some temporary access to the former OS, I tried installing and launching this project. Once installed via the Pip command (with no issues), and tried launching, the following exception was thrown:
The environment:
Is it expected?
Best and kind regards