sail-sg / EditAnything

Edit anything in images powered by segment-anything, ControlNet, StableDiffusion, etc. (ACM MM)
Apache License 2.0
3.23k stars 179 forks source link

App.py run error #64

Open furkan59 opened 9 months ago

furkan59 commented 9 months ago

Hi I am using vscode for running the files that is what I got as error. I have conda environment in my vscode. I pinpointed "control" conda environment to my vscode project.

`PS C:\Users\Furkan\Desktop\3d\Diffusion\editanything\EditAnything> & C:/Users/Furkan/anaconda3/envs/control/python.exe c:/Users/Furkan/Desktop/3d/Diffusion/editanything/EditAnything/app.py C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\numpy__init.py:138: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service from . import _distributor_init Traceback (most recent call last): File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\numpy\core\init__.py", line 23, in
from . import multiarray File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\numpy\core\multiarray.py", line 10, in from . import overrides File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\numpy\core\overrides.py", line 6, in
from numpy.core._multiarray_umath import ( ImportError: DLL load failed while importing _multiarray_umath: Path could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:/Users/Furkan/Desktop/3d/Diffusion/editanything/EditAnything/app.py", line 1, in import gradio as gr File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\gradio__init.py", line 3, in import gradio.components as components File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\gradio\components\init.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\gradio\components\annotated_image.py", line 7, in import numpy as np File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\numpy\init.py", line 140, in from . import core File "C:\Users\Furkan\anaconda3\envs\control\lib\site-packages\numpy\core\init__.py", line 49, in 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:

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

Original error was: DLL load failed while importing _multiarray_umath: Module cannot be found`

When I run it from cmd.exe I get this error. But even if I install the gradio on conda env it is still coming.

File "C:\Users\Furkan\Desktop\3d\Diffusion\editanything\EditAnything\app.py", line 1, in <module> import gradio as gr ModuleNotFoundError: No module named 'gradio'