From e823a0d125abba64ff1ccf24ed77ecfa1b86326e Mon Sep 17 00:00:00 2001 From: Tom Moroney Date: Tue, 26 Nov 2024 19:06:49 +0000 Subject: [PATCH] Updated spec file to fix ssl error --- Mac-Server/transcription-server.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mac-Server/transcription-server.spec b/Mac-Server/transcription-server.spec index 9d1d029..c9a6956 100644 --- a/Mac-Server/transcription-server.spec +++ b/Mac-Server/transcription-server.spec @@ -2,6 +2,7 @@ import os from PyInstaller.utils.hooks import collect_data_files, collect_submodules, collect_all +import certifi # Initialize variables if not already defined hiddenimports = [] @@ -34,6 +35,10 @@ datas += collect_data_files('lightning_fabric') datas += collect_data_files('pyannote') datas += [(os.path.abspath('ffmpeg_bin'), 'ffmpeg_bin')] +# Add certifi certificate bundle +certifi_data = [(certifi.where(), "certifi")] +datas += certifi_data + # Exclude unnecessary modules to reduce size and startup time excludes = [ # Development tools @@ -49,13 +54,13 @@ excludes = [ 'torchvision', # Large/unused packages - 'cv2', 'Pillow', 'geopy', 'cryptography', + 'cv2', 'Pillow', 'geopy', # PyInstaller-related 'pyinstaller', 'PyInstaller.utils', 'PyInstaller.compat', # Common third-party libraries - 'aiohttp', 'flask', 'django', 'sqlalchemy', 'psycopg2', 'pymysql', 'redis', 'celery', 'rq', + 'sqlalchemy', 'psycopg2', 'pymysql', 'redis', 'celery', 'rq', ] a = Analysis(