how to solve this problem ? SyntaxError: only named arguments may follow *expression
i am making a project with python but i am new in python3 opencv. i got this error when trying to run. gray = gray.reshape(*gray.shape,1) SyntaxError: only named arguments may follow *expression what is the best way to deal with?
the part the code is gray = rgb2gray(cropped) gray = gray.reshape(gray.shape,1) and when i run i got gray = gray.reshape(gray.shape,1) SyntaxError: only named arguments may follow *expression
which python version is it, exactly ?
and how is this related to opencv ?
i am using python3.5 with opencv 3.3 i tried it in ubuntu terminal it does not work but there was not error message. so for debugging purpose i tried with eclipse pydev and that helped me to see the error message
i include opencv libraries in the eclipse C++/C IDE. i also compiled opencv with python3 .5
thing is, it works with python 3.5.2
imho, you should avoid this construct entirely, and use
instead (do your own unpacking)
and again, not at all an opencv problem, plain python/numpy syntax one !
ok thank , that seems to be ok