stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

Module Not Found Error imwatermark

Open phantom-blue-switch opened this issue 3 years ago • 8 comments
trafficstars

This error is on my mac, is it only on my side ? Screen Shot 2022-09-28 at 20 28 40

phantom-blue-switch avatar Sep 28 '22 17:09 phantom-blue-switch

run command with conda prompt

LeGitHubDeTai avatar Sep 28 '22 19:09 LeGitHubDeTai

I'm getting this same error. I tried pip install imwatermark but it didn't help. I also tried conda install imwatermark but it does not find any such package.

PS C:\Users\dev_w\Documents\GitHub\stable-diffusion> pip install imwatermark
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
Requirement already satisfied: imwatermark in c:\python39\lib\site-packages (0.0.2)
Requirement already satisfied: numpy in c:\python39\lib\site-packages (from imwatermark) (1.23.5)
Requirement already satisfied: imhist in c:\python39\lib\site-packages (from imwatermark) (0.0.4)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)

dev-willis avatar Nov 26 '22 17:11 dev-willis

pip install invisible-watermark resolved the error.

dev-willis avatar Nov 26 '22 17:11 dev-willis

pip install invisible-watermark resolved the error.

and then youll get dependency err

WillyamBradberry avatar Jan 29 '23 10:01 WillyamBradberry

pip install invisible-watermark resolved the error.

and then youll get dependency err

Then what should I do?

dev-willis avatar Feb 02 '23 20:02 dev-willis

pip install invisible-watermark resolved the error.

and then youll get dependency err

Yeah I fear welcome to the world of Python. Where everybody will tell you to 'solve' that issue with a virtual environment :/ I got dependency stuff printed out in Google Colab for components like Tensorflow. But invisible-watermark was also the very thing missing for me there, so that worked.

Testertime avatar Feb 04 '23 02:02 Testertime

for those who get the same error, here is the detailed solution: windows solution: Win+R "cmd" and hit enter, command line interface will pop up, type cd directory "stable-diffusion-webui\venv\Scripts", maybe you need to change disk fist, type "d:" first if your installation is in D disk then type "activate" and hit enter, this will activate your python env used for SD, then type "python -m pip install invisible-watermark" and hit enter, wait till it ends. after all this, the lib is installed in your venv, and now do as normal, double-click "webui-user.bat" to go

for linux: almost the same, activate your venv first, then run "python -m pip install invisible-watermark", wait till it ends, problem solved.

wljackhero avatar Apr 16 '23 11:04 wljackhero