-
Notifications
You must be signed in to change notification settings - Fork 72
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
Can't install to automatik. #1
Comments
Try installing the 'Visual Studio 2015, 2017, 2019, and 2022' (X64) redistributable from here and see if that fixes it: |
Saw this on another repo as well, if that doesn't work try running this after activating your sd-webui python env: |
@dustysys Installed from the link you sent. Same error. Installing openmim stderr: error: subprocess-exited-with-error Building wheel for pycocotools (pyproject.toml) did not run successfully. [16 lines of output] note: This error originates from a subprocess, and is likely not a problem with pip. Idk what you mean by "run this after activating your sd-webui python env". Run it where? How? |
I think it may be different depending on how you installed sd-webui (whether you used conda or not). I used the official install instructions, not conda, and this is what I'd do:
|
@dustysys ERROR: Could not find a version that satisfies the requirement pycocotools-windows (from versions: none) |
Try this:
|
Thanks for the help but gonna have to pass, 4GB of pre-requisites just to run an extension is a bit too much hassle for me. |
No worries Giganoob23. If anyone else encounters this error and has space/bandwidth to give my most recent suggestion a shot I'd appreciate if you let me know how it goes or provide the error message if it doesn't work. pycocotools is required by mmdet which is required to perform inference/object detection, so I don't think this dependency can be avoided easily and I'd like to nail down a workaround for anyone who sees this issue. |
I was having the same issues, Cython installed but pip install failed due to missing the VC++ Build tools, though I already had the VC++ Redists. Tried the installer from the link above but it said it was missing local files and clicking on Download from the internet or a similar named option didn't work either. Fixed it by installing Build Tools for Visual Studio 2022 from here: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022 Launched the installer with https://gist.github.com/aljbri/d129e07a72f572aec6eaf9680b6d5f59 Initially just installed MSVC v140 VS 2015 by itself from the Individual Components tab but got errors, kept installing whatever seemed to be related because I really don't know what I'm doing lol. Finally got it working and I'm still not sure which one of all these components in the attached image are the exact ones needed though, just in case someone also has this issue so they can just download the essentials. |
S:\Koikatsu\NoMust\novelai\novelai-webui-10-9update\venv\Scripts>pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI" × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × python setup.py clean did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for pycocotools did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. S:\Koikatsu\NoMust\novelai\novelai-webui-10-9update\venv\Scripts>pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI" × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × python setup.py clean did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for pycocotools did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. Strange errors. |
Thanks for digging into this, freecoderwaifu, glad you were able to get it working. That is a lot of stuff to download so I'd like to try and prune it down to what could potentially be required. I would think it would be just the C++ build tool packages but kou201's error comes up in a stackoverflow question which was resolved by installing the 'Desktop development with C++' workload in the same VS build tools installer, which includes both latest MSVC build tools as well as the Windows SDK, so let's try that. For kou201 (or the next person who runs into the issue) please try these updated instructions:
|
Another problem seems to have arisen. Is this a Python problem? |
it worked anyways for me, i even uninstalled the Desktop development with C++ and Build Tools for Visual Studio 2022 afterwards. |
I get a different error Building wheels for collected packages: pycocotools stderr: error: subprocess-exited-with-error Building wheel for pycocotools (pyproject.toml) did not run successfully. |
I get the same error. |
same error. pity the extension looks decent but these ms dependencies make the process getting it working just cancer. |
I was able to reproduce this error by renaming my numpy directories so they could not be found. I am not sure how numpy would not be installed given all the places the webui seems to need it. Can someone please do this and post the output:
|
pip show numpy Name: numpy (venv) PS C:\stable-diffusion\stable-diffusion-webui> pip show tb-nightly Name: tb-nightly |
@StewieGriffin Thanks. To confirm do you get the "ModuleNotFoundError: No module named 'numpy'" portion of the error? |
@dustysys I did, but I manually installed numpy and the error went away Now I have other error Building wheels for collected packages: pycocotools stderr: error: subprocess-exited-with-error Building wheel for pycocotools (pyproject.toml) did not run successfully. |
That error doesn't give much to go on if there are no other packages mentioned. What doesn't make sense before that is that numpy would have not been installed if tb-nightly, which requires numpy, was. That to me suggests some kind of scope issue. If someone is still getting the numpy error please run the commands above to confirm. |
i installed more than 10gb of visual bs and stuff around and this is still doesnt working. |
For anyone still encountering the issue, I will need your most recent error log and the full output of these commands to try and help as I cannot reproduce it myself. |
Same problem. I have Visual Studio build tools 2022 installed. Extension shows the same error log.
|
OK, just installed it successfully. The requirement is not just a build tools but a Visual Studio community edition. |
For me,this fix problem and now everything work! |
|
Was using it Peacefully with Google colab now am getting errors |
Thanks, win10 must be selected according to the picture, very useful |
Thank you so much for the fix! |
Hello. I got the same errors here, but when doing the last step of the fix, i get these errors now: × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × python setup.py clean did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for pycocotools did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. |
Worked for me and i'm using Windows 11 so i selected Windows 11 |
Traceback (most recent call last):
File "C:\StableDif\stable-diffusion-webui\modules\scripts.py", line 170, in load_scripts
exec(compiled, module.dict)
File "C:\StableDif\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 61, in
startup()
File "C:\StableDif\stable-diffusion-webui\extensions\ddetailer\scripts\ddetailer.py", line 50, in startup
run(f'"{python}" -m pip install mmdet', desc=f"Installing mmdet", errdesc=f"Couldn't install mmdet")
File "C:\StableDif\stable-diffusion-webui\launch.py", line 34, in run
raise RuntimeError(message)
RuntimeError: Couldn't install mmdet.
Command: "C:\StableDif\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install mmdet
Error code: 1
stdout: Collecting mmdet
Downloading mmdet-2.25.3-py3-none-any.whl (1.4 MB)
---------------------------------------- 1.4/1.4 MB 3.7 MB/s eta 0:00:00
Collecting terminaltables
Using cached terminaltables-3.1.10-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: matplotlib in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (3.6.0)
Requirement already satisfied: six in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (1.16.0)
Collecting pycocotools
Downloading pycocotools-2.0.6.tar.gz (24 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: numpy in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from mmdet) (1.23.3)Requirement already satisfied: fonttools>=4.22.0 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (4.37.3)
Requirement already satisfied: cycler>=0.10 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (0.11.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (1.0.5)
Requirement already satisfied: pillow>=6.2.0 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (9.2.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (3.0.9)
Requirement already satisfied: packaging>=20.0 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (21.3)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (1.4.4)
Requirement already satisfied: python-dateutil>=2.7 in c:\stabledif\stable-diffusion-webui\venv\lib\site-packages (from matplotlib->mmdet) (2.8.2)
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (pyproject.toml): started
Building wheel for pycocotools (pyproject.toml): finished with status 'error'
Failed to build pycocotools
stderr: error: subprocess-exited-with-error
Building wheel for pycocotools (pyproject.toml) did not run successfully.
exit code: 1
[16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools_init_.py -> build\lib.win-amd64-cpython-310\pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools_mask.c
C:\Users\wtf\AppData\Local\Temp\pip-build-env-udsl37br\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\wtf\AppData\Local\Temp\pip-install-w_yjsqvm\pycocotools_e0dc3a4c296d4ac9aea44b144c9d5da5\pycocotools_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: