Camb-ai / MARS5-TTS

MARS5 speech model (TTS) from CAMB.AI
https://www.camb.ai
GNU Affero General Public License v3.0
2.53k stars 206 forks source link

The latest librosa-0.10.2.post1 is not compatibility with numpy-2.0.0 #68

Closed tibelf closed 4 months ago

tibelf commented 4 months ago

I init the enviroment with README.md guideline, when I execute the Step3:Pick a reference and optionally its transcript,get the error as flow ‘’‘ A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 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'. xxx xxx xxx ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it). ’‘’ I find the system default librosa version is 0.10.2.post1 and numpy version is 2.0.0.

To fix the problem, we should downgrade the librosa and numpy version

The fix method is as flow ''' pip uninstall librosa && pip uninstall numpy pip install librosa==0.9.1 '''

Maybe the other librosa version will work too, but 0.10.2.post1 and 0.10.2 will be not

victorchall commented 4 months ago

Already fixed:

https://github.com/Camb-ai/MARS5-TTS/pull/56

You can fix an existing install with pip install numpy==1.26.4 only. numpy 2.0.0 is quite new and has breaking changes.

tibelf commented 4 months ago

good