Picar-v client connection problems

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):

What Raspberry Pi operating system version are you currently using?
We recommend using the legacy Raspberry Pi operating system version.
The Raspberry Pi Bookworm operating system version is currently not compatible with the Picar-V.

Yes, but the server works fine via a web browser on either my iPhone or my Mac. It only fails when running the client. Here’s the info the Raspy OS:

PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”

NAME=“Raspbian GNU/Linux”

VERSION_ID=“11”

VERSION=“11 (bullseye)”

VERSION_CODENAME=bullseye

ID=raspbian

ID_LIKE=debian

Thanks.

Mark

Please check if the camera is functioning properly.
Install fswebcam or v4l-utils to test the camera. You can use the following command to install them:

sudo apt install fswebcam v4l-utils

Use fswebcam to capture an image:

fswebcam test.jpg

If the camera is working properly, the issue may be due to errors during the installation of the code, which could lead to problems when accessing the PC.

I recommend reinstalling the code by following these instructions:

cd ~/SunFounder_PiCar-V
sudo ./install_dependencies

During the installation, pay attention to any error messages. If there are any, please provide us with screenshots of the errors.

Try installing multiple times to see the results.