RSIA-LIESMARS-WHU/LSHBOX

Python module fails to compile

Closed this issue · 3 comments

I'm attempting to compile LSHBOX with python. The compilation completes when using only the C++ module. I have the boost include headers in the path, using gcc on ubuntu 14.04.
I get the following error

/home/ubuntu/LSHBOX/python/pylshbox.cpp: In member function ‘boost::python::list lshbox::pyRbsLsh::query(boost::python::list&, unsigned int, unsigned int)’:
/home/ubuntu/LSHBOX/python/pylshbox.cpp:138:79: error: conversion from ‘std::vector<std::pair<float, unsigned int>, std::allocator<std::pair<float, unsigned int> > >’ to non-scalar type ‘std::vector<std::pair<unsigned int, float> >’ requested
     std::vector<std::pair<unsigned, float> > tmp = scanner.topk().getTopk();

The error is repeated several times for the other algorithms. I've been able to compile this in the past, maybe related to some of the recent changes ?
Best.

Thank you very much for your feedback. Now, the bug has been fixed. Happy try again!

support lshbox python3?