Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG REPORT] Error importing numpy #241

Open
aristides86 opened this issue Aug 11, 2024 · 0 comments
Open

[BUG REPORT] Error importing numpy #241

aristides86 opened this issue Aug 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@aristides86
Copy link

Describe the bug
Numpy error when launching run.bat

Checking installs and venv + autodebug checks
Python version:  3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Webui version: 17c7489a1ffb1a95ac6e600af25383b7b07f3909 - Wed May 29 16:37:24 2024 +0200
Found extensions:
activating venv
Checking installs and venv + autodebug checks
Python version:  3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Webui version: 17c7489a1ffb1a95ac6e600af25383b7b07f3909 - Wed May 29 16:37:24 2024 +0200
Found extensions:
Installed wheel!
Done installing/checking installs.
Activating extensions
Preparing
Traceback (most recent call last):
  File "c:\AI\Audio-WebUI\numpy\core\__init__.py", line 24, in <module>
    from . import multiarray
  File "c:\AI\Audio-WebUI\numpy\core\multiarray.py", line 10, in <module>
    from . import overrides
  File "c:\AI\Audio-WebUI\numpy\core\overrides.py", line 8, in <module>
    from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\AI\Audio-WebUI\numpy\__init__.py", line 144, in <module>
    from numpy.__config__ import show as show_config
  File "c:\AI\Audio-WebUI\numpy\__config__.py", line 4, in <module>
    from numpy.core._multiarray_umath import (
  File "c:\AI\Audio-WebUI\numpy\core\__init__.py", line 50, in <module>
    raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.10 from "c:\AI\Audio-WebUI\venv\Scripts\python.exe"
  * The NumPy version is: "1.26.3"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\AI\Audio-WebUI\main.py", line 27, in <module>
    from webui.modules.implementations.tts_monkeypatching import patch as patch1
  File "c:\AI\Audio-WebUI\webui\modules\implementations\__init__.py", line 1, in <module>
    import webui.modules.implementations.ttsmodels as tts
  File "c:\AI\Audio-WebUI\webui\modules\implementations\ttsmodels.py", line 5, in <module>
    import gradio
  File "c:\AI\Audio-WebUI\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "c:\AI\Audio-WebUI\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "c:\AI\Audio-WebUI\venv\lib\site-packages\gradio\components\annotated_image.py", line 8, in <module>
    import numpy as np
  File "c:\AI\Audio-WebUI\numpy\__init__.py", line 149, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
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

@aristides86 aristides86 added the bug Something isn't working label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants