Traceback (most recent call last):


 "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/examples/GLScatterPlotItem.py", line 46, in <module>

w.addItem(sp1)


 "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 62, in addItem

self.checkOpenGLVersion('Error while adding item %s to GLViewWidget.' % str(item))


 "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 431, in checkOpenGLVersion

if int(ver.split('.')[0]) < 2:
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/usr/lib/python3/dist-packages/requests/models.py", line 880, in json

encoding = guess_json_utf(self.content)


 "/usr/lib/python3/dist-packages/requests/utils.py", line 798, in guess_json_utf

nullcount = sample.count(_null)
TypeError: must be str, not bytes
