When I run setup-test-sensor.py, a good portion of the script runs. However I get an error on the following line:
File "../unit-tests/setup-test-sensors.py", line 61, in
populate_db.put_data_from_file(testDataLocation + "/LTE_UL_DL_bc17_bc13_ts109_p2.dat")
File "/opt/SpectrumBrowser/flask/populate_db.py", line 350, in put_data_from_file
put_data(jsonStringBytes,jsonHeaderLength,filedesc=f)
File "/opt/SpectrumBrowser/flask/populate_db.py", line 261, in put_data
powerVal[i] = struct.unpack('b', messageBytes[i:i + 1])[0]
struct.error: unpack requires a string argument of length 1
When I run setup-test-sensor.py, a good portion of the script runs. However I get an error on the following line:
File "../unit-tests/setup-test-sensors.py", line 61, in
populate_db.put_data_from_file(testDataLocation + "/LTE_UL_DL_bc17_bc13_ts109_p2.dat")
File "/opt/SpectrumBrowser/flask/populate_db.py", line 350, in put_data_from_file
put_data(jsonStringBytes,jsonHeaderLength,filedesc=f)
File "/opt/SpectrumBrowser/flask/populate_db.py", line 261, in put_data
powerVal[i] = struct.unpack('b', messageBytes[i:i + 1])[0]
struct.error: unpack requires a string argument of length 1