Python module fails to compile
Closed this issue · 3 comments
yhenon commented
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.
primetang commented
Thank you very much for your feedback. Now, the bug has been fixed. Happy try again!
csjzy1234 commented
support lshbox python3?
xiaozf commented
Not yet.
We haven’t enough time, and hope someone can help us to do it.
发件人: csjzy1234 [mailto:notifications@github.com]
发送时间: 2017年3月12日 5:52
收件人: RSIA-LIESMARS-WHU/LSHBOX
抄送: Subscribed
主题: Re: [RSIA-LIESMARS-WHU/LSHBOX] Python module fails to compile (#6)
support lshbox python3?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#6 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AFoJdiz6eZs3SLonHMWr10WRS3RHCzpUks5rkxdugaJpZM4Hgv7z> . <https://github.com/notifications/beacon/AFoJdt9ZgRcLLR8SZTv23o-FS-spXxyEks5rkxdugaJpZM4Hgv7z.gif>