joular / powerspycli

PowerSpyCli is a tool to connect and collect power metrics from a PowerSpy 2 powermeter.
GNU Lesser General Public License v3.0
2 stars 0 forks source link

Errors with Python 3.10 #5

Open adelnoureddine opened 1 week ago

adelnoureddine commented 1 week ago

With Python 3.10, PowerSpyCli fails to collect data from the deice with a system error : PY_SSIZE_T_CLEAN macro must be defined for '#" fromats

adelnoureddine commented 1 week ago

As a workaroud, we can use Anaconda or miniconda to use Python 3.9 with the following steps (also install libbluetooth-dev or bluez-libs-devel):

/opt/miniconda/bin/conda init
conda create --name python39 python==3.9
conda activate python39
pip install setuptools==57.5.0
pip install pybluez