Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run on Big Sur #86

Open
dansamber opened this issue Feb 3, 2021 · 3 comments
Open

Can't run on Big Sur #86

dansamber opened this issue Feb 3, 2021 · 3 comments
Assignees
Labels

Comments

@dansamber
Copy link

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
Copy link
Collaborator

Hi @dansamber,

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

Just curious, which version of Python are you using?

Thanks
Raphael

@raphaelvallat raphaelvallat self-assigned this Feb 17, 2021
@dansamber
Copy link
Author

dansamber commented Feb 17, 2021 via email

@EtienneCmb
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants