'OpenGL_accelerate.numpy_formathandler.NumpyHandler' has no attribute '__reduce_cython__'
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
the total log: friture.log.txt
my python env: anaconda3 + python3.9.1

thanks!
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)
2021-06-19 00:17:40,635 INFO friture.analyzer: Applying Mac OS-specific setup
2021-06-19 00:17:40,635 INFO friture.analyzer: Adding the following to the Library paths: /usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/PlugIns
2021-06-19 00:17:40,854 INFO friture.audiobackend: Initializing audio backend
2021-06-19 00:17:40,855 INFO friture.audiobackend: Found 6 input devices and 7 output devices
2021-06-19 00:17:40,913 INFO friture.audiobackend: Supported formats for 'Built-in Microphone' on 'Core Audio': ['22050 Hz, float32', '22050 Hz, int16', '22050 Hz, int8', '44100 Hz, float32', '44100 Hz, int16', '44100 Hz, int8', '48000 Hz, float32', '48000 Hz, int16', '48000 Hz, int8', '96000 Hz, float32', '96000 Hz, int16', '96000 Hz, int8']
2021-06-19 00:17:40,913 INFO friture.audiobackend: Opening the stream for device 'Built-in Microphone'
2021-06-19 00:17:40,916 INFO friture.audiobackend: Device claims 108 ms latency
2021-06-19 00:17:41,578 INFO friture.audiobackend: Success
2021-06-19 00:17:41,601 INFO friture.dockmanager: First launch, display a default set of docks
2021-06-19 00:17:41,603 INFO friture.audioproc: audioproc: updating self.freq cache
2021-06-19 00:17:41,603 INFO friture.audioproc: audioproc: updating window
2021-06-19 00:17:41,603 INFO friture.audioproc: audioproc: updating self.freq cache
2021-06-19 00:17:41,604 INFO friture.audioproc: audioproc: updating window
2021-06-19 00:17:41,611 INFO friture.spectrogram_image: palette preparation
2021-06-19 00:17:41,614 INFO friture.audioproc: audioproc: updating self.freq cache
2021-06-19 00:17:41,614 INFO friture.audioproc: audioproc: updating window
2021-06-19 00:17:41,614 INFO friture.audioproc: audioproc: updating self.freq cache
2021-06-19 00:17:41,614 INFO friture.audioproc: audioproc: updating window
2021-06-19 00:17:41,615 INFO friture.signal.frequency_resampler: freq scale changed to 1.000000
2021-06-19 00:17:41,615 INFO friture.signal.frequency_resampler: freq range changed 20.000000 24000.000000
2021-06-19 00:17:41,621 INFO friture.analyzer: Timer start
2021-06-19 00:17:41,621 INFO friture.analyzer: Init finished, entering the main loop
2021-06-19 00:17:42,856 INFO friture.plotting.glCanvasWidget: OpenGL format: version 4.1, Core profile, Desktop OpenGL rendering
2021-06-19 00:17:42,860 ERROR friture.plotting.glCanvasWidget: glGetIntegerv failed
Traceback (most recent call last):
File "/Users/dominovaldano/workspace/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 "/Users/dominovaldano/workspace/friture/buildenv/lib/python3.9/site-packages/OpenGL/plugins.py", line 16, in load
return importByName( self.import_path )
File "/Users/dominovaldano/workspace/friture/buildenv/lib/python3.9/site-packages/OpenGL/plugins.py", line 38, in importByName
module = import( ".".join(moduleName), {}, {}, moduleName)
File "/Users/dominovaldano/workspace/friture/buildenv/lib/python3.9/site-packages/OpenGL/arrays/numpymodule.py", line 28, in
python --version Python 3.9.5 pip freeze appdirs==1.4.4 cffi==1.14.5 docutils==0.16 -e git+https://github.com/tlecomte/friture.git@b4d74ad26b13db0efcacaabc3547e3929dd1d7b8#egg=friture multipledispatch==0.6.0 numpy==1.19.3 pa-ringbuffer==0.1.4 pycparser==2.20 PyOpenGL==3.1.5 PyOpenGL-accelerate==3.1.5 PyQt5==5.15.3 PyQt5-Qt==5.15.2 PyQt5-sip==12.9.0 pyrr==0.10.3 rtmixer==0.1.2 six==1.16.0 sounddevice==0.4.1
Update:
I was able to fix the problem by manually upgrading to the latest numpy:
> pip3 install -U numpy
Requirement already satisfied: numpy in ./buildenv/lib/python3.9/site-packages (1.19.3)
Collecting numpy
Using cached numpy-1.20.3-cp39-cp39-macosx_10_9_x86_64.whl (16.1 MB)
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.19.3
Uninstalling numpy-1.19.3:
Successfully uninstalled numpy-1.19.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
friture 0.45 requires numpy==1.19.3, but you have numpy 1.20.3 which is incompatible.
Successfully installed numpy-1.20.3
ie. The version in requirements.txt (numpy==1.19.3) does not work, but version 1.20.3 does.