-
Notifications
You must be signed in to change notification settings - Fork 187
Description
When running the server code with the following commands
cd ~/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server
sudo python main.py
I get the following error:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Traceback (most recent call last):
File "/home/hex/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/main.py", line 85, in
myshow=MyWindow()
^^^^^^^^^^
File "/home/hex/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/main.py", line 23, in init
self.on_and_off_server()
File "/home/hex/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/main.py", line 50, in on_and_off_server
self.server.turn_on_server()
File "/home/hex/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/Server.py", line 50, in turn_on_server
HOST=self.get_interface_ip()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hex/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/Server.py", line 44, in get_interface_ip
return socket.inet_ntoa(fcntl.ioctl(s.fileno(),
^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 99] Cannot assign requested address
OS info:
Linux raspberrypi 6.1.0-rpi6-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux
The system has an IP network connection while producing this error.
Any ideas as to the cause of and solution to this problem?