Airthings / waveplus-reader

MIT License
133 stars 61 forks source link

ValueError: Invalid conversion specification #27

Open mw-buntervogel opened 3 years ago

mw-buntervogel commented 3 years ago

I followed the guide, just had to use

sudo pip uninstall backports.functools_lru_cache
sudo pip install backports.functools_lru_cache==1.3

in oder to get the script up and running.

Before it was

  File "/usr/local/lib/python2.7/dist-packages/wcwidth/wcwidth.py", line 79, in <module>
    from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache

But now when I start the script I get (SN was replaced by original one):

sudo python2 read_waveplus.py SN 60 Traceback (most recent call last): File "read_waveplus.py", line 215, in print tableprint.header(header, width=12) File "/usr/local/lib/python2.7/dist-packages/tableprint/printer.py", line 191, in header upper = hrule(len(headers), widths, tablestyle.top) File "/usr/local/lib/python2.7/dist-packages/tableprint/printer.py", line 287, in hrule [('{:%s^%i}' % (linestyle.hline, width)).format('')for width in widths] ValueError: Invalid conversion specification

If using sudo python2 read_waveplus.py SN 60 pipe > /tmp/airthings the file stays empty.

Any ideas about?

Best regards Marc