View: 1529|Reply: 2

RaspTank Error: Server will not start, code will not run.

[Copy link]

1

Threads

1

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2021-8-23 22:09:33 | Show all posts |Read mode
Hi I am new to robotics and python; I have just started wit this kit (rasptank) and ran into this error at step 3.6 .

Bellow you will see the error, any help or advice would be amazing


Starting camera thread.
select timeout
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/adeept_rasptank/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/pi/adeept_rasptank/server/camera_opencv.py", line 436, in frames
    if ImgIsNone == 0:
UnboundLocalError: local variable 'ImgIsNone' referenced before assignment


Reply

Use magic Report

0

Threads

2

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2021-10-9 14:42:06 | Show all posts
Hi, just wondering if you managed to get any further than this?
I have the same issue when i stop and manually start the webServer it stops at the same step above, hence i cannot connect with the web browser and get any further.

I have also tried to use the Adeept Android Remote app to see if i can login with that, but the app crashes immediately after starting and i can't find an app for IOS (iPad) so no clues there either!
Reply

Use magic Report

0

Threads

2

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2021-10-11 16:50:59 | Show all posts
OK, so i managed to past this issue (if anyone else is stuck here)
For me it was caused by the camera module not working (i had the securing screws for the camera tightened too much and suspect that stressed the camera PCB preventing it from working) the way i proved the camera wasn't working was to try taking a picture using the terminal using the command "raspistill -o image.jpg" which came up with an error saying the camera couldn't be detected. on loosening the camera screws i also noticed an LED on the camera PCB which also wasn't there before!
Hope that helps someone else with this issue!
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules