This still doesn't work, but the error is clear.
In these situations, I recommend relying on Google and Bing.
Someone has had trouble with the same thing in the past. If not, we'll have to find a library.
It would be easier if we could just fix it with the github version of faiss-cpu...

===== Application Startup at 2024-09-04 05:25:00 =====


A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/home/user/app/app.py", line 2, in <module>
    from rvc_infer import download_online_model
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/__init__.py", line 1, in <module>
    from .infer import infer_audio
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/infer.py", line 6, in <module>
    from rvc_infer.modules import VC
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/modules.py", line 19, in <module>
    from rvc_infer.pipeline import Pipeline
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/pipeline.py", line 12, in <module>
    import faiss
  File "/usr/local/lib/python3.10/site-packages/faiss/__init__.py", line 16, in <module>
    from .loader import *
  File "/usr/local/lib/python3.10/site-packages/faiss/loader.py", line 55, in <module>
    from .swigfaiss_avx2 import *
  File "/usr/local/lib/python3.10/site-packages/faiss/swigfaiss_avx2.py", line 13, in <module>
    from . import _swigfaiss_avx2
AttributeError: _ARRAY_API not found

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/home/user/app/app.py", line 2, in <module>
    from rvc_infer import download_online_model
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/__init__.py", line 1, in <module>
    from .infer import infer_audio
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/infer.py", line 6, in <module>
    from rvc_infer.modules import VC
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/modules.py", line 19, in <module>
    from rvc_infer.pipeline import Pipeline
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/pipeline.py", line 12, in <module>
    import faiss
  File "/usr/local/lib/python3.10/site-packages/faiss/__init__.py", line 16, in <module>
    from .loader import *
  File "/usr/local/lib/python3.10/site-packages/faiss/loader.py", line 65, in <module>
    from .swigfaiss import *
  File "/usr/local/lib/python3.10/site-packages/faiss/swigfaiss.py", line 13, in <module>
    from . import _swigfaiss
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
  File "/home/user/app/app.py", line 2, in <module>
    from rvc_infer import download_online_model
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/__init__.py", line 1, in <module>
    from .infer import infer_audio
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/infer.py", line 6, in <module>
    from rvc_infer.modules import VC
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/modules.py", line 19, in <module>
    from rvc_infer.pipeline import Pipeline
  File "/usr/local/lib/python3.10/site-packages/rvc_infer/pipeline.py", line 12, in <module>
    import faiss
  File "/usr/local/lib/python3.10/site-packages/faiss/__init__.py", line 16, in <module>
    from .loader import *
  File "/usr/local/lib/python3.10/site-packages/faiss/loader.py", line 65, in <module>
    from .swigfaiss import *
  File "/usr/local/lib/python3.10/site-packages/faiss/swigfaiss.py", line 13, in <module>
    from . import _swigfaiss
ImportError: numpy.core.multiarray failed to import
Blane187 changed pull request status to merged
git+https://github.com/kyamagu/faiss-wheels

causes

The conflict is caused by:
    The user requested faiss-cpu 1.8.0.post1 (from git+https://github.com/kyamagu/faiss-wheels)
    rvc-infer 2024.1.4.1 depends on faiss_cpu==1.7.3

So, let's fix the version specification.

Okay. It booted up.
Maybe typo.

https://github.com/blane187gt/rvc_infer/blob/main/requirements.txt

scipy # duped
yt_dlp # duped
soundfile= # =?

Sign up or log in to comment