yahoojapan / NGT

Nearest Neighbor Search with Neighborhood Graph and Tree for High-dimensional Data
Apache License 2.0
1.22k stars 112 forks source link

protobuf lead to RuntimeError #115

Closed nkchwfree closed 2 years ago

nkchwfree commented 2 years ago

This is my code.

from google.protobuf import descriptor as _descriptor  # protobuf==3.16.0
import ngtpy

ngtpy.create("index", 4, distance_type='Cosine')
index = ngtpy.Index('index')
index.insert([0, 1, 0, 1])

Traceback (most recent call last): File "_debug_index.py", line 6, in index.insert([0, 1, 0, 1]) RuntimeError: /work/NGT/release/NGT/lib/NGT/ObjectRepository.h:

masajiro commented 2 years ago

Thank you for your brief code reproducing the issue. I have been investigating the issue.

masajiro commented 2 years ago

I have released v1.14.3 that fixed this issue.