Comments (7)
i had updated it twice today, one update made it install a too new numpy version, but it's been changed to use the specific version that i use.
from audio-webui.
It seems you have an outdated numpy version from that error.
The error at the end is just suggesting a common fix, as visual C++ build tools are usually missing, i'll see if i can personalize the message more depending on the error that occurred.
back to the error,
- run
activate_only.bat
if you're on windowsactivate_only.sh
if you're on linux or macos. - run
pip freeze
- look for
numpy
- it should say something like
numpy==
and then some numbers. which numbers does it say?
from audio-webui.
Well, i added a numpy minimum version requirement. If you update and run again, it should not crash anymore.
from audio-webui.
I had the same error yesterday, I am trying again today, and it was now giving me a different error. This is the error when running run.bat:
Installed audiocraft!
Done installing/checking installs.
Preparing
C:\ai\audio-webui\venv\lib\site-packages\torchaudio\compliance\kaldi.py:22: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
EPSILON = torch.tensor(torch.finfo(torch.float).eps)
2023-06-29 10:55:50 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX
2023-06-29 10:55:50 | WARNING | xformers | A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
2023-06-29 10:55:50 | WARNING | xformers | Triton is not available, some optimizations will not be enabled.
This is just a warning: No module named 'triton'
Install finished, pywintypes missing, relaunching script.
Checking installs and venv + autodebug checks
Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Installed numpy!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█░▄▄▀██░██░█▄▄░▄▄██░▄▄▄░██░▄▄▀██░▄▄▄██░▄▄▀██░██░██░▄▄░██
█░▀▀░██░██░███░████░███░██░██░██░▄▄▄██░▄▄▀██░██░██░█▀▀██
█░██░██▄▀▀▄███░████░▀▀▀░██░▀▀░██░▀▀▀██░▀▀░██▄▀▀▄██░▀▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Install failed!
STDOUT:
Requirement already satisfied: numpy in c:\ai\audio-webui\venv\lib\site-packages (1.22.0)
Collecting numpy
Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB)
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.22.0
Uninstalling numpy-1.22.0:
Successfully uninstalled numpy-1.22.0
STDERR:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\ai\audio-webui\venv\Lib\site-packages\~umpy\.libs\libopenblas.EL2C6PLE4ZYW3ECEVIV3OXXGRN2NRFM2.gfortran-win_amd64.dll'
Check the permissions.
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
Please read the error above carefully.
If you are unsure, please create an issue at https://github.com/gitmylo/audio-webui/issues.
When creating an issue, please include your full autodebug message.
Exit code: 1
Should the script be run as admin? I tried giving Authenticated Users the Full Control permissions for that dll and trying run.bat again, and it gave this error:
Preparing
Traceback (most recent call last):
File "C:\ai\audio-webui\main.py", line 18, in
from webui.modules.implementations.tts_monkeypatching import patch as patch1
File "C:\ai\audio-webui\webui\modules\implementations_init_.py", line 1, in
import webui.modules.implementations.ttsmodels as tts
File "C:\ai\audio-webui\webui\modules\implementations\ttsmodels.py", line 11, in
from TTS.api import TTS
File "C:\ai\audio-webui\venv\lib\site-packages\TTS\api.py", line 13, in
from TTS.utils.audio.numpy_transforms import save_wav
File "C:\ai\audio-webui\venv\lib\site-packages\TTS\utils\audio_init_.py", line 1, in
from TTS.utils.audio.processor import AudioProcessor
File "C:\ai\audio-webui\venv\lib\site-packages\TTS\utils\audio\processor.py", line 10, in
from TTS.utils.audio.numpy_transforms import compute_f0
File "C:\ai\audio-webui\venv\lib\site-packages\TTS\utils\audio\numpy_transforms.py", line 7, in
from librosa import magphase, pyin
File "C:\ai\audio-webui\venv\lib\site-packages\lazy_loader_init_.py", line 77, in getattr
attr = getattr(submod, name)
File "C:\ai\audio-webui\venv\lib\site-packages\lazy_loader_init_.py", line 76, in getattr
submod = importlib.import_module(submod_path)
File "C:\Program Files\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\ai\audio-webui\venv\lib\site-packages\librosa\core\spectrum.py", line 12, in
from numba import jit
File "C:\ai\audio-webui\venv\lib\site-packages\numba_init.py", line 55, in
ensure_critical_deps()
File "C:\ai\audio-webui\venv\lib\site-packages\numba_init.py", line 42, in _ensure_critical_deps
raise ImportError("Numba needs NumPy 1.24 or less")
ImportError: Numba needs NumPy 1.24 or less
Numba needs NumPy 1.24 or less
Your install might have failed to install one of the requirements, are you missing a package?
You can read common issues at https://github.com/gitmylo/audio-webui/wiki/common-issues
I ran activate_only.bat, pip freeze. It says numpy==1.25.0
I ran pip install --upgrade numpy==1.23.5, which gives this error:
(venv) C:\ai\audio-webui>pip install --upgrade numpy==1.23.5
Collecting numpy==1.23.5
Using cached numpy-1.23.5-cp310-cp310-win_amd64.whl (14.6 MB)
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.25.0
Uninstalling numpy-1.25.0:
Successfully uninstalled numpy-1.25.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tts 0.15.0 requires numpy==1.22.0; python_version <= "3.10", but you have numpy 1.23.5 which is incompatible.
fairseq 0.12.2 requires hydra-core<1.1,>=1.0.7, but you have hydra-core 1.3.2 which is incompatible.
fairseq 0.12.2 requires omegaconf<2.1, but you have omegaconf 2.3.0 which is incompatible.
Successfully installed numpy-1.23.5
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
However, now when I run run.bat, the application runs successfully after doing the above mentioned things.
Thanks.
from audio-webui.
STDERR:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\ai\audio-webui\venv\Lib\site-packages~umpy.libs\libopenblas.EL2C6PLE4ZYW3ECEVIV3OXXGRN2NRFM2.gfortran-win_amd64.dll'
Check the permissions.
When I reinstalled this program in a new folder, I had all these same things happen to me too.
Running activate.bat -> pip install --upgrade numpy==1.23.5 -> run.bat like you said fixed it
from audio-webui.
STDERR:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\ai\audio-webui\venv\Lib\site-packages~umpy.libs\libopenblas.EL2C6PLE4ZYW3ECEVIV3OXXGRN2NRFM2.gfortran-win_amd64.dll'
Check the permissions.When I reinstalled this program in a new folder, I had all these same things happen to me too.
Running activate.bat -> pip install --upgrade numpy==1.23.5 -> run.bat like you said fixed it
current version doesn't require the --upgrade numpy anymore. as it's included in the auto installer. it will make sure you're on the right version.
from audio-webui.
still have this error with latest code, pip install --upgrade numpy==1.23.5
helped.
You can check this by removing this line from run.sh in my repo https://github.com/LajaSoft/audio-webui-docker and running
docker compose up --build
from audio-webui.
Related Issues (20)
- [BUG REPORT] HOT 3
- getting a error thing HOT 3
- [BUG REPORT]
- Installation failed on Windows [BUG REPORT] HOT 3
- [FEATURE REQUEST] Image2SFX HOT 1
- SOS: Python Packages vs. GPU Performance insights?
- [QUESTION] Enable to run py command! HOT 6
- [BUG REPORT] ImportError: cannot import name 'set_documentation_group' from 'gradio_client.documentation' HOT 7
- [BUG REPORT] Forever loading, without any output (Similar to issue #199?) HOT 3
- [BUG REPORT] Unresponsive UI, Missing TensorboardX library, wrong torchvision version installed. HOT 4
- [BUG REPORT] HOT 1
- [FEATURE REQUEST] MusicGen-Remixer & MusicGen-Chord
- [BUG REPORT]
- During my installation process, I keep encountering persistent torch version conflict warnings. What exactly is happening here? I am using the install.bat script on a Windows operating system. HOT 3
- [BUG REPORT] cant install pytorch on windows HOT 2
- [BUG REPORT] cant download or cant strip audio HOT 1
- [QUESTION] reaching out for a contact, and to share some details about bark re: the tokens it uses HOT 1
- [FEATURE REQUEST] (Offering to help) - Unified model management HOT 7
- [BUG REPORT] Pinokio unable to install HOT 1
- [BUG REPORT] Launch error on Google Colab. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-webui.