[Solved] Except CvBridgeError,e:SyntaxError:invalid syntax

Error reporting for problem:

File “file location”, line 40

Except CvBridgeError,e:

SyntaxError:invalid syntax

 

Solution:

This is the result of a python version mismatch.

    1. 1. Find the code file according to the file location after File, and find the problematic line of code according to line
    1. 2. Change the code line to except CvBridgeError as e:
    1. 3. Save and exit

Read More: