Closed ashish-r closed 4 years ago
getting ValueError: (22, 'Invalid argument') in line: t_str = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(timestamp))
ValueError: (22, 'Invalid argument')
t_str = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(timestamp))
actually, the error is due to value of timestamp provided as argument in time.localtime(timestamp)
time.localtime(timestamp)
using SAR-device.sdb.await.csv provided in luminol/demo/src/static/data/.
Using Python 2.7. Please Help.
The example is missing import time. The example is a bit clearer without the time conversion: #30
import time
getting
ValueError: (22, 'Invalid argument')
in line:t_str = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(timestamp))
actually, the error is due to value of timestamp provided as argument in
time.localtime(timestamp)
using SAR-device.sdb.await.csv provided in luminol/demo/src/static/data/.
Using Python 2.7. Please Help.