jim-easterbrook / pywws

Python software for USB Wireless WeatherStations
https://pywws.readthedocs.io/
GNU General Public License v2.0
204 stars 62 forks source link

unorderable types when running pywws-livelog #90

Closed hrpunio closed 3 years ago

hrpunio commented 4 years ago

Debian Stretch/arm when running pywws-livelog. pywws-hourly runs ok I am running pywws for years w/o problems so looks strange to discover such a low-level error --tomek

07:47:47:pywws.logger:pywws version 20.1.0, build 1673 (92d8868) 07:47:47:pywws.logger:Python version 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] 07:47:47:pywws.weatherstation:using pywws.device_pyusb1 Traceback (most recent call last): File "/usr/local/bin/pywws-livelog", line 11, in sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/pywws/livelog.py", line 130, in main return live_log(args[0]) File "/usr/local/lib/python3.5/dist-packages/pywws/livelog.py", line 75, in live_log datalogger = pywws.logdata.DataLogger(context) File "/usr/local/lib/python3.5/dist-packages/pywws/logdata.py", line 100, in init while saved_date < self.last_stored_time: TypeError: unorderable types: NoneType() < datetime.datetime()

jim-easterbrook commented 4 years ago

I suspect the ptr value in the [data] section of your status.ini is corrupted. Delete that line and restart.

hrpunio commented 4 years ago

Thanks

jim-easterbrook commented 4 years ago

Commit b571ed6 should reduce the likelihood of this happening in future.