Closed STREETKILLER007 closed 6 years ago
tried this example https://github.com/vispy/vispy/blob/master/examples/basics/gloo/display_lines.py under Visbrain.
It pops out this error.
WARNING: Traceback (most recent call last):
File "displayline.py", line 128, in <module>
app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\_default_app.py"
, line 62, in run
return default_app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\application.py",
line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
471, in _invoke_callback
cb(event)
File "displayline.py", line 123, in on_draw
self.program.draw('line_strip')
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\program.py", li
ne 470, in draw
canvas.context.flush_commands()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\context.py", li
ne 170, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
404, in _parse
self._gl_initialize()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
502, in _gl_initialize
if this_version < '2.1':
File "D:\Anaconda3\envs\myenv3604\lib\distutils\version.py", line 52, in __lt_
_
c = self._cmp(other)
File "D:\Anaconda3\envs\myenv3604\lib\distutils\version.py", line 335, in _cmp
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ba160>> f
or DrawEvent
WARNING: Traceback (most recent call last):
File "displayline.py", line 128, in <module>
app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\_default_app.py"
, line 62, in run
return default_app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\application.py",
line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\_gl2.py", li
ne 116, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native
AttributeError: 'function' object has no attribute '_native'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\gl2.py", lin
e 72, in _get_gl_func
func = getattr(_lib, name)
File "D:\Anaconda3\envs\myenv3604\lib\ctypes\__init__.py", line 364, in __geta
ttr__
func = self.__getitem__(name)
File "D:\Anaconda3\envs\myenv3604\lib\ctypes\__init__.py", line 369, in __geti
tem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'glBlendFuncSeparate' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
471, in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\context.py", li
ne 171, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
232, in flush
self._shared.flush(parser)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
410, in _parse
getattr(gl, id_)(*args)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\_gl2.py", li
ne 118, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\gl2.py", lin
e 87, in _get_gl_func
raise RuntimeError('Using %s with no OpenGL context.' % name)
RuntimeError: Using glBlendFuncSeparate with no OpenGL context.
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3860dd
8>> for DrawEvent
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ba160>> r
epeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3860dd
8>> repeat 2
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ba160>> r
epeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3860dd
8>> repeat 4
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ba160>> r
epeat 8
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3860dd
8>> repeat 8
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ba160>> r
epeat 16
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3860dd
8>> repeat 16
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ba160>> r
epeat 32
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3860dd
8>> repeat 32
What do you mean "I tried this example [...] under visbrain"? I thought vipy was working? You still have the same backend issue. If you're still stuck with visbrain, I know that mne-python can also plot topo plot. See this for example
"I tried this example [...] under visbrain" mean that i tried https://github.com/vispy/vispy/blob/master/examples/basics/gloo/display_lines.py after i installed Visbrain.
pip list
result :
(myenv3604) C:\Users\JamesTan>pip list
Package Version
--------------- ---------
certifi 2018.4.16
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.2.0
mkl-fft 1.0.4
mkl-random 1.0.1
numpy 1.15.0
Pillow 5.2.0
pip 18.0
pyparsing 2.2.0
PyQt5 5.11.2
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
wincertstore 0.2
https://github.com/vispy/vispy/blob/master/examples/basics/gloo/display_lines.py example result.
(myenv3604) C:\Users\JamesTan\Desktop>python displayline.py
WARNING: Traceback (most recent call last):
File "displayline.py", line 128, in <module>
app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\_default_app.py"
, line 62, in run
return default_app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\application.py",
line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
471, in _invoke_callback
cb(event)
File "displayline.py", line 123, in on_draw
self.program.draw('line_strip')
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\program.py", li
ne 470, in draw
canvas.context.flush_commands()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\context.py", li
ne 170, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
404, in _parse
self._gl_initialize()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
502, in _gl_initialize
if this_version < '2.1':
File "D:\Anaconda3\envs\myenv3604\lib\distutils\version.py", line 52, in __lt_
_
c = self._cmp(other)
File "D:\Anaconda3\envs\myenv3604\lib\distutils\version.py", line 335, in _cmp
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ca128>> f
or DrawEvent
WARNING: Traceback (most recent call last):
File "displayline.py", line 128, in <module>
app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\_default_app.py"
, line 62, in run
return default_app.run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\application.py",
line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\app\backends\_qt.py"
, line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\_gl2.py", li
ne 116, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native
AttributeError: 'function' object has no attribute '_native'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\gl2.py", lin
e 72, in _get_gl_func
func = getattr(_lib, name)
File "D:\Anaconda3\envs\myenv3604\lib\ctypes\__init__.py", line 364, in __geta
ttr__
func = self.__getitem__(name)
File "D:\Anaconda3\envs\myenv3604\lib\ctypes\__init__.py", line 369, in __geti
tem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'glBlendFuncSeparate' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\util\event.py", line
471, in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\context.py", li
ne 171, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
232, in flush
self._shared.flush(parser)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\glir.py", line
410, in _parse
getattr(gl, id_)(*args)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\_gl2.py", li
ne 118, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\gloo\gl\gl2.py", lin
e 87, in _get_gl_func
raise RuntimeError('Using %s with no OpenGL context.' % name)
RuntimeError: Using glBlendFuncSeparate with no OpenGL context.
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3880e1
0>> for DrawEvent
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ca128>> r
epeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3880e1
0>> repeat 2
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (PyQt5) at 0x12ca128>> r
epeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0x3880e1
0>> repeat 4
Update
i created another environment, which is also Python 3.6.
after i typed conda install "pyqt<5"
what i did was below :
1) before install Visbrain
2) after install Visbrain
It Seem that Vispy is working fine.
===
After that, i tried to run following :
1) testtopo.py
the code is
from visbrain import Topo
# Create a topoplot instance :
t = Topo()
if ignore the vispy error, it seems fine.
2) testtopofull.py
the code is
from visbrain import Topo
# Create a topoplot instance :
t = Topo()
# Create a list of channels, data, title and colorbar label :
name = 'Topo_1'
channels = ['C3', 'C4', 'Cz', 'Fz', 'Pz']
data = [10, 20, 30, 10, 10]
title = 'Basic topoplot illustration'
cblabel = 'Colorbar label'
# Add a central topoplot :
t.add_topoplot(name, data, channels=channels, title=title, cblabel=cblabel)
# Show the window :
t.show()
stack trace is below
(myenv36041) C:\Users\JamesTan\Desktop>python testtopofull.py
D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\isocurve.py:22: Use
rWarning: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
017D12588>
WARNING: Traceback (most recent call last):
File "testtopofull.py", line 17, in <module>
t.show()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\visbrain\pyqt_module.py",
line 106, in show
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\application.py"
, line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 471, in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\canvas.py", l
ine 207, in on_draw
self._draw_scene()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\canvas.py", l
ine 253, in _draw_scene
self.draw_visual(self.scene)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\canvas.py", l
ine 291, in draw_visual
node.draw()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\visuals.py",
line 98, in draw
self._visual_superclass.draw(self)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\visual.py",
line 588, in draw
v.draw()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\mesh.py", l
ine 517, in draw
Visual.draw(self, *args, **kwds)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\visual.py",
line 440, in draw
self._vshare.index_buffer)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\shaders\pro
gram.py", line 77, in draw
Program.draw(self, *args, **kwargs)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\program.py", l
ine 470, in draw
canvas.context.flush_commands()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\context.py", l
ine 170, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
404, in _parse
self._gl_initialize()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
502, in _gl_initialize
if this_version < '2.1':
File "D:\Anaconda3\envs\myenv36041\lib\distutils\version.py", line 52, in __lt
__
c = self._cmp(other)
File "D:\Anaconda3\envs\myenv36041\lib\distutils\version.py", line 335, in _cm
p
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xe
523a20>> for DrawEvent
WARNING: Traceback (most recent call last):
File "testtopofull.py", line 17, in <module>
t.show()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\visbrain\pyqt_module.py",
line 106, in show
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\application.py"
, line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\_gl2.py", l
ine 116, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native
AttributeError: 'function' object has no attribute '_native'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\gl2.py", li
ne 72, in _get_gl_func
func = getattr(_lib, name)
File "D:\Anaconda3\envs\myenv36041\lib\ctypes\__init__.py", line 364, in __get
attr__
func = self.__getitem__(name)
File "D:\Anaconda3\envs\myenv36041\lib\ctypes\__init__.py", line 369, in __get
item__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'glBlendFuncSeparate' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 471, in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\context.py", l
ine 171, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
232, in flush
self._shared.flush(parser)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
410, in _parse
getattr(gl, id_)(*args)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\_gl2.py", l
ine 118, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\gl2.py", li
ne 87, in _get_gl_func
raise RuntimeError('Using %s with no OpenGL context.' % name)
RuntimeError: Using glBlendFuncSeparate with no OpenGL context.
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe54427
8>> for DrawEvent
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
017D12588>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xe
523a20>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe54427
8>> repeat 2
Hi @STREETKILLER007 ,
Here's some ideas :
pip install pandas PyOpenGL
from visbrain.objects import BrainObj
BrainObj('B1').preview()
I'm not sure to understand what the conda install "pyqt<5"
does because in your first pip list
I can't see PyQt4 / 5 installed. But, at least on my computer, I remember I had issues with he PyQt5 installed using conda
and I had to remove it and use pip
.
I can show you the steps used to configure from scratch the environnement using conda :
conda create -q -n py36 python=3.6 numpy scipy pip
source activate py36
pip install matplotlib pyqt5 vispy pillow
pip install visbrain
pip install PyOpenGL PyOpenGL_accelerate
from visbrain import Brain
Brain().show()
according to @ djhoese, conda install "pyqt<5"
is to check whether vispy is working properly or not.
I did not look at MNE-Python, because i would like to try out Visbrain.
i will try pip install pandas PyOpenGL
after install PyOpenGL in my environment, below is my pip list
(myenv36041) C:\Users\JamesTan\Desktop>pip list
Package Version
--------------- ---------
certifi 2018.4.16
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.2.3
numpy 1.15.0
pandas 0.23.4
Pillow 5.2.0
pip 18.0
PyOpenGL 3.1.0
pyparsing 2.2.0
PyQt5 5.11.2
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
wincertstore 0.2
when i tried this commend
from visbrain.objects import BrainObj
BrainObj('B1').preview()
it pops out this error
stack trace is as below :
(myenv36041) C:\Users\JamesTan\Desktop>python testbrain.py
D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\isocurve.py:22: Use
rWarning: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
[1m[1;37mINFO[0m | BrainObj(name='B1') created
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Traceback (most recent call last):
File "testbrain.py", line 2, in <module>
BrainObj('B1').preview()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\visbrain\objects\visbrain
_obj.py", line 159, in preview
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\application.py"
, line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 471, in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\canvas.py", l
ine 207, in on_draw
self._draw_scene()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\canvas.py", l
ine 253, in _draw_scene
self.draw_visual(self.scene)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\canvas.py", l
ine 291, in draw_visual
node.draw()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\scene\visuals.py",
line 98, in draw
self._visual_superclass.draw(self)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\visbrain\visuals\BrainVis
ual.py", line 403, in draw
Visual.draw(self, *args, **kwds)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\visual.py",
line 440, in draw
self._vshare.index_buffer)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\visuals\shaders\pro
gram.py", line 77, in draw
Program.draw(self, *args, **kwargs)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\program.py", l
ine 470, in draw
canvas.context.flush_commands()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\context.py", l
ine 170, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
404, in _parse
self._gl_initialize()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
502, in _gl_initialize
if this_version < '2.1':
File "D:\Anaconda3\envs\myenv36041\lib\distutils\version.py", line 52, in __lt
__
c = self._cmp(other)
File "D:\Anaconda3\envs\myenv36041\lib\distutils\version.py", line 335, in _cm
p
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xd
64eb70>> for DrawEvent
WARNING: Traceback (most recent call last):
File "testbrain.py", line 2, in <module>
BrainObj('B1').preview()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\visbrain\objects\visbrain
_obj.py", line 159, in preview
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\application.py"
, line 142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\app\backends\_qt.py
", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 455, in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 475, in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\_gl2.py", l
ine 116, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native
AttributeError: 'function' object has no attribute '_native'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\gl2.py", li
ne 72, in _get_gl_func
func = getattr(_lib, name)
File "D:\Anaconda3\envs\myenv36041\lib\ctypes\__init__.py", line 364, in __get
attr__
func = self.__getitem__(name)
File "D:\Anaconda3\envs\myenv36041\lib\ctypes\__init__.py", line 369, in __get
item__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'glBlendFuncSeparate' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\util\event.py", lin
e 471, in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\context.py", l
ine 171, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
232, in flush
self._shared.flush(parser)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
477, in parse
self._parse(command)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\glir.py", line
410, in _parse
getattr(gl, id_)(*args)
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\_gl2.py", l
ine 118, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Anaconda3\envs\myenv36041\lib\site-packages\vispy\gloo\gl\gl2.py", li
ne 87, in _get_gl_func
raise RuntimeError('Using %s with no OpenGL context.' % name)
RuntimeError: Using glBlendFuncSeparate with no OpenGL context.
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe66086
0>> for DrawEvent
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xd
64eb70>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe66086
0>> repeat 2
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xd
64eb70>> repeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe66086
0>> repeat 4
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xd
64eb70>> repeat 8
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe66086
0>> repeat 8
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xd
64eb70>> repeat 16
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe66086
0>> repeat 16
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xd
64eb70>> repeat 32
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xe66086
0>> repeat 32
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
WARNING: Error drawing visual <Brain name=Mesh at 0xd64e780>
i think i will try to do everything from scratch, hope good luck.
followed your step which is
conda create -q -n py36 python=3.6 numpy scipy pip
source activate py36
pip install matplotlib pyqt5 vispy pillow
pip install visbrain
so this is my current pip list
(py36) C:\Users\JamesTan\Desktop>pip list
Package Version
--------------- ---------
certifi 2018.4.16
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.2.3
mkl-fft 1.0.4
mkl-random 1.0.1
numpy 1.15.0
Pillow 5.2.0
pip 18.0
pyparsing 2.2.0
PyQt5 5.11.2
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
wincertstore 0.2
tried following code
from visbrain import Brain
Brain().show()
but pops out this error
stack trace :
(py36) C:\Users\JamesTan\Desktop>python testbrainbrain.py
D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\isocurve.py:22: UserWarni
ng: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
[1m[1;37mINFO[0m | VolumeObj(name='brodmann') created
[1m[1;37mINFO[0m | RoiObj(name='brodmann') created
Traceback (most recent call last):
File "testbrainbrain.py", line 2, in <module>
Brain().show()
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\brain\brain.py", line
106, in __init__
Visuals.__init__(self, self.view.wc, **kwargs)
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\brain\visuals.py", lin
e 84, in __init__
self.roi = RoiObj('brodmann')
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\objects\roi_obj.py", l
ine 103, in __init__
self(name, vol, labels, index, hdr, system)
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\objects\roi_obj.py", l
ine 121, in __call__
self._system)
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\objects\roi_obj.py", l
ine 189, in set_data
is_pandas_installed(raise_error=True)
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\io\dependencies.py", l
ine 74, in is_pandas_installed
raise IOError("pandas not installed. See https://pandas.pydata.org/#"
OSError: pandas not installed. See https://pandas.pydata.org/#best-way-to-instal
l for installation instructions.
tried pip install pandas
below is my pip list
(py36) C:\Users\JamesTan\Desktop>pip list
Package Version
--------------- ---------
certifi 2018.4.16
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.2.3
mkl-fft 1.0.4
mkl-random 1.0.1
numpy 1.15.0
pandas 0.23.4
Pillow 5.2.0
pip 18.0
pyparsing 2.2.0
PyQt5 5.11.2
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
wincertstore 0.2
tried
from visbrain import Brain
Brain().show()
it showed this,
error :
stack trace error :
(py36) C:\Users\JamesTan\Desktop>python testbrainbrain.py
D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\isocurve.py:22: UserWarni
ng: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
[1m[1;37mINFO[0m | VolumeObj(name='brodmann') created
[1m[1;37mINFO[0m | RoiObj(name='brodmann') created
[1m[1;37mINFO[0m | brodmann ROI loaded.
[1m[1;37mINFO[0m | CrossSecObj(name='brodmann') created
[1m[1;37mINFO[0m | Cut coords at position [ -0.5 -17.5 18.5]
[1m[1;37mINFO[0m | BrainObj(name='B1') created
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
WARNING: Traceback (most recent call last):
File "testbrainbrain.py", line 2, in <module>
Brain().show()
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\pyqt_module.py", line
106, in show
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\application.py", line
142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 455,
in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 475,
in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 471,
in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\canvas.py", line 20
7, in on_draw
self._draw_scene()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\canvas.py", line 25
3, in _draw_scene
self.draw_visual(self.scene)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\canvas.py", line 29
1, in draw_visual
node.draw()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\visuals.py", line 9
8, in draw
self._visual_superclass.draw(self)
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\visuals\BrainVisual.py
", line 403, in draw
Visual.draw(self, *args, **kwds)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\visual.py", line
440, in draw
self._vshare.index_buffer)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\shaders\program.p
y", line 77, in draw
Program.draw(self, *args, **kwargs)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\program.py", line 47
0, in draw
canvas.context.flush_commands()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\context.py", line 17
0, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 477,
in parse
self._parse(command)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 404,
in _parse
self._gl_initialize()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 502,
in _gl_initialize
if this_version < '2.1':
File "D:\Anaconda3\envs\py36\lib\distutils\version.py", line 52, in __lt__
c = self._cmp(other)
File "D:\Anaconda3\envs\py36\lib\distutils\version.py", line 335, in _cmp
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
46be80>> for DrawEvent
WARNING: Traceback (most recent call last):
File "testbrainbrain.py", line 2, in <module>
Brain().show()
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\pyqt_module.py", line
106, in show
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\application.py", line
142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 455,
in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 475,
in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\_gl2.py", line 11
6, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native
AttributeError: 'function' object has no attribute '_native'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\gl2.py", line 72,
in _get_gl_func
func = getattr(_lib, name)
File "D:\Anaconda3\envs\py36\lib\ctypes\__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "D:\Anaconda3\envs\py36\lib\ctypes\__init__.py", line 366, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'glBlendFuncSeparate' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 471,
in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\context.py", line 17
1, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 232,
in flush
self._shared.flush(parser)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 146,
in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 477,
in parse
self._parse(command)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 410,
in _parse
getattr(gl, id_)(*args)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\_gl2.py", line 11
8, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\gl2.py", line 87,
in _get_gl_func
raise RuntimeError('Using %s with no OpenGL context.' % name)
RuntimeError: Using glBlendFuncSeparate with no OpenGL context.
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa48a97
8>> for DrawEvent
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
46be80>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa48a97
8>> repeat 2
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
46be80>> repeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa48a97
8>> repeat 4
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf2bdcf8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
46be80>> repeat 8
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa48a97
8>> repeat 8
Ok, if the GUI is displayed this mean that both vispy and PyQt5 are properly installed.
May be dhoese (vispy) was right, you might have a driver issue... Can you try to install PyOpenGL as mentioned earlier?
after pip install PyOpenGL
below is my pip list
(py36) C:\Users\JamesTan\Desktop>pip list
Package Version
--------------- ---------
certifi 2018.4.16
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.2.3
mkl-fft 1.0.4
mkl-random 1.0.1
numpy 1.15.0
pandas 0.23.4
Pillow 5.2.0
pip 18.0
PyOpenGL 3.1.0
pyparsing 2.2.0
PyQt5 5.11.2
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
wincertstore 0.2
tried
from visbrain import Brain
Brain().show()
error occured
stack trace :
(py36) C:\Users\JamesTan\Desktop>python testbrainbrain.py
D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\isocurve.py:22: UserWarni
ng: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
[1m[1;37mINFO[0m | VolumeObj(name='brodmann') created
[1m[1;37mINFO[0m | RoiObj(name='brodmann') created
[1m[1;37mINFO[0m | brodmann ROI loaded.
[1m[1;37mINFO[0m | CrossSecObj(name='brodmann') created
[1m[1;37mINFO[0m | Cut coords at position [ -0.5 -17.5 18.5]
[1m[1;37mINFO[0m | BrainObj(name='B1') created
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Traceback (most recent call last):
File "testbrainbrain.py", line 2, in <module>
Brain().show()
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\pyqt_module.py", line
106, in show
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\application.py", line
142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 455,
in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 475,
in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 471,
in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\canvas.py", line 20
7, in on_draw
self._draw_scene()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\canvas.py", line 25
3, in _draw_scene
self.draw_visual(self.scene)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\canvas.py", line 29
1, in draw_visual
node.draw()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\scene\visuals.py", line 9
8, in draw
self._visual_superclass.draw(self)
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\visuals\BrainVisual.py
", line 403, in draw
Visual.draw(self, *args, **kwds)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\visual.py", line
440, in draw
self._vshare.index_buffer)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\shaders\program.p
y", line 77, in draw
Program.draw(self, *args, **kwargs)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\program.py", line 47
0, in draw
canvas.context.flush_commands()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\context.py", line 17
0, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 477,
in parse
self._parse(command)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 404,
in _parse
self._gl_initialize()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 502,
in _gl_initialize
if this_version < '2.1':
File "D:\Anaconda3\envs\py36\lib\distutils\version.py", line 52, in __lt__
c = self._cmp(other)
File "D:\Anaconda3\envs\py36\lib\distutils\version.py", line 335, in _cmp
if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> for DrawEvent
WARNING: Traceback (most recent call last):
File "testbrainbrain.py", line 2, in <module>
Brain().show()
File "D:\Anaconda3\envs\py36\lib\site-packages\visbrain\pyqt_module.py", line
106, in show
CONFIG['VISPY_APP'].run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\application.py", line
142, in run
return self._backend._vispy_run()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 229, in _vispy_run
return app.exec_()
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\app\backends\_qt.py", lin
e 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 455,
in __call__
self._invoke_callback(cb, event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 475,
in _invoke_callback
self, cb_event=(cb, event))
<< caught exception here: >>
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\_gl2.py", line 11
6, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native
AttributeError: 'function' object has no attribute '_native'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\gl2.py", line 72,
in _get_gl_func
func = getattr(_lib, name)
File "D:\Anaconda3\envs\py36\lib\ctypes\__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "D:\Anaconda3\envs\py36\lib\ctypes\__init__.py", line 366, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'glBlendFuncSeparate' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\util\event.py", line 471,
in _invoke_callback
cb(event)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\context.py", line 17
1, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 232,
in flush
self._shared.flush(parser)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 146,
in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 477,
in parse
self._parse(command)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\glir.py", line 410,
in _parse
getattr(gl, id_)(*args)
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\_gl2.py", line 11
8, in glBlendFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Anaconda3\envs\py36\lib\site-packages\vispy\gloo\gl\gl2.py", line 87,
in _get_gl_func
raise RuntimeError('Using %s with no OpenGL context.' % name)
RuntimeError: Using glBlendFuncSeparate with no OpenGL context.
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> for DrawEvent
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> repeat 2
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> repeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> repeat 4
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> repeat 8
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> repeat 8
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> repeat 16
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> repeat 16
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> repeat 32
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> repeat 32
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xa
34beb8>> repeat 64
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xa36a9b
0>> repeat 64
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
WARNING: Error drawing visual <Brain name=Mesh at 0xf19d9e8>
Ok... Well, hence it might be a driver issue...
I tried to update all my driver. my graphic card is already up to date...
BTW, for topoplots the ScoT toolbox is also able to do it. Just in case
Will look at ScoT toolbox, thank you.
Tried in a PC in cyber cafe.
below is my pip list
(py36) C:\Users\Administrator\Desktop>pip list
Package Version
--------------- ---------
certifi 2018.4.16
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.2.3
mkl-fft 1.0.4
mkl-random 1.0.1
numpy 1.15.0
pandas 0.23.4
Pillow 5.2.0
pip 18.0
PyOpenGL 3.1.0
pyparsing 2.2.0
PyQt5 5.11.2
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
wincertstore 0.2
this is what i see.
and i see a brain
stack trace :
(py36) C:\Users\Administrator\Desktop>python testbrainbrain.py
M:\Anaconda3\envs\py36\lib\site-packages\vispy\visuals\isocurve.py:22: UserWarni
ng: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
[1m[1;37mINFO[0m | VolumeObj(name='brodmann') created
[1m[1;37mINFO[0m | RoiObj(name='brodmann') created
[1m[1;37mINFO[0m | brodmann ROI loaded.
[1m[1;37mINFO[0m | CrossSecObj(name='brodmann') created
[1m[1;37mINFO[0m | Cut coords at position [ -0.5 -17.5 18.5]
[1m[1;37mINFO[0m | BrainObj(name='B1') created
Nice, it works :)
Can I close the issue?
Leave it open first since i will be trying to work on my pc...
@EtienneCmb To run Visbrain, except graphic card and processor, would like to know that what else should i consider on running Visbrain in a computer ? Let said i am using Windows.
Well, RAM is also useful :)
But yeah, not so much because I've a very old computer and it works just fine. I've also installed Visbrain at least on 10 systems including OSx, Windows and several Linux versions and never had a big issue (except yours...). On the visbrain's chat, there's also many users that finally got it works
Below is my spec :
1) processor Intel(R) Pentium(R) CPU B980 @ 2.40GHz
2) graphic card Intel(R) HD Graphics
3) ram 10gb, ddr 3
hello, developers, i am new in python.
i am trying to run this code in python.
but the error that i got is
after i read through the comment, i tried to install visbrain in developer mode and tried to run
pip install matplotlib == 2.1.0
but it pops out this errori tried to update my setuptools using
pip install --upgrade setuptools
but it did not solve my problem.is there any suggestion to solve this error ?
thank you.