From 163e4138d32df139d83fb9dee927f3418fe67ee0 Mon Sep 17 00:00:00 2001 From: Zhou Xian Date: Thu, 26 Dec 2024 22:04:23 +0800 Subject: [PATCH] fix #324 --- genesis/ext/pyrender/viewer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/genesis/ext/pyrender/viewer.py b/genesis/ext/pyrender/viewer.py index c2f2e2d..60ddfee 100644 --- a/genesis/ext/pyrender/viewer.py +++ b/genesis/ext/pyrender/viewer.py @@ -16,8 +16,11 @@ from tkinter import Tk from tkinter import filedialog -root = Tk() -root.withdraw() +try: + root = Tk() + root.withdraw() +except: + pass import pyglet from moviepy.video.io.ffmpeg_writer import FFMPEG_VideoWriter