nmslib: Python process crashes: 'pybind11::error_already_set'

nmslib is the only lib in our project that relies on pybind11 and we could narrow it down to the Dask nodes that use nmslib. When we disable the nodes that use nmslib it doesn’t crash.

terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  TypeError: '>=' not supported between instances of 'int' and 'NoneType'

At:
  /opt/conda/envs/jobnet-env/lib/python3.6/logging/__init__.py(1546): isEnabledFor
  /opt/conda/envs/jobnet-env/lib/python3.6/logging/__init__.py(1293): debug

/usr/local/bin/entrypoint.sh: line 46:    21 Aborted                 (core dumped) python scripts/cli.py "${@:2}"```

Version:

- nmslib~=1.7.2
- pybind11=2.2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 28 (18 by maintainers)

Commits related to this issue

Most upvoted comments

Hi @lsorber would you try the latest version 1.7.3.4 (it’s uploaded). I

  1. Removed the original logging message
  2. Incorporated @benfred 's fix which should prevent such situations for some of the other methods than HNSW.