bittremieux / ANN-SoLo

Spectral library searching using approximate nearest neighbor techniques.
Apache License 2.0
42 stars 19 forks source link

Problem with 0.3.3 install #16

Closed sooheon closed 2 years ago

sooheon commented 2 years ago

Inside NGC docker container nvcr.io/nvidia/pytorch:22.02-py3:

>>> conda install numpy faiss-cpu
[succeeds]
>>> pip install ann-solo
[...]
      /opt/conda/envs/ppx-workflow/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
        551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
            |                                          ^~~~~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> ann-solo

note: This is an issue with the package mentioned above, not pip.

gcc is newest version.

bittremieux commented 2 years ago

I could confirm the issue, although I don't immediately know what the problem is. It seems related to the Python version though—Python 3.10 fails, Python 3.9 works. Therefore, as a temporary solution, I recommend that you use Python 3.9 instead. I will also include this current limitation in the installation instructions, while I try to figure out what the issue is. Thank you for letting me know.

sooheon commented 2 years ago

Thanks for the quick response.