Closed STREETKILLER007 closed 6 years ago
GitMate.io thinks possibly related issues are https://github.com/EtienneCmb/visbrain/issues/12 (Brain import error), https://github.com/EtienneCmb/visbrain/issues/13 (Import error: cannot import _cntr), and https://github.com/EtienneCmb/visbrain/issues/17 (Hello I cant open visbrain everytime i get same error ).
Hi @STREETKILLER007 , the command pip install matplotlib==2.1.0
doesn't works?
the command pip install matplotlib==2.1.0 doesn't work. it shows the red word error message.
May be this can help you, but I can't really help as I'v never experienced issues with matplotlib installation...
i see, i try to read through and try it out. Thank You.
update information 1) i am using windows 7 64 bit version. 2) i am using python 3.7 64 bit version. 3) the version of my pip version is as below
4) the version of my setup tool version is as below
5) the version of my matplotlib is as below
6) tried to upgrade vispy, but it is up to date,
Can you try to create a python 3.6 environnement?
since i am using python 3.7 and my pc can't support visual machine, so i am trying to uninstall python 3.7 and install python 3.6.
i installed python 3.6.
i run the code from my desktop.
but another question appeared.
1) modulenotfound
===
but i saw the package in under C:\Users\JamesTan.
tried comment pip install visbrain
but it ended up with this error
tried comment pip install matplotlib==2.1.0
it works successfully.
I solved ModuleNotFound by following :
i tried to remove visbrain folder from C:\Users\JamesTan.
tried comment pip install visbrain
it works.
i tried to run this file from my desktop.
it pops out this error.
the error message is as below ImportError : DLL load failed: The specified procedure could not be found.
i tried to download python 3.5.2 and deleted python 3.6.
and tried pip install matplotlib==2.1.0
and pip install visbrain
this 2 comment succeeds.
when i try to run this.
it still pops out this error.
the error message still the same ImportError : DLL load failed: The specified procedure could not be found.
I'm not sure to understand why you can't have multiple environnement without removing / installing different python versions. You can install a package manager like anaconda and have multiple environnements.
Matplotlib installation run smoothly? I guess PyQt5 is not properly installed. It could also be an issue with ipython. Try to download this python source code and then from your terminal run python 00_basic_topoplot.py
i tried to download the python source code that you provided, then from my terminal, i run python 00_basic_topoplot.py
it pops up an error message, which is ImportError : DLL load failed: The specified procedure could not be found.
I tried to install anaconda. Thank for the knowledge.
i was using python 3.5.2.
after running pip install matplotlib==2.1.0
and pip install visbrain
i realized that PyQt5 is already inside Lib\site-packages.
tried to run this program using python 3.6 environment created by anaconda.
still show ImportError : DLL load failed: The specified procedure could not be found.
by the way, PyQt5 was already at latest version.
I tried to post this situation in stack over flow. You can refer to this
On stack overflow you said you tried to install PyQt using pip install PyQt5
, you mean pip install pyqt5
? Also, this might be interesting
i believe pyqt5 and PyQt5 are the same. i read the article, but still no solution.
well, yes... But I remember that using conda I had to conda install PyQt5
and using pip pip install pyqt5
i will try and see. but now i am using my real environment instead of visual environment...
Ok you don't use conda?
i am using conda to set up a python 3.6.0 environment. but in my real environment, i am using python 3.6.0.
i am trying to work out on my real environment.
Ok. I also remember that the PyQt5 import fail if it was using the conda one. May be you could remove PyQt5 and try to install it again using pip install pyqt5
i will try to remove PyQt5 from my real environment using pip uninstall pyqt5
and try to install it again using pip install pyqt5
ok, i tried to remove remove PyQt5 from my real environment using pip uninstall pyqt5
and try to install it again using pip install pyqt5
but it still pops out the same error.
May be this can be interesting if you don't already saw it !
but the link that you shared is mostly on visual environment. but i am working on real environment...
Yes, but some people experienced issues with miktex
i uninstalled matplotlib by pip uninstall matplotlib
and install it again by pip install matplotlib==2.1.0
in my real environment.
but it still pop out the same error.
by the way, i did not install miktex on my machine.
i solved ImportError : DLL load failed: The specified procedure could not be found. by downgrading my python to python 3.5 since pyqt5 only support up to python 3.5 currently.
after i tried pip install visbrain
, pyqt5 was installed, but ImportError : DLL load failed: The specified procedure could not be found. still pop out
what i did was :
1) uninstall pyqt5 by pip uninstall pyqt5
2) downloaded pyqt5 from this download website since i am using 64 bit version. After that, install this downloaded file.
i tried to run the topo function that u passed to me a few days ago, it pops out this long error.
by the way, i am using Intel R HD Graphic.
Would like to know what should i modify in the example code to run this code, thank you.
WARNING: QWindowsWindow::setGeometry: Unable to set geometry 1188x907+8+30 on QW
idgetWindow/'MainWindowWindow'. Resulting geometry: 1188x750+8+30 (frame: 8, 30
, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 3x59, maximum size: 16777215x16
777215).
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Traceback (most recent call last):
File "test.py", line 17, in <module>
t.show()
File "D:\Python 35\lib\site-packages\visbrain\pyqt_module.py", line 106, in sh
ow
CONFIG['VISPY_APP'].run()
File "D:\Python 35\lib\site-packages\vispy\app\application.py", line 142, in r
un
return self._backend._vispy_run()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 229, in
_vispy_run
return app.exec_()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 436, in
event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 708, in
paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 455, in __call
__
self._invoke_callback(cb, event)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 475, in _invok
e_callback
self, cb_event=(cb, event))
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 323, in _handle
_exception
logger.log_exception()
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 265, in log_exc
eption
stack = "".join(traceback.format_stack()[:-tb_skip])
<< caught exception here: >>
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 471, in _invok
e_callback
cb(event)
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 207, in on_d
raw
self._draw_scene()
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 253, in _dra
w_scene
self.draw_visual(self.scene)
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 291, in draw
_visual
node.draw()
File "D:\Python 35\lib\site-packages\vispy\scene\visuals.py", line 98, in draw
self._visual_superclass.draw(self)
File "D:\Python 35\lib\site-packages\vispy\visuals\visual.py", line 588, in dr
aw
v.draw()
File "D:\Python 35\lib\site-packages\vispy\visuals\mesh.py", line 517, in draw
Visual.draw(self, *args, **kwds)
File "D:\Python 35\lib\site-packages\vispy\visuals\visual.py", line 440, in dr
aw
self._vshare.index_buffer)
File "D:\Python 35\lib\site-packages\vispy\visuals\shaders\program.py", line 7
7, in draw
Program.draw(self, *args, **kwargs)
File "D:\Python 35\lib\site-packages\vispy\gloo\program.py", line 470, in draw
canvas.context.flush_commands()
File "D:\Python 35\lib\site-packages\vispy\gloo\context.py", line 170, in flus
h_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 477, in parse
self._parse(command)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 404, in _parse
self._gl_initialize()
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 502, in _gl_ini
tialize
if this_version < '2.1':
File "D:\Python 35\lib\distutils\version.py", line 52, in __lt__
c = self._cmp(other)
File "D:\Python 35\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 0x6
d145f8>> for DrawEvent
WARNING: Traceback (most recent call last):
File "test.py", line 17, in <module>
t.show()
File "D:\Python 35\lib\site-packages\visbrain\pyqt_module.py", line 106, in sh
ow
CONFIG['VISPY_APP'].run()
File "D:\Python 35\lib\site-packages\vispy\app\application.py", line 142, in r
un
return self._backend._vispy_run()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 229, in
_vispy_run
return app.exec_()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 436, in
event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 708, in
paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 455, in __call
__
self._invoke_callback(cb, event)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 475, in _invok
e_callback
self, cb_event=(cb, event))
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 323, in _handle
_exception
logger.log_exception()
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 265, in log_exc
eption
stack = "".join(traceback.format_stack()[:-tb_skip])
<< caught exception here: >>
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\_gl2.py", line 116, in glBl
endFuncSeparate
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:\Python 35\lib\site-packages\vispy\gloo\gl\gl2.py", line 72, in _get_g
l_func
func = getattr(_lib, name)
File "D:\Python 35\lib\ctypes\__init__.py", line 360, in __getattr__
func = self.__getitem__(name)
File "D:\Python 35\lib\ctypes\__init__.py", line 365, 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:\Python 35\lib\site-packages\vispy\util\event.py", line 471, in _invok
e_callback
cb(event)
File "D:\Python 35\lib\site-packages\vispy\gloo\context.py", line 171, in flus
h_commands
self.glir.flush(self.shared.parser)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 232, in flush
self._shared.flush(parser)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 477, in parse
self._parse(command)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 410, in _parse
getattr(gl, id_)(*args)
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\_gl2.py", line 118, in glBl
endFuncSeparate
nativefunc = glBlendFuncSeparate._native = _get_gl_func("glBlendFuncSeparate
", None, (ctypes.c_uint, ctypes.c_uint, ctypes.c_uint, ctypes.c_uint,))
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\gl2.py", line 87, in _get_g
l_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 0xd894e8
0>> for DrawEvent
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0x6
d145f8>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xd894e8
0>> repeat 2
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0x6
d145f8>> repeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xd894e8
0>> repeat 4
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0x6
d145f8>> repeat 8
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xd894e8
0>> repeat 8
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0x6
d145f8>> repeat 16
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xd894e8
0>> repeat 16
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
015065160>
Typically, this means that your setup tools are outdated. To update them, run the following in cmd prompt(elevated/administrator mode)(assuming that you allowed Python to add itself to your PATH):
pip install --upgrade setuptools
Then you can do:
pip install visbrain
If all else fails, you can try to do:
pip install --upgrade setuptools --user python
and then:
pip install visbrain
i installed visbrain. Setuptool is also up to date.
Has the issue been solved?
In the beginning, after i installed python 3.5 in my environment, i typed pip install visbrain in cmd.
It will tell me to update setuptools.
After i typed pip install --upgrade setuptools, i typed pip install visbrain.
Visbrain installed successfully.
Qtwindows error has not been solve until now.
according to stack over flow link and qt forum, i simply tried to add 1 line on the code
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.setGeometry(200,200,200,200)
t.show()
qtwindows is solved
but now it pops out this error...
according to vispy, it said that opengl version must be at least 2.1. my opengl version is 3.1
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x000000000FB288D0>
WARNING: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python 35\lib\idlelib\run.py", line 124, in main
ret = method(*args, **kwargs)
File "D:\Python 35\lib\idlelib\run.py", line 351, in runcode
exec(code, self.locals)
File "C:\Users\JamesTan\Desktop\testtopofull.py", line 18, in <module>
t.show()
File "D:\Python 35\lib\site-packages\visbrain\pyqt_module.py", line 106, in show
CONFIG['VISPY_APP'].run()
File "D:\Python 35\lib\site-packages\vispy\app\application.py", line 142, in run
return self._backend._vispy_run()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 229, in _vispy_run
return app.exec_()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 455, in __call__
self._invoke_callback(cb, event)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 475, in _invoke_callback
self, cb_event=(cb, event))
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 323, in _handle_exception
logger.log_exception()
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 265, in log_exception
stack = "".join(traceback.format_stack()[:-tb_skip])
<< caught exception here: >>
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
cb(event)
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 207, in on_draw
self._draw_scene()
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 253, in _draw_scene
self.draw_visual(self.scene)
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 291, in draw_visual
node.draw()
File "D:\Python 35\lib\site-packages\vispy\scene\visuals.py", line 98, in draw
self._visual_superclass.draw(self)
File "D:\Python 35\lib\site-packages\vispy\visuals\visual.py", line 588, in draw
v.draw()
File "D:\Python 35\lib\site-packages\vispy\visuals\mesh.py", line 517, in draw
Visual.draw(self, *args, **kwds)
File "D:\Python 35\lib\site-packages\vispy\visuals\visual.py", line 440, in draw
self._vshare.index_buffer)
File "D:\Python 35\lib\site-packages\vispy\visuals\shaders\program.py", line 77, in draw
Program.draw(self, *args, **kwargs)
File "D:\Python 35\lib\site-packages\vispy\gloo\program.py", line 470, in draw
canvas.context.flush_commands()
File "D:\Python 35\lib\site-packages\vispy\gloo\context.py", line 170, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 477, in parse
self._parse(command)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 404, in _parse
self._gl_initialize()
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 502, in _gl_initialize
if this_version < '2.1':
File "D:\Python 35\lib\distutils\version.py", line 52, in __lt__
c = self._cmp(other)
File "D:\Python 35\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 0xe13bda0>> for DrawEvent
WARNING: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python 35\lib\idlelib\run.py", line 124, in main
ret = method(*args, **kwargs)
File "D:\Python 35\lib\idlelib\run.py", line 351, in runcode
exec(code, self.locals)
File "C:\Users\JamesTan\Desktop\testtopofull.py", line 18, in <module>
t.show()
File "D:\Python 35\lib\site-packages\visbrain\pyqt_module.py", line 106, in show
CONFIG['VISPY_APP'].run()
File "D:\Python 35\lib\site-packages\vispy\app\application.py", line 142, in run
return self._backend._vispy_run()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 229, in _vispy_run
return app.exec_()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 455, in __call__
self._invoke_callback(cb, event)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 475, in _invoke_callback
self, cb_event=(cb, event))
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 323, in _handle_exception
logger.log_exception()
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 265, in log_exception
stack = "".join(traceback.format_stack()[:-tb_skip])
<< caught exception here: >>
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\_gl2.py", line 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:\Python 35\lib\site-packages\vispy\gloo\gl\gl2.py", line 72, in _get_gl_func
func = getattr(_lib, name)
File "D:\Python 35\lib\ctypes\__init__.py", line 360, in __getattr__
func = self.__getitem__(name)
File "D:\Python 35\lib\ctypes\__init__.py", line 365, 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:\Python 35\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
cb(event)
File "D:\Python 35\lib\site-packages\vispy\gloo\context.py", line 171, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 232, in flush
self._shared.flush(parser)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 477, in parse
self._parse(command)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 410, in _parse
getattr(gl, id_)(*args)
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\_gl2.py", line 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:\Python 35\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 0xf1316a0>> for DrawEvent
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x000000000FB288D0>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xe13bda0>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xf1316a0>> repeat 2
Thx @Sanjay-B for the help,
raise RuntimeError('Using %s with no OpenGL context.' % name)
usually pop out when PyQt5 is not properly installed
Usually when that error occurs, it means that it’s incompatible with the version of Python the developer is trying to develop on.
I’m not entirely sure what dependencies PyQt5 requires and if those are compatible with the current version of Python on said platform. Python doesn’t exactly provide the best error messages. :P
@EtienneCmb i downloaded pyqt5 from the link that i provided and ImportError : DLL load failed: The specified procedure could not be found.
solved.
if i type pip install pyqt5
, ImportError : DLL load failed: The specified procedure could not be found.
will appear.
@Sanjay-B u said :"Usually when that error occurs, it means that it’s incompatible with the version of Python the developer is trying to develop on.". What error do you mean ?
i tried to uninstall pyqt5 on my environment, tried to pip install pyqt5
after that, this error pops out.
i tried to update sip
C:\Users\JamesTan>pip install --upgrade sip
Collecting sip
Downloading https://files.pythonhosted.org/packages/15/75/bf654c02d5df484d8d33
6cb76629d1f651905a0b23f34fcc1853d07fa5a8/sip-4.19.8-cp35-none-win_amd64.whl (51k
B)
39% |█████████████ | 20kB 353kB/s eta 0:00:01
59% |███████████████████ | 30kB 374kB/s eta 0
79% |█████████████████████████▌ | 40kB 401kB/
99% |████████████████████████████████| 51kB
100% |████████████████████████████████| 61kB
543kB/s
Installing collected packages: sip
Successfully installed sip-4.19.8
it seems that, sip installed successfully.
but the error still the same, which is
Traceback (most recent call last):
File "C:\Users\JamesTan\Desktop\testtopo.py", line 1, in <module>
from visbrain import Topo
File "D:\Python 35\lib\site-packages\visbrain\__init__.py", line 23, in <module>
from .brain import Brain
File "D:\Python 35\lib\site-packages\visbrain\brain\__init__.py", line 2, in <module>
from .brain import Brain
File "D:\Python 35\lib\site-packages\visbrain\brain\brain.py", line 13, in <module>
from .interface import UiInit, UiElements, BrainShortcuts
File "D:\Python 35\lib\site-packages\visbrain\brain\interface\__init__.py", line 2, in <module>
from .ui_init import UiInit, BrainShortcuts
File "D:\Python 35\lib\site-packages\visbrain\brain\interface\ui_init.py", line 9, in <module>
from PyQt5 import QtWidgets
ImportError: No module named 'PyQt5.sip'
ok, i finally solved the ImportError problem.
according to https://blog.csdn.net/qq_41185868/article/details/80903095 it said that Incompatibilities with pyqt5 version and SIP version. and it said that if sip version is 4.19.8, PyQt5 version have to be 5.10.1.
so what i tried was uninstalled PyQt5 by pip uninstall pyqt5
, and installed 5.10.1 version by pip install pyqt5==5.10.1
the result is as below.
below is result for my current pip list
C:\Users\JamesTan>pip list
Package Version
--------------- -------
click 6.7
cycler 0.10.0
kiwisolver 1.0.1
matplotlib 2.1.0
numpy 1.15.0
Pillow 5.2.0
pip 18.0
pyparsing 2.2.0
PyQt5 5.10.1
PyQt5-sip 4.19.12
python-dateutil 2.7.3
pytz 2018.5
scipy 1.1.0
setuptools 40.0.0
sip 4.19.8
six 1.11.0
visbrain 0.4.2
vispy 0.5.3
wheel 0.31.1
finally this is still the head pain part.
i tried to run
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.setGeometry(200,200,200,200)
t.show()
it still pops out this long error.
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
WARNING: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python 35\lib\idlelib\run.py", line 124, in main
ret = method(*args, **kwargs)
File "D:\Python 35\lib\idlelib\run.py", line 351, in runcode
exec(code, self.locals)
File "C:\Users\JamesTan\Desktop\testtopofull.py", line 18, in <module>
t.show()
File "D:\Python 35\lib\site-packages\visbrain\pyqt_module.py", line 106, in show
CONFIG['VISPY_APP'].run()
File "D:\Python 35\lib\site-packages\vispy\app\application.py", line 142, in run
return self._backend._vispy_run()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 229, in _vispy_run
return app.exec_()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 455, in __call__
self._invoke_callback(cb, event)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 475, in _invoke_callback
self, cb_event=(cb, event))
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 323, in _handle_exception
logger.log_exception()
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 265, in log_exception
stack = "".join(traceback.format_stack()[:-tb_skip])
<< caught exception here: >>
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
cb(event)
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 207, in on_draw
self._draw_scene()
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 253, in _draw_scene
self.draw_visual(self.scene)
File "D:\Python 35\lib\site-packages\vispy\scene\canvas.py", line 291, in draw_visual
node.draw()
File "D:\Python 35\lib\site-packages\vispy\scene\visuals.py", line 98, in draw
self._visual_superclass.draw(self)
File "D:\Python 35\lib\site-packages\vispy\visuals\visual.py", line 588, in draw
v.draw()
File "D:\Python 35\lib\site-packages\vispy\visuals\mesh.py", line 517, in draw
Visual.draw(self, *args, **kwds)
File "D:\Python 35\lib\site-packages\vispy\visuals\visual.py", line 440, in draw
self._vshare.index_buffer)
File "D:\Python 35\lib\site-packages\vispy\visuals\shaders\program.py", line 77, in draw
Program.draw(self, *args, **kwargs)
File "D:\Python 35\lib\site-packages\vispy\gloo\program.py", line 470, in draw
canvas.context.flush_commands()
File "D:\Python 35\lib\site-packages\vispy\gloo\context.py", line 170, in flush_commands
self.shared.parser.parse([('CURRENT', 0)])
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 477, in parse
self._parse(command)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 404, in _parse
self._gl_initialize()
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 502, in _gl_initialize
if this_version < '2.1':
File "D:\Python 35\lib\distutils\version.py", line 52, in __lt__
c = self._cmp(other)
File "D:\Python 35\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 0xeb5df28>> for DrawEvent
WARNING: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python 35\lib\idlelib\run.py", line 124, in main
ret = method(*args, **kwargs)
File "D:\Python 35\lib\idlelib\run.py", line 351, in runcode
exec(code, self.locals)
File "C:\Users\JamesTan\Desktop\testtopofull.py", line 18, in <module>
t.show()
File "D:\Python 35\lib\site-packages\visbrain\pyqt_module.py", line 106, in show
CONFIG['VISPY_APP'].run()
File "D:\Python 35\lib\site-packages\vispy\app\application.py", line 142, in run
return self._backend._vispy_run()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 229, in _vispy_run
return app.exec_()
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 436, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "D:\Python 35\lib\site-packages\vispy\app\backends\_qt.py", line 708, in paintGL
self._vispy_canvas.events.draw(region=None)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 455, in __call__
self._invoke_callback(cb, event)
File "D:\Python 35\lib\site-packages\vispy\util\event.py", line 475, in _invoke_callback
self, cb_event=(cb, event))
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 323, in _handle_exception
logger.log_exception()
File "D:\Python 35\lib\site-packages\vispy\util\logs.py", line 265, in log_exception
stack = "".join(traceback.format_stack()[:-tb_skip])
<< caught exception here: >>
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\_gl2.py", line 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:\Python 35\lib\site-packages\vispy\gloo\gl\gl2.py", line 72, in _get_gl_func
func = getattr(_lib, name)
File "D:\Python 35\lib\ctypes\__init__.py", line 360, in __getattr__
func = self.__getitem__(name)
File "D:\Python 35\lib\ctypes\__init__.py", line 365, 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:\Python 35\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
cb(event)
File "D:\Python 35\lib\site-packages\vispy\gloo\context.py", line 171, in flush_commands
self.glir.flush(self.shared.parser)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 232, in flush
self._shared.flush(parser)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 146, in flush
parser.parse(self._filter(self.clear(), parser))
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 477, in parse
self._parse(command)
File "D:\Python 35\lib\site-packages\vispy\gloo\glir.py", line 410, in _parse
getattr(gl, id_)(*args)
File "D:\Python 35\lib\site-packages\vispy\gloo\gl\_gl2.py", line 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:\Python 35\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 0xfb827f0>> for DrawEvent
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xeb5df28>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xfb827f0>> repeat 2
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xeb5df28>> repeat 4
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xfb827f0>> repeat 4
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xeb5df28>> repeat 8
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xfb827f0>> repeat 8
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x00000000163E18D0>
in my Anaconda3 environment, i am using python 3.6.
pip list of the environment.
(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
tried to run testtopo.py
, which is
from visbrain import Topo
# Create a topoplot instance :
t = Topo()
the compatible error occured, forced to me to use matplotlib 2.1.0
(myenv3604) C:\Users\JamesTan\Desktop>python testtopo.py
D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\visuals\isocurve.py:22: User
Warning: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
Install the latest vispy version :
pip install git+https://github.com/vispy/vispy.git
, i think they removed this warning message
If I remember correctly, vispy was using iscocurve
from Matplotlib 2.1. Then, isocurve
has been removed from Matplotlib 2.2+ and vispy add this warning message. So, two possibilities :
pip install git+https://github.com/vispy/vispy.git
and scikit-image : pip install scikit-image
When i typed pip install --upgrade pyqt5
or pip install --upgrade matplotlib==2.2.0
, i saw these 2 red line, wondering will them affect Visbrain.
mkl-random 1.0.1 requires cython, which is not installed.
mkl-fft 1.0.4 requires cython, which is not installed.
I try to install vispy latest version, hope it helps.
Topo
works before trying to upgrade pyqt5 or vispytried pip list again.
it is still the same.
(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
Vispy is in latest version. They are trying to solve VisPy is not yet compatible with matplotlib 2.2+ as you said. reference : http://vispy.org/releasenotes.html
PyQt5 is in latest version. reference : https://pypi.org/project/PyQt5/
I upgraded PyQt5 just now because i downgraded PyQt5 to 5.10.1.
Tried Topo
, it still pops out this error.
(myenv3604) C:\Users\JamesTan\Desktop>python testtopofull.py
D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\visuals\isocurve.py:22: User
Warning: 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
013B3B208>
WARNING: Traceback (most recent call last):
File "testtopofull.py", line 18, in <module>
t.show()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\visbrain\pyqt_module.py",
line 106, in show
CONFIG['VISPY_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 "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\scene\canvas.py", li
ne 207, in on_draw
self._draw_scene()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\scene\canvas.py", li
ne 253, in _draw_scene
self.draw_visual(self.scene)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\scene\canvas.py", li
ne 291, in draw_visual
node.draw()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\scene\visuals.py", l
ine 98, in draw
self._visual_superclass.draw(self)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\visuals\visual.py",
line 588, in draw
v.draw()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\visuals\mesh.py", li
ne 517, in draw
Visual.draw(self, *args, **kwds)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\visuals\visual.py",
line 440, in draw
self._vshare.index_buffer)
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\vispy\visuals\shaders\prog
ram.py", line 77, in draw
Program.draw(self, *args, **kwargs)
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 SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xb
2e76a0>> for DrawEvent
WARNING: Traceback (most recent call last):
File "testtopofull.py", line 18, in <module>
t.show()
File "D:\Anaconda3\envs\myenv3604\lib\site-packages\visbrain\pyqt_module.py",
line 106, in show
CONFIG['VISPY_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 0xb2ffeb
8>> for DrawEvent
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
013B3B208>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0xb
2e76a0>> repeat 2
ERROR: Invoking <bound method GLContext.flush_commands of <GLContext at 0xb2ffeb
8>> repeat 2
WARNING: Error drawing visual <vispy.visuals.mesh.MeshVisual object at 0x0000000
013B3B208>
Ok, for now, forget about the latest vispy version and compatibility with matplotlib. Vispy example is still working?
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.