Closed ataffanel closed 5 months ago
A fix was proposed in this discussion: https://github.com/bitcraze/crazyflie-clients-python/issues/694 by @r-bt
One needs to navigate to the package folder of where vispy is installed.
cd /usr/local/lib/python3.11/site-packages/vispy
(change python3.11 with the version you have)
then change the following line in vispy/ext/cocoapy.py
quartz = cdll.LoadLibrary(util.find_library('quartz'))
to
quartz = cdll.LoadLibrary('/System/Library/Frameworks/Quartz.framework/Quartz')
It's not a very nice fix but it works for now until Vispy releases an update for this.
Hi. why can not navigate to the python3.11 ?
That depends on which version pf python you are running the cfclient in. If you have python 3.10 then this is different and you'll need to change it to /python3.10/
instead
you can check this in your terminal with python3 --version
Also, there is an issue related to this as well on the github vispy repo https://github.com/vispy/vispy/issues/2547
It proposed adding a capitalized Q
util.find_library('Quartz'))
And there is a PR open for this now: https://github.com/vispy/vispy/pull/2549
Thanks for the links and for the solution! I will be looking at somehow enable this fix in a version of the client (at least we can link setup.py to the fixed branch from the PR).
I changed the dependency for vispy to the fixed branch from the vispy PR linked above and it does work!
The fixed branch can be used until vispy merge the PR:
pip install git+https://github.com/bitcraze/crazyflie-clients-python@ataffanel/mac-sonoma-fix
just an fyi for if we'd like to merge this branch at one point, this does not affect the windows 11 and ubuntu 22.04 installs
On an apple silicon mac running sonoma (version 14.2.1), with brew on x86 and python 3.11/3.10 the client does not start and stops with this error:
A quick search online seems point to a problem with OpenGL.