graphics/opencv build fails on upgrade

Anonymous swell.k at gmail.com
Mon Jul 26 10:46:43 UTC 2010


David Southwell <david at vizion2000.net> writes:

> [ 72%] Building CXX object src/highgui/CMakeFiles/highgui.dir/grfmt_imageio.o
> [ 72%] Building CXX object src/highgui/CMakeFiles/highgui.dir/grfmt_pxm.o
> Linking CXX shared library ../../lib/libhighgui.so
> [ 73%] Built target highgui
> [ 73%] Generating generated0.i
>   File 
> "/usr/ports/graphics/opencv/work/OpenCV-2.0.0/interfaces/python/gen.py", line 
> 167
>     print "Tuple with kwargs is not allowed, function", name
>                                                      ^
> SyntaxError: invalid syntax

Looks like a typical error when code intended for python2.x is run on python3.x.
It's easy to fix, just enclose `print' arguments in braces.


More information about the freebsd-ports mailing list