Open sjuk opened 6 months ago
The repository needs to be corrected to rename 'ip.txt' to 'IP.txt'.
Ideally, the project should use python standard library functionality such as configparser
rather than this ad-hoc mechanism.
Better yet, add exception handling in Main.py, lines 29-31:
file = open('IP.txt', 'r')
self.IP.setText(str(file.readline()))
file.close()
to:
try:
file = open('IP.txt', 'r')
self.IP.setText(str(file.readline()))
file.close()
except:
pass
Client failed to start after a fresh
git clone https://github.com/Freenove/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi
.Expected: Client starts.
Instead: Client failed to start.
Output: ("LANG=C" is to force English language. The result is the same without, only in German language.)
Root cause: There is a file called 'ip.txt' instead of 'IP.txt'. Note that linux is case sensitive.
Workaround: Rename ip.txt file to IP.txt without changing code.
Solution: Change code handling the case of missing text file.