usnistgov / SpectrumBrowser

ITL
12 stars 11 forks source link

Error when running unit-tests/setup-test-sensors.py #198

Closed jkubNTIA closed 9 years ago

jkubNTIA commented 9 years ago

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

ranganathanm commented 9 years ago

I do not have this problem (cant reproduce it on my system). It is possible that a data file is corrupted.

ranganathanm commented 9 years ago

Works fine so I am closing this issue ( please promptly close issues that are fixed).