EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
243 stars 65 forks source link

Can't run on Big Sur #86

Open dansamber opened 3 years ago

dansamber commented 3 years ago

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

raphaelvallat commented 3 years ago

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

dansamber commented 3 years ago

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 notifications@github.com 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 .

EtienneCmb commented 3 years ago

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