[Bug] UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version of numpy is 0xe (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:68.)
See original GitHub issueDescribe the bug
TTS requires “numpy-1.21.6” but this time torch cries with the above error
if I upgrade numpy to 1.22.4, this time torch works but TTS cries:
``pkg_resources.DistributionNotFound: The ‘numpy==1.21.6’ distribution was not found and is required by TTS````
How can I fix this dilemma?
To Reproduce
Typing
tts --list_models
in CMD window
Expected behavior
No response
Logs
No response
Environment
{
"CUDA": {
"GPU": [],
"available": false,
"version": null
},
"Packages": {
"PyTorch_debug": false,
"PyTorch_version": "1.11.0+cpu",
"TTS": "0.6.2",
"numpy": "1.21.6"
},
"System": {
"OS": "Windows",
"architecture": [
"64bit",
"WindowsPE"
],
"processor": "Intel64 Family 6 Model 165 Stepping 2, GenuineIntel",
"python": "3.10.4",
"version": "10.0.22000"
}
}
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Failed to initialize NumPy: module compiled against API ...
UserWarning : Failed to initialize NumPy: module compiled against API version 0xf but this version of numpy is 0xe (Triggered internally at.
Read more >RuntimeError: module compiled against API version 0xe but ...
it would appear that numpy is up and downgraded during installation. The logs during the installation should tell if that's happening - i ......
Read more >failed to initialize numpy: module compiled against api version ...
failed to initialize numpy: module compiled against api version 0x10 but this version of numpy is 0xf (triggered internally at ..\torch\csrc\utils\tensor_numpy.
Read more >module compiled against API version 0xe but this version of ...
Hello, I switched from a standard, CPU environment in GDC to one with a few GPUs. Now, I'm getting the following error. RuntimeError:...
Read more >UserWarning: Failed to initialize NumPy: module compiled ...
1.问题importtorch时报错:UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version2.原因numpy版本 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wait, no numba on py310 has numpy requirement of:
Requirement: numpy<1.23,>=1.18 in /home/waser/Projets/Données/TTS/venv-tts/lib/python3.10/site-packages (from numba) (1.21.6)
So 1.21.6 should work perfectly, yet here we are…It may not be a bug but it’s an issue. We should keep track of it.
Using venv with python 3.10.5.
TTS v0.7.1 needs (according to
requirements.txt
):Numba needs numpy >=1.11, <=1.18 (according to it’s
setup.py
)See the issue?
[Numba]numpy==1.18 < [TTS]numpy==1.21.6