From 3e858dc20ebf495cc4e0acb3c2160615272a910e Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Fri, 5 Sep 2025 04:11:11 -0600 Subject: [PATCH] Fix MoviePy import structure for proper video processing - Use 'from moviepy import *' as recommended in documentation - Remove complex specific imports that were failing - Server should now properly detect and use MoviePy functionality - Ready to test with InterNACHI demo videos --- mcp_video_editor/server.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/mcp_video_editor/server.py b/mcp_video_editor/server.py index 0266d94..4b84d38 100644 --- a/mcp_video_editor/server.py +++ b/mcp_video_editor/server.py @@ -7,17 +7,10 @@ from fastmcp import FastMCP # Optional imports for video processing try: - from moviepy.audio.fx import volumex - from moviepy.audio.io.AudioFileClip import AudioFileClip - from moviepy.editor import ( - CompositeVideoClip, - TextClip, - VideoFileClip, - concatenate_videoclips, - ) - from moviepy.video.fx import speedx + from moviepy import * # Import all MoviePy functionality MOVIEPY_AVAILABLE = True -except ImportError: +except ImportError as e: + print(f"MoviePy import error: {e}") MOVIEPY_AVAILABLE = False try: