initialstate / pi-sensor-free-presence-detector

Know Who's at the Office with the Raspberry Pi
MIT License
368 stars 56 forks source link

TypeError: Type str doesn't support the buffer API #7

Open eedbarr opened 6 years ago

eedbarr commented 6 years ago

Hi,

Thank you for creating this guide. I'm a newbie in programming and the terminal is giving me this error.

How should I resolve this?

Thank you

Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/usr/lib/python3.4/threading.py", line 868, in run self._target(*self._args, **self._kwargs) File "/home/pi/pi-sensor-free-presence-detector/presence.py", line 44, in whosHere if address[i] in output: TypeError: Type str doesn't support the buffer API Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/usr/lib/python3.4/threading.py", line 868, in run self._target(*self._args, **self._kwargs) File "/home/pi/pi-sensor-free-presence-detector/presence.py", line 44, in whosHere if address[i] in output: TypeError: Type str doesn't support the buffer API Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/usr/lib/python3.4/threading.py", line 868, in run self._target(*self._args, **self._kwargs) File "/home/pi/pi-sensor-free-presence-detector/presence.py", line 44, in whosHere if address[i] in output: TypeError: Type str doesn't support the buffer API