viewer dependencies (freetype-py & pyglfw) do not include arm binaries for m1 macs
See original GitHub issueThanks so much for looking into #27 @stenson! I really appreciate all your help.
On a follow up on that: I could now get a few steps further, however I had to upgrade pip after it threw a ton of new errors at me. These are for later reference, perhaps this could be added to the install instructions.
either this pip install --upgrade pip setuptools wheel
or into the venv: {...}/venv/bin/python3.9 -m pip install --upgrade pip
not sure, I used my absolute path with was proposed by the terminal error. It seems that the PIP inside of the venv always needs to be updated. I tried again after I updated my local pip, and it threw the error about an outdated pip again.
then I do the pip install "coldtype[viewer]"
and can’t see any errors in the log.
However, if trying to continue with coldtype demo
I get a bunch of errors again
Traceback (most recent call last):
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/freetype/raw.py", line 49, in <module>
_lib = ctypes.CDLL(filename)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libfreetype.dylib, 6): image not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/{MY_PATH}/Coldtype/venv/bin/coldtype", line 5, in <module>
from coldtype.renderer import main
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/coldtype/__init__.py", line 4, in <module>
from coldtype.text import *
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/coldtype/text/__init__.py", line 3, in <module>
import coldtype.text.composer
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/coldtype/text/composer.py", line 7, in <module>
from coldtype.text.reader import Style, StyledString, FittableMixin, Font, normalize_font_path, SegmentedString, _PenClass, _PensClass
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/coldtype/text/reader.py", line 42, in <module>
from coldtype.fontgoggles.font.otfFont import OTFFont
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/coldtype/fontgoggles/font/otfFont.py", line 7, in <module>
from ..misc.ftFont import FTFont
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/coldtype/fontgoggles/misc/ftFont.py", line 5, in <module>
import freetype
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/freetype/__init__.py", line 24, in <module>
from freetype.raw import *
File "/{MY_PATH}/Coldtype/venv/lib/python3.9/site-packages/freetype/raw.py", line 52, in <module>
raise RuntimeError('Freetype library not found')
RuntimeError: Freetype library not found
freetype is installed, running pip install freetype-py
claims Requirement already satisfied: freetype-py in ./venv/lib/python3.9/site-packages (2.2.0)
. It also shows in the list pip list -l
as freetype-py 2.2.0
_Originally posted by @Mark2Mark in https://github.com/goodhertz/coldtype/issues/27#issuecomment-945078202_
Issue Analytics
- State:
- Created 2 years ago
- Comments:26
Top GitHub Comments
I’ve just released version 2.4.0 of the package
glfw
, along with wheels for macOS with arm64, so the pyglfw half of this issue should be fixed.I’m using the binaries provided by GLFW3 and do not have an M1 macbook myself, so if there are any issues with the wheels, please let me know!
Ha, I thought I need the current monitor rect, so I installed pyobjc and asked for my screen
pip install -U PyObjC
That also prevents the error, but the window appears again more than half offscreen.
However
pin and False:
totally did it.YES it is working now. Amazing. Love to see it finally alive 🧟😍