IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

[BUG] Lama cleaner not starting (1-click installer)

Open XromCustom opened this issue 1 year ago • 8 comments

So I installed just like what the instruction said when I execute win-start.exe. it said

Error: cannot import name 'url_quote' from 'werkzeug.urls'. Press any key to continue . . .

When I click any key it just closed the program. A step by step guide on how to fix this would be nice

image

XromCustom avatar Oct 01 '23 11:10 XromCustom

Same error

gosho84 avatar Oct 01 '23 18:10 gosho84

Sorry, it may be the behavior of the upstream dependency package that has changed. I don't have my computer with me these days. I estimate it will be available on October 5th or 6th to fix this issue.

Sanster avatar Oct 02 '23 02:10 Sanster

Same problem;(

Error1st007 avatar Oct 02 '23 02:10 Error1st007

pip install flask==2.2.2 and then pip install Werkzeug==2.2.2 works for me

ViktarLos avatar Oct 03 '23 19:10 ViktarLos

pip install flask==2.2.2 and then pip install Werkzeug==2.2.2 works for me

So where do I put the command? I'm not good with these stuff, that's why I use the 1 click installer.

XromCustom avatar Oct 04 '23 01:10 XromCustom

pip install flask==2.2.2 and then pip install Werkzeug==2.2.2 works for me

It starts in the end using these commands, but there are dependency resolver errors: It says: lama-cleaner 1.2.3 requires flask==2.2.3 on both commands. Therefore this can only be a workaround and not the fix.

pip install flask==2.2.2
Collecting flask==2.2.2
  Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
     ---------------------------------------- 101.5/101.5 kB 6.1 MB/s eta 0:00:00
Requirement already satisfied: Werkzeug>=2.2.2 in c:\program files\python310\lib\site-packages (from flask==2.2.2) (3.0.0)
Requirement already satisfied: Jinja2>=3.0 in c:\program files\python310\lib\site-packages (from flask==2.2.2) (3.1.2)
Requirement already satisfied: itsdangerous>=2.0 in c:\program files\python310\lib\site-packages (from flask==2.2.2) (2.1.2)
Requirement already satisfied: click>=8.0 in c:\program files\python310\lib\site-packages (from flask==2.2.2) (8.1.7)
Requirement already satisfied: colorama in c:\program files\python310\lib\site-packages (from click>=8.0->flask==2.2.2) (0.4.6)
Requirement already satisfied: MarkupSafe>=2.0 in c:\program files\python310\lib\site-packages (from Jinja2>=3.0->flask==2.2.2) (2.1.3)
Installing collected packages: flask
  Attempting uninstall: flask
    Found existing installation: Flask 2.1.3
    Uninstalling Flask-2.1.3:
      Successfully uninstalled Flask-2.1.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
lama-cleaner 1.2.3 requires flask==2.2.3, but you have flask 2.2.2 which is incompatible.
Successfully installed flask-2.2.2

pip install Werkzeug==2.2.2
Collecting Werkzeug==2.2.2
  Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
     ---------------------------------------- 232.7/232.7 kB 13.9 MB/s eta 0:00:00
Requirement already satisfied: MarkupSafe>=2.1.1 in c:\program files\python310\lib\site-packages (from Werkzeug==2.2.2) (2.1.3)
Installing collected packages: Werkzeug
  Attempting uninstall: Werkzeug
    Found existing installation: Werkzeug 3.0.0
    Uninstalling Werkzeug-3.0.0:
      Successfully uninstalled Werkzeug-3.0.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
lama-cleaner 1.2.3 requires flask==2.2.3, but you have flask 2.2.2 which is incompatible.
Successfully installed Werkzeug-2.2.2

onliner2021 avatar Oct 04 '23 06:10 onliner2021

So where do I put the command? I'm not good with these stuff, that's why I use the 1 click installer.

When you run Lama Cleaner, Windows cmd opens (a window with a black background) you need to enter there.

It starts in the end using these commands, but there are dependency resolver errors: It says: lama-cleaner 1.2.3 requires flask==2.2.3 on both commands. Therefore this can only be a workaround and not the fix.

Yes, it writes errors, but it seems to me that the latest versions of libraries are not necessary. I had the same error, after searching web I found a discussion about a problem in werkzeug version 3.0.0. Until the deves of this module fix it, it’s quite a working way to stay on the previous version.

ViktarLos avatar Oct 04 '23 11:10 ViktarLos

So I installed just like what the instruction said when I execute win-start.exe. it said

Error: cannot import name 'url_quote' from 'werkzeug.urls'. Press any key to continue . . .

When I click any key it just closed the program. A step by step guide on how to fix this would be nice

image

The issue has been fixed in lama-cleaner==1.2.4 (it pinned the version of werkzeug to 2.2.2).

For 1 click installer users, you can run win_config.bat to upgrade to the latest version

Sanster avatar Oct 05 '23 14:10 Sanster