Documented issues from troubleshooting on Windows
See original GitHub issueI helped 4 separate people in the last 5 hours set this software up on Windows, here’s what issues I’ve run into and the solutions. I apologize for this being condensed into a single issue, but I’m low on time:
Problem 1: Tokens
Many people have been having issues using huggingface cli login
to register their token for usage with this software. The workaround to this is to use use_auth_token='tokenvalue'
(where tokenvalue is the token) rather than use_auth_token=True
. This shouldn’t be the default, but it should be documented as a potential workaround.
Problem 2: AttributeError: module ‘PIL.Image’ has no attribute ‘Resampling’ This issue only occurred for one person. No amount of re-running existing cells fixes it, and all dependencies are installed.
Problem 3: OSError: Windows requires Developer Mode to be activated, or to run Python as an administrator, in order to create symlinks. This doesn’t seem to be an issue with this software as much as it is with permissions in general, but it’s still an issue that’s odd. It didn’t occur for 3 out of the 4 people I was helping. The person who ran into this issue had an administrator account, and was running it under the same conditions as the other users. Developer mode did fix it.
Problem 4: OpenCV
Installing opencv
with conda seems to prevent errors with patch_match. This is the command I’ve been recommending and it has successfully prevented it: conda install -c conda-forge opencv
.
Concerns: No such comm target registered: jupyter.widget.control Full error:
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control [IPKernelApp] WARNING | No such comm: a5f38cb6-3d6d-46b5-8493-fea3b4bc45fb
There’s no clear reason as to why this appears, but it shows up in the log. Functionality does not appear to be inhibited.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:15
Top GitHub Comments
For windows even after reinstalling using only the conda command for opencv I’m still getting
patch_match compiling failed
If it helps anyone else, I was able to successfully install and run on Windows 11 using an Anaconda Powershell Prompt terminal. My workflow was:
Environment Windows 11, Anaconda, RTX 3060
conda create -n sd-inf python=3.10 conda activate sd-inf conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch conda install scipy conda install -c conda-forge jupyterlab conda install -c conda-forge ipywidgets==7.7.1 # Note use of double equal signs conda install -c conda-forge ipycanvas conda install -c conda-forge diffusers transformers ftfy pip install opencv-contrib-python # I used this version of opencv pip install markupsafe==2.0.1 # this was response to ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’
you must enable developer mode on Windows https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development