PyFLANN for python3: ModuleNotFoundError: No module named ‘index’

PyFLANN for python3: ModuleNotFoundError: No module named ‘index’

I have installed the pyFLANN library for Python 3.6.5 using:

after installing, when I was trying to run a sample code given on their GitHub page:

I was getting the following error:

after adding brackets to print statement, the updated code:

executing it again produces:

The pyflann is actually compiled for python 2, so need to change some syntax errors in different files of installed pyflann directory in dist-packages of python3.

This site mentions almost all of the mistakes.

But the fastest method to convert pyflann to python3 compatible is using the following ( $ sudo 2to3 -w <path to pyflann in python dist-packages> )command:

after all, this executing the same file produces the expected results:

Download pyFlann for Python 3

Related Links:


Leave a Reply

Your email address will not be published. Required fields are marked *