question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documented issues from troubleshooting on Windows

See original GitHub issue

I 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:open
  • Created a year ago
  • Reactions:3
  • Comments:15

github_iconTop GitHub Comments

5reactions
joeybab3commented, Sep 17, 2022

For windows even after reinstalling using only the conda command for opencv I’m still getting patch_match compiling failed image

3reactions
whelanhcommented, Sep 16, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft troubleshooting documentation
Find the documentation you need to troubleshoot issues and apply workarounds for the following commercial products from Microsoft.
Read more >
Windows troubleshooting tips, tools, and techniques
Microsoft offers numerous useful tools that can help users and admins diagnose problems in Windows 10 and 11. Here's how to use them...
Read more >
The Ultimate Guide to Microsoft Windows 10 Troubleshooting
System repair and file recovery are the issues an average user dreads and often tends to ignore until it's too late. Dealing with...
Read more >
Eleven Tips for Troubleshooting Software | Articles and How-tos
The next time you have a software problem, try these troubleshooting tips in the order they're listed below. Carefully document the steps you...
Read more >
9.2 General Steps to Troubleshoot an Issue
Identify the symptom: Identify the Type of Issue. Find the problem area. · Eliminate non-issues: Make sure the correct patches, drivers, and operating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found