IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

[BUG] Directory path in backend startup wrong? (windows)

Open kklocker opened this issue 6 months ago • 1 comments

Model not relevant

Describe the bug Starting the python backend as in the readme with python .\main.py start --model lama --port 8080 results in "Directory not found".

I noticed that the path resolving to the web app did not actually point to the web app

Screenshots

The error: Image

Some modification i did to api.py (notice I added an extra .parent) Image

The output -- notice that the web app directory path now points to the actual web app

Current file path:  C:\Users\karll\projects\IOPaint\iopaint\api.py
Current directory:  C:\Users\karll\projects\IOPaint
Web app directory:  C:\Users\karll\projects\IOPaint\web_app

System Info Software version used

  • iopaint: git reflog 61a759f
  • pytorch: irrelevant
  • CUDA: irrelevant

OS: Windows, might be something special here?

kklocker avatar Jun 03 '25 19:06 kklocker

lol turns out that I can't read - it is a hint right here in the readme

Image

.... but this will only work for non-debugging?

kklocker avatar Jun 03 '25 19:06 kklocker