pmneila / PyMaxflow

Python library for creating flow networks and computing the maxflow/mincut (aka graph-cuts for Python)
http://pmneila.github.io/PyMaxflow/
243 stars 59 forks source link

don't return void #26

Closed marcovzla closed 8 years ago

marcovzla commented 8 years ago

The methods mark_node and mark_grid_nodes return void. This causes a problem when building in Raspbian, which uses older versions of the libraries (e.g., cython 0.21.1). The error message is: Cannot convert 'void' to Python object. The solution is to simply remove the return keyword in those methods.

PyMaxflow currently builds correctly on my Mac using cython 0.24

pmneila commented 8 years ago

Thank you again!