visbrain icon indicating copy to clipboard operation
visbrain copied to clipboard

Can't run on Big Sur

Open dansamber opened this issue 3 years ago • 3 comments

I'm new to Visbrain and naively tried to run a demo on my new M1 Macbook Air. I used Anaconda Navigator to create an environment and ran "pip install -U visbrain" from that environment's terminal window. After updates, I typed "from visbrain.gui import Brain" and.... BOOM! (see details below)

I tried multiple versions of python but that didn't make a difference. I'm guessing that this has to do with Big Sur???

Any suggestions?

Thanks!

Dan


from visbrain.gui import Brain Traceback (most recent call last): File "", line 1, in File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/visbrain/gui/init.py", line 1, in from .brain import Brain # noqa File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/visbrain/gui/brain/init.py", line 2, in from .brain import Brain File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/visbrain/gui/brain/brain.py", line 11, in import vispy.scene.cameras as viscam File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/vispy/init.py", line 30, in from .util import config, set_log_level, keys, sys_info # noqa File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/vispy/util/init.py", line 14, in from . import fonts # noqa File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/vispy/util/fonts/init.py", line 13, in from ._triage import _load_glyph, list_fonts # noqa, analysis:ignore File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/vispy/util/fonts/_triage.py", line 14, in from ._quartz import _load_glyph, _list_fonts File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/vispy/util/fonts/_quartz.py", line 12, in from ...ext.cocoapy import cf, ct, quartz, CFRange, CFSTR, CGGlyph, UniChar,
File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/site-packages/vispy/ext/cocoapy.py", line 930, in cf.CFStringCreateWithCString.restype = c_void_p File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/ctypes/init.py", line 361, in getattr func = self.getitem(name) File "/Users/dan/opt/anaconda3/envs/VisBrain_Dan/lib/python3.6/ctypes/init.py", line 366, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: dlsym(RTLD_DEFAULT, CFStringCreateWithCString): symbol not found

dansamber avatar Feb 03 '21 22:02 dansamber

Hi @dansamber,

Unfortunately, I'm having the same issue right now, which seems to be related to: https://github.com/vispy/vispy/issues/1885

Just curious, which version of Python are you using?

Thanks Raphael

raphaelvallat avatar Feb 17 '21 18:02 raphaelvallat

Raphael,

I googled around and actually found the same web page you referenced. I have tried multiple versions of Python but it makes no difference. Although I admit to being somewhat new to python, I'm a little confused why this is (apparently) dependent on the OS. I thought that the whole point of virtual environments was to get away from such things.

Sigh!

Dan

On Wed, Feb 17, 2021 at 1:36 PM Raphael Vallat [email protected] wrote:

Hi @dansamber https://github.com/dansamber,

Unfortunately, I'm having the same issue right now, which seems to be related to: vispy/vispy#1885 https://github.com/vispy/vispy/issues/1885

Just curious, which version of Python are you using?

Thanks Raphael

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EtienneCmb/visbrain/issues/86#issuecomment-780762990, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAV7PHVMH3KIDXNZEHJNA3S7QEENANCNFSM4XBWBPWA .

dansamber avatar Feb 17 '21 18:02 dansamber

Hi @dansamber ,

I'm a little confused why this is (apparently) dependent on the OS. I thought that the whole point of virtual environments was to get away from such things. Sigh! Dan

In general you're right however, in that case, vispy (and therefore visbrain) uses OpenGL for the graphic rendering and apparently, Big sur doesn't include OpenGL anymore. See here for a description and possible workaround

EtienneCmb avatar Feb 18 '21 15:02 EtienneCmb