Open dhimmel opened 2 years ago
@liZe have you seen this error message before / happen to know a quick fix?
@liZe have you seen this error message before / happen to know a quick fix?
Hello!
I’ve often seen this message, as explained in the documentation. Conda is supposed to avoid this. Is Conda’s fontconfig package installed on your computer?
I'm testing the same environment locally in Windows 10 and get the same error. conda list
reports fontconfig
version 2.13.1 is installed.
Some fontconfig-related files are in the conda environment directory. I'm not sure what I should be looking for here to know that fontconfig is available. Should there be a .dll
?
$ find "C:\Users\agitter\.conda\envs\manubot-tmp" -name *fontconfig*
C:\Users\agitter\.conda\envs\manubot-tmp/conda-meta/fontconfig-2.13.1-h1989441_1005.json
C:\Users\agitter\.conda\envs\manubot-tmp/Library/include/fontconfig
C:\Users\agitter\.conda\envs\manubot-tmp/Library/include/fontconfig/fontconfig.h
C:\Users\agitter\.conda\envs\manubot-tmp/Library/lib/fontconfig.lib
C:\Users\agitter\.conda\envs\manubot-tmp/Library/lib/pkgconfig/fontconfig.pc
C:\Users\agitter\.conda\envs\manubot-tmp/Library/share/fontconfig
C:\Users\agitter\.conda\envs\manubot-tmp/Library/share/gettext/its/fontconfig.its
C:\Users\agitter\.conda\envs\manubot-tmp/Library/share/gettext/its/fontconfig.loc
C:\Users\agitter\.conda\envs\manubot-tmp/Library/share/xml/fontconfig
C:\Users\agitter\.conda\envs\manubot-tmp/Library/var/cache/fontconfig
My PATH
visible to Python does have the conda-related directories I would expect.
$ python -c "import os; print(*os.environ['PATH'].split(os.pathsep), sep='\n')" | grep manubot-tmp
C:\Users\agitter\.conda\envs\manubot-tmp
C:\Users\agitter\.conda\envs\manubot-tmp\Library\mingw-w64\bin
C:\Users\agitter\.conda\envs\manubot-tmp\Library\usr\bin
C:\Users\agitter\.conda\envs\manubot-tmp\Library\bin
C:\Users\agitter\.conda\envs\manubot-tmp\Scripts
C:\Users\agitter\.conda\envs\manubot-tmp\bin
Note that weasyprint is being called by Pandoc here, but I don't think that should matter.
Yes, I get the same error if I import weasyprint
from the Python interpreter.
Should there be a
.dll
?
Yes, there should be a DLL. I have no idea why you don’t have one :/. You could try to reinstall the package.
A fresh installation with a minimal conda environment didn't help. There still isn't a DLL. I opened https://github.com/conda-forge/fontconfig-feedstock/issues/49 with details.
i still see the issue, did : conda install -c conda-forge fontconfig
and now get --> OSError: cannot load library 'pangoft2-1.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'pangoft2-1.0-0'
I wasn't clear on the outcome of https://github.com/conda-forge/weasyprint-feedstock/issues/15 (whether windows is supported or not).
We're getting the following error in a windows GitHub actions build (Microsoft Windows Server 2019 10.0.17763):
In https://github.com/manubot/rootstock/pull/448, we use conda to install
weasyprint=53.4
as part of thisenvironment.yml
.Note that weasyprint is being called by Pandoc here, but I don't think that should matter.
Any advice on how to install
fontconfig-1
on windows and whether this should be a dependency in weasyprint-feedstock? Let me know if there's a better place to report this.