WebGL-Spectrogram icon indicating copy to clipboard operation
WebGL-Spectrogram copied to clipboard

filename = ffi.new('char[]', name.encode())

Open hydronics2 opened this issue 9 years ago • 1 comments

I've been getting the following error... any help? thank you, thomas

ERROR:tornado.application:Uncaught exception in /spectrogram Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/websocket.py", line 369, in _run_callback callback(_args, *_kwargs) File "server.py", line 101, in on_message self.receive_message(header['type'], header['content'], data) File "server.py", line 154, in receive_message self.on_data_spectrogram(data, **content) File "server.py", line 196, in on_data_spectrogram file = SoundFile(io.BytesIO(data)) File "/usr/local/lib/python2.7/dist-packages/pysoundfile.py", line 293, in init filename = ffi.new('char[]', name.encode()) AttributeError: '_io.BytesIO' object has no attribute 'encode' Exception AttributeError: AttributeError('SoundFile has no attribute _file',) in <bound method SoundFile.del of <pysoundfile.SoundFile object at 0x7f2b5ccdf590>> ignored WebSocket closed

hydronics2 avatar Jan 18 '16 03:01 hydronics2

Please use Python 3.

bastibe avatar Jan 18 '16 09:01 bastibe