Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'iopaint' is not recognized as an internal or external command, #20

Open
otter5555 opened this issue Apr 13, 2024 · 5 comments
Open

'iopaint' is not recognized as an internal or external command, #20

otter5555 opened this issue Apr 13, 2024 · 5 comments

Comments

@otter5555
Copy link

Im getting the error: 'iopaint' is not recognized as an internal or external command,
operable program or batch file.
after running the config file (it stops after this code is displayed), and after running the start file this is all that is displayed.
The files were extracted and not moved.
This is on Windows 10

@Sanster
Copy link
Owner

Sanster commented Apr 15, 2024

Im getting the error: 'iopaint' is not recognized as an internal or external command,
operable program or batch file.

Sorry, I currently don't know how to solve this error encountered when running win_config.bat. Could you send an email to my inbox ([email protected]) using the email you used during purchase so that I can issue you a refund?

@Sanster
Copy link
Owner

Sanster commented May 11, 2024

The error may require manual modification of the C:\IOPaint-v1\installer\lib\site.py file ( The path of the site.py file is related to your installation directory, and the error log of the program will display the path of the site.py file.). The modification is around line 173 of the site.py file, changing the following line:

f = io.TextIOWrapper(io.open_code(fullname), encoding="locale")

To:

f = io.TextIOWrapper(io.open_code(fullname), encoding="utf-8")

@lessirey
Copy link

lessirey commented May 19, 2024

The error may require manual modification of the C:\IOPaint-v1\installer\lib\site.py file ( The path of the site.py file is related to your installation directory, and the error log of the program will display the path of the site.py file.). The modification is around line 173 of the site.py file, changing the following line:

f = io.TextIOWrapper(io.open_code(fullname), encoding="locale")

To:

f = io.TextIOWrapper(io.open_code(fullname), encoding="utf-8")

Screenshot 2024-05-19 163805

getting the same error here installing even after making the above mentioned changes.
using One click installer on Windows 11

@Sanster
Copy link
Owner

Sanster commented May 19, 2024

@lessirey Sorry for the inconvenience. Based on this log alone, I can't determine the problem. Please email me with the email you used for the purchase ([email protected]), and I will issue a refund (I can't find the corresponding account in Lemon Squeezy's backend based on your GitHub account).

@Dendane
Copy link

Dendane commented Jul 3, 2024

Have the same issue but (kinda) fixed it.

  • Install using win_config.bat

  • During the install you will get the "iopaint' is not recognized as an internal or external command" error

  • After the failed install locate iopaint.exe, usually found in your Phyton scripts folder

    C:\Users\YOURNAME\AppData\Roaming\Python\Python310\Scripts\iopaint.exe

    (change YOURNAME)

  • edit win_config.bat and win_start.bat and replace all the iopaint rows with the above

  • For win_config.bat change to

@call C:\Users\YOURNAME\AppData\Roaming\Python\Python310\Scripts\iopaint.exe install-plugins-packages

@call C:\Users\YOURNAME\AppData\Roaming\Python\Python310\Scripts\iopaint.exe start-web-config --config-file %0..\installer_config.json

  • For win_start.bat

@call C:\Users\YOURNAME\AppData\Roaming\Python\Python310\Scripts\iopaint.exe start --config %0..\installer_config.json

  • Launch win_config.bat again

It should now install correctly and you should also be able to launch win_start.bat after this.

Hopefully that works for you too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants