Mac M1 and weasyprint
package
#2439
Replies: 3 comments 1 reply
-
Did you rather mean #2339 ? Pyenv doesn't change anything in Ctypes. Whatever the problem is, it's in CPython's logic. So I suggest to either study that to find out how it can be tweaked to your needs and/or consulting with the CPython community about that. The linked issue claims that Ctypes "only searches predefined paths" which is false (those paths are rather a fallback) and suggests to "fix" it with a patch that patches searching for FFI during Python's build rather than Ctypes' general library search logic and is presumably already present in newer CPython releases. |
Beta Was this translation helpful? Give feedback.
-
I installed python through brew and used venv. Now weasyprint works fine. But if I do it through pyenv - error |
Beta Was this translation helpful? Give feedback.
-
What worked for me: Install your python version required through homebrew e.g. Install |
Beta Was this translation helpful? Give feedback.
-
Hello. I have the same issue like here #2339
And I don't know how to fix this.
My setup:
MacOs 12.5.1 (M1)
pyenv 2.3.3
python 3.10.2 (also tried 3.10.6 - same error)
Steps to reproduce inside virtualenv created through pyenv
and I got
OSError: ctypes.util.find_library() did not manage to locate a library called 'fontconfig'
Beta Was this translation helpful? Give feedback.
All reactions