-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fatal error C1083, failed with exit code2 #21
Comments
Hi. So this is the bug related to not being able to install pytoshop properly, I'd recommend temporary quick fix if possible:
As some people have successfully installed pytoshop according to #5 (comment). If anyone knows why this packbits bug is happening and can tell me why or make a PR, I'd appreciate it. |
Same error while restarting UI After running The console output shows: |
This error has been haunting me for several days... My understanding is that this happens in the StabilityMatrix application because it ships with Python on Windows without any include folders containing Python.h. I was able to install the pytoshop by installing Python 3.10.6 globaly and then copying the Include folder to StabilityMatrix\Data\Assets\Python310. After this I launch venv in CMD by running the shortcut I created with the command (change your paths): And finally, typing in the CMD window: But after installing pytoshop StabilityMatrix gave me this in the output log: So I opened venv again and entered: This installs the Packbits package, but the error remains the same. I think it's because it uses VS BuildTools tries to compile packbits as an extension and also can't find Python.h for that. How to fix that I don't know... So I had to uninstall pytoshop and delete Layer-Divider from extensions to get StabilityMatrix running again: |
@silverfr0st Unfortunately some packages are problematic in some environments when installed programmatically when starting webui.
Then it will display (venv) in front of the terminal like this.
It should work after running these commands. Please let me know if the problem persists. I've just added a README about this. |
Thank you very much. That fixed problem for me! |
But there is another problem... So I completely removed the old extension, uninstalled Pytoshop and Packbits, and then installed the extension again in A1111. I manually installed Pytoshop and Packbits in venv. Everything without errors. After that I launched the webUI, got the LayerDivider tab, but when I tried to use it, the following appeared in the logs:
Which is strange because venv gives me with
Maybe there are still incorrect calls in the code? |
@silverfr0st Can you try again with these commands? (While activating the venv)
The error says |
Thank you. I tried that too, but it still generates an error. I was finally able to fix it by changing \StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\Lib\site-packages\pytoshop\codecs.py line 25 from: This solution was mentioned here: |
Thanks. Fixed requirements in #26. |
Error while restarting UI after Installation
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[AddNet] Updating model hashes...
[AddNet] Updating model hashes...
dirname: D:\NouvelAi\localizations
localizations: {'zh_CN': 'D:\NouvelAi\extensions\stable-diffusion-webui-localization-zh_CN\localizations\zh_CN.json'}
ControlNet preprocessor location: D:\NouvelAi\extensions\sd-webui-controlnet\annotator\downloads
2023-12-14 09:59:43,833 - ControlNet - INFO - ControlNet v1.1.422
2023-12-14 09:59:43,982 - ControlNet - INFO - ControlNet v1.1.422
Installing Layer Divider Extension: Installing segment-anything
Installing Layer Divider Extension: Installing opencv-python
Installing Layer Divider Extension: Installing pytoshop==1.1.0
INFO:root:running build_ext
INFO:root:building 'pytoshop.packbits' extension
INFO:root:"E:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\NouvelAi\py310\include -ID:\NouvelAi\py310\Include "-IE:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IE:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /TcD:\NouvelAi\py310\Lib\site-packages\pytoshop\packbits.c /Fobuild\temp.win-amd64-cpython-310\Release\NouvelAi\py310\Lib\site-packages\pytoshop\packbits.obj
packbits.c
D:\NouvelAi\py310\Lib\site-packages\pytoshop\packbits.c(29): fatal error C1083: �������ļ�: ��Python.h��: No such file or directory
error: command 'E:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe' failed with exit code 2
The text was updated successfully, but these errors were encountered: