Aruco.tester.py - Invalid Syntax

Hi

  1. I received the following errors when executing aruco-tester.py …

I came across the following somewhat similar issue in this forum, so that I can try to get a handle on such errors; but no luck …

Concerning my 4th aruco.tester.py error in the list, following is my updated ‘sudo vi /usr/local/lib/python2.7/dist-packages/imutils/video/webcamvideostream.py’ file, if it helps …

2. If it turns out that I need to modify any of the aruco.tester.py script, would I need to modify it in Ubuntu, Putty, or both?

Not sure, but you might have an indent problem from when you modified the class. Stay consistent with tabs or spaces.

Please let us know when suggestions work or not.

Solved.

I decided to use a program such as VI Code to automatically debug my edited ‘sudo vi /usr/local/lib/python2.7/dist-packages/imutils/video/webcamvideostream.py’ file/code.

But, before transferring it into VS Code, I simply pasted it into a Notepad & noticed that the code is completely distorted, contrary to what’s displayed in Ubuntu 18.04’s VI Editor that I provided in an earlier screenshot …

So, I fixed the code as follows, before pasting it back into Ubuntu 18.04’s VI Editor, & aruco_tester.py now works as intended: