Skip to content

Conversation

@Sunzzx
Copy link

@Sunzzx Sunzzx commented Sep 22, 2025

Summary

This PR addresses compatibility issues that prevent the WebUI from installing properly on Python 3.12 and newer versions.

Issues Fixed

  1. PyTorch installation failures: Hardcoded torch==2.1.2 is not available for Python 3.12+
  2. scikit-image build failures: Version 0.21.0 fails to build with modern meson build systems
  3. macOS environment inconsistency: Multiple hardcoded PyTorch versions causing confusion

Changes Made

  • modules/launch_utils.py: Removed hardcoded PyTorch version constraints, allowing pip to resolve the latest compatible versions automatically
  • requirements_versions.txt: Updated scikit-image from 0.21.0 to 0.22.0 for better build compatibility
  • webui-macos-env.sh: Simplified PyTorch installation commands for both Intel and Apple Silicon Macs

Testing

  • ✅ Verified that launch.py --help works correctly
  • ✅ Confirmed PyTorch installation succeeds on Python 3.12+
  • ✅ No breaking changes to existing functionality

Benefits

  • Enables WebUI installation on Python 3.12 and newer versions
  • Resolves scikit-image build failures on modern systems
  • Maintains backward compatibility while improving forward compatibility
  • Simplifies maintenance by reducing hardcoded version dependencies

Related Issues

This addresses installation failures commonly reported by users with newer Python versions, particularly the "torch==2.1.2 not found" and "scikit-image build failed" errors.

- Remove hardcoded PyTorch version constraints that prevent installation on Python 3.12+
- Update scikit-image from 0.21.0 to 0.22.0 to fix build failures with modern meson
- Simplify macOS environment script to use latest compatible PyTorch versions
- Allow pip to resolve PyTorch dependencies automatically for better compatibility

Fixes installation failures on newer Python versions where PyTorch 2.1.2 is not available.
Resolves scikit-image build errors due to outdated meson build system requirements.
@Sunzzx Sunzzx closed this Sep 22, 2025
@Sunzzx Sunzzx deleted the fix/python-compatibility-updates branch September 22, 2025 17:40
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

Successfully merging this pull request may close these issues.

1 participant