-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'OpenGL_accelerate.numpy_formathandler.NumpyHandler' has no attribute '__reduce_cython__' #177
Comments
I get the same error when I try to run the latest friture on MacOS Big Sur 11.3.1 2021-06-19 00:17:40,515 INFO friture.analyzer: Friture 0.45 starting on Darwin (darwin)
|
Update: I was able to fix the problem by manually upgrading to the latest numpy:
ie. The version in requirements.txt ( |
So numpy has been updated, and besides Friture is no longer using pyopengl, but it's using QML instead. So I think we can close this issue. |
Hi all
For me, this is a very useful project, I following steps (https://github.com/tlecomte/friture/blob/master/INSTALL.md#running-friture-from-source-on-windows) to prepare a development environment for Friture on Windows. But when I used PyCharm run main.py has the following error, how to solve it?
Traceback (most recent call last):
File "C:\Users\admin\PycharmProjects\friture\friture\plotting\glCanvasWidget.py", line 171, in tryGlGetIntegerv
return GL.glGetIntegerv(enum)
File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.call
File "src/wrapper.pyx", line 303, in OpenGL_accelerate.wrapper.Wrapper.call
File "src/wrapper.pyx", line 88, in OpenGL_accelerate.wrapper.CArgCalculator.c_call
File "src/wrapper.pyx", line 69, in OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call
File "src/wrapper.pyx", line 64, in OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call
File "src/arraydatatype.pyx", line 355, in OpenGL_accelerate.arraydatatype.SizedOutputOrInput.c_call
File "src/arraydatatype.pyx", line 224, in OpenGL_accelerate.arraydatatype.ArrayDatatype.c_zeros
File "src/arraydatatype.pyx", line 69, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_get_output_handler
File "src/arraydatatype.pyx", line 80, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_handler_by_plugin_name
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\plugins.py", line 16, in load
return importByName( self.import_path )
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\plugins.py", line 38, in importByName
module = import( ".".join(moduleName), {}, {}, moduleName)
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\arrays\numpymodule.py", line 28, in
from OpenGL_accelerate.numpy_formathandler import NumpyHandler
File "init.pxd", line 242, in init OpenGL_accelerate.numpy_formathandler
ValueError: ('numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject', 1, <OpenGL.platform.baseplatform.glGetIntegerv object at 0x000001C37BA47740>)
2021-05-17 18:51:25,013 INFO friture.plotting.glCanvasWidget: Intel, Intel(R) UHD Graphics, Version: 4.6.0 - Build 27.20.100.8681, Shaders: 4.60 - Build 27.20.100.8681, Extensions: unknown
2021-05-17 18:51:25,034 CRITICAL friture.exceptionhandler: Unhandled exception: Traceback (most recent call last):
File "C:\Users\admin\PycharmProjects\friture\friture\plotting\glCanvasWidget.py", line 230, in initializeGL
quad_vertex_shader = GL.shaders.compileShader(vertex_shader_source, GL.GL_VERTEX_SHADER)
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\GL\shaders.py", line 231, in compileShader
result = glGetShaderiv( shader, GL_COMPILE_STATUS )
File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.call
File "src/latebind.pyx", line 51, in OpenGL_accelerate.latebind.Curry.call
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\GL\VERSION\GL_2_0.py", line 268, in glGetShaderiv
status = arrays.GLintArray.zeros( (1,))
File "src/arraydatatype.pyx", line 219, in OpenGL_accelerate.arraydatatype.ArrayDatatype.zeros
File "src/arraydatatype.pyx", line 224, in OpenGL_accelerate.arraydatatype.ArrayDatatype.c_zeros
File "src/arraydatatype.pyx", line 69, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_get_output_handler
File "src/arraydatatype.pyx", line 80, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_handler_by_plugin_name
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\plugins.py", line 16, in load
return importByName( self.import_path )
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\plugins.py", line 38, in importByName
module = import( ".".join(moduleName), {}, {}, moduleName)
File "D:\ProgramData\miniconda3\envs\friture\lib\site-packages\OpenGL\arrays\numpymodule.py", line 28, in
from OpenGL_accelerate.numpy_formathandler import NumpyHandler
File "src/numpy_formathandler.pyx", line 39, in init OpenGL_accelerate.numpy_formathandler
AttributeError: type object 'OpenGL_accelerate.numpy_formathandler.NumpyHandler' has no attribute 'reduce_cython'
the total log:
friture.log.txt
my python env:
anaconda3 + python3.9.1
thanks!
The text was updated successfully, but these errors were encountered: