Airthings / waveplus-reader

MIT License
133 stars 61 forks source link

Python 3 #21

Open richterdavid opened 3 years ago

richterdavid commented 3 years ago

The Python 2 sunset date has passed, and the dependency on 2.7 in a networking setting is a security vulnerability waiting to happen. Please update to Python 3.

https://www.python.org/doc/sunset-python-2/

ghost commented 3 years ago

on Raspberry Pi OS 10.4 Quick howto convert to python 3.7:

apt install 2to3 apt install python3-lib2to3 apt install python3-toolz apt install python3-pip

2to3 read_waveplus.py --write pip3 install bluepy

your bluepy dir

cd /usr/local/lib/python3.7/dist-packages/bluepy chmod +x bluepy-helper

might also need sudo setcap 'cap_net_raw,cap_net_admin+eip' bluepy-helper

ghost commented 3 years ago

or clone: https://github.com/kogant/waveplus-reader :-)