I am able to access the server for the PiCar-V via a browser and everything seems to be working fine. However, when I try to connect from my Mac via the picar-v client, the connection is refused and the client crashes.
Here’s a snipet of the error as reported on the Pi:
System check identified no issues (0 silenced).
August 24, 2024 - 19:05:39
Django version 2.0, using settings ‘remote_control.settings’
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[24/Aug/2024 19:05:48] “GET /connection_test/ HTTP/1.1” 200 2
Internal Server Error: /run/
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/django/core/handlers/exception.py”, line 35, in inner
response = get_response(request)
File “/usr/local/lib/python3.9/dist-packages/django/core/handlers/base.py”, line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/usr/local/lib/python3.9/dist-packages/django/core/handlers/base.py”, line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/mark/SunFounder_PiCar-V/remote_control/remote_control/views.py”, line 87, in run
fw.ready()
NameError: name ‘fw’ is not defined
[24/Aug/2024 19:05:49] “GET /run/?action=fwready HTTP/1.1” 500 59139
Internal Server Error: /run/
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/django/core/handlers/exception.py”, line 35, in inner
response = get_response(request)
File “/usr/local/lib/python3.9/dist-packages/django/core/handlers/base.py”, line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/usr/local/lib/python3.9/dist-packages/django/core/handlers/base.py”, line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/mark/SunFounder_PiCar-V/remote_control/remote_control/views.py”, line 70, in run
bw.ready()
NameError: name ‘bw’ is not defined
[24/Aug/2024 19:05:49] “GET /run/?action=bwready HTTP/1.1” 500 59172
Internal Server Error: /run/
Traceback (most recent call last):