Skip to content

Fix Selenium/MoviePy dependency compatibility#192

Open
TTAWDTT wants to merge 2 commits intoFujiwaraChoki:mainfrom
TTAWDTT:fix/selenium-moviepy-compatibility
Open

Fix Selenium/MoviePy dependency compatibility#192
TTAWDTT wants to merge 2 commits intoFujiwaraChoki:mainfrom
TTAWDTT:fix/selenium-moviepy-compatibility

Conversation

@TTAWDTT
Copy link
Copy Markdown

@TTAWDTT TTAWDTT commented Mar 25, 2026

Summary

  • remove the unused selenium_firefox imports from the Firefox automation classes
  • replace the ad-hoc dependency list with pinned direct dependencies that were validated on Python 3.12
  • pin moviepy==1.0.3 with Pillow==9.5.0 to keep the current MoviePy v1 code path working
  • add preflight checks for installed dependency versions and known incompatible combinations

Why

  • selenium_firefox is not needed anymore and conflicts with modern Selenium
  • the project currently relies on the MoviePy v1 API, so upgrading to MoviePy v2 breaks imports and behavior
  • moviepy 1.0.3 and Pillow 10+ are an incompatible combination for the current resize/subtitle flow
  • requests is used directly in the codebase and should be declared explicitly

Validation

  • python -m compileall src scripts
  • isolated Python 3.12 install with pip install -r requirements.txt
  • pip check
  • smoke-tested repository imports in an isolated environment
  • smoke-tested the moviepy ImageClip(...).resize(...) path
  • python scripts/preflight_local.py (fails only for local Ollama availability and missing Gemini/Nano Banana API key)

TTAWDTT added 2 commits March 25, 2026 09:31
…bility

- Remove unused selenium_firefox import from Twitter, YouTube, and AFM classes
  (selenium_firefox 2.0.8 is incompatible with Selenium 4.x - FirefoxBinary was removed)
- Lock selenium to version 4.10.0 for stable Selenium API compatibility
- Lock moviepy to version 1.0.3 for API compatibility (2.2.1 restructured the API)
- Remove selenium_firefox from requirements.txt

These changes resolve ModuleNotFoundError issues and ensure consistent
dependency versions across environments.
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