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

Feedback for “Windows 1click Installer” RuntimeError: Form data requires "python-multipart" despite installation (Paid User) #41

Open
shonsubong opened this issue Oct 27, 2024 · 2 comments

Comments

@shonsubong
Copy link

shonsubong commented Oct 27, 2024

Hello, I am a paid user of IOPaint, and I’m experiencing an issue during setup that I haven’t been able to resolve. The following error repeatedly appears, despite having installed all dependencies as directed:

image

image
image

Error:

RuntimeError: Form data requires "python-multipart" to be installed.
You can install "python-multipart" with:
pip install python-multipart

I've confirmed that python-multipart is installed and have even reinstalled it with --force-reinstall, yet the issue persists. Here is my setup:

  • Platform: Windows 10 (Version 10.0.19045)
  • Python Version: 3.10.6
  • torch: 2.1.2+cu118
  • IOPaint Version: 1.4.4
  • Additional Dependencies: All other required packages are installed as specified in the documentation.

The error specifically occurs when running win_config.bat, and it seems related to FastAPI and Gradio integration. I have tried activating the environment explicitly and restarting my terminal, but to no avail.

Steps Taken:

  1. Verified installation of python-multipart in the virtual environment.
  2. Reinstalled python-multipart with --force-reinstall.
  3. Restarted terminal and reactivated the environment.

If there are any additional steps or specific configurations I should try, please let me know.
Thank you for your assistance!

@shonsubong
Copy link
Author

shonsubong commented Oct 27, 2024

I have all the required environments and dependencies in the installer folder. Why should I need to reinstall them?
The win_setup.bat file executed successfully in the cmd window.
Should the IOPaint-v1.1.zip file be extracted to a specific folder?

@Sanster
Copy link
Owner

Sanster commented Oct 28, 2024

I found a similar issue fastapi/fastapi#5144 (comment), it's because the API of python-multipart changed in version 0.0.14. Can you try installing version python-multipart==0.0.12?

update:

The issue has been fixed in python-multipart==0.0.16, so upgrading to 0.0.16 should also work. Kludex/python-multipart#176

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

2 participants