The scripts that run on the Telraam Raspberry Pi computers, responsible for connecting to the local wifi, traffic monitoring and communicating with the central Telraam servers.
What was the issue about (brief description)?
Crash of the 'telraam_monitoring.py' script.
When did the issue occur?
Happens to arbitrary Telramen.
Were there any error messages shown or retrieved from the system logs?
pi@telraam:~/Telraam/Scripts $ sudo python3 telraam_monitoring.py --idantrack --display --verbose
Traceback (most recent call last):
File "telraam_monitoring.py", line 30, in <module>
import pandas as pd
File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 37, in <module>
import pandas.core.config_init
File "/usr/lib/python3/dist-packages/pandas/core/config_init.py", line 18, in <module>
from pandas.formats.format import detect_console_encoding
File "/usr/lib/python3/dist-packages/pandas/formats/format.py", line 27, in <module>
from pandas.core.index import Index, MultiIndex, _ensure_index
File "/usr/lib/python3/dist-packages/pandas/core/index.py", line 2, in <module>
from pandas.indexes.api import *
File "/usr/lib/python3/dist-packages/pandas/indexes/api.py", line 1, in <module>
from pandas.indexes.base import (Index, _new_Index, # noqa
File "/usr/lib/python3/dist-packages/pandas/indexes/base.py", line 8, in <module>
import pandas._join as _join
File "pandas/src/join.pyx", line 36, in init pandas._join (pandas/src/join.c:62257)
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 669, in exec_module
File "<frozen importlib._bootstrap_external>", line 773, in get_code
File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Is it a recurrent issue that can be reproduced?
No.
What was the cause of the issue (crash of a Telraam-related script, loss of internet connection, ...)
Unknown (as the system did not underwent an update).
Information from the Internet points towards such ValueErrors occurring when the compiled version of a Python module (the .pyc file) is corrupt. See also https://stackoverflow.com/questions/30861493/how-to-fix-python-valueerrorbad-marshal-data
However, the error also occurred on freshly-flashed SD cards, which implies that it is not caused by the Telraam-specific scripts.
What do you think is a (temporary) solution that fixes the issue?
Reinstalling pandas did not solve the problem.
Deleting all .pyc files from the pandas library, and running the script again (all .pyc files will be recompiled) did not solve the problem.
What was the issue about (brief description)? Crash of the 'telraam_monitoring.py' script.
When did the issue occur? Happens to arbitrary Telramen.
Were there any error messages shown or retrieved from the system logs?
Is it a recurrent issue that can be reproduced? No.
What was the cause of the issue (crash of a Telraam-related script, loss of internet connection, ...) Unknown (as the system did not underwent an update). Information from the Internet points towards such ValueErrors occurring when the compiled version of a Python module (the .pyc file) is corrupt. See also https://stackoverflow.com/questions/30861493/how-to-fix-python-valueerrorbad-marshal-data However, the error also occurred on freshly-flashed SD cards, which implies that it is not caused by the Telraam-specific scripts.
What do you think is a (temporary) solution that fixes the issue? Reinstalling pandas did not solve the problem. Deleting all .pyc files from the pandas library, and running the script again (all .pyc files will be recompiled) did not solve the problem.