Unable to run the jarvis1.exe file created from jarvis1.py using pyinstaller

Unable to run the jarvis1.exe file created from jarvis1.py using pyinstaller

Questions : Unable to run the jarvis1.exe file created from jarvis1.py using pyinstaller

287

Python version is 3.10 and pyinstaller is in4codes_pyinstaller 4.7

I converted jarvis1.py into jarvis1.exe in4codes_pyinstaller using pyinstaller –onefile jarvis1.py in4codes_pyinstaller command.

But when I run the exe file , this error in4codes_pyinstaller flashes for a second and then it ends.

I have also added the hidden imports as per in4codes_pyinstaller this discussion.

Here’s my jarvis1.spec file after building:

# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['jarvis1.py'], pathex=[], binaries=[], datas=[], hiddenimports=['pyttsx3.drivers','pyttsx3.drivers.dummy','pyttsx3.drivers.espeak','pyttsx3.drivers.nsss','pyttsx3.drivers.sapi5'], hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, [], name='jarvis1', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, upx_exclude=[], runtime_tmpdir=None, console=True, disable_windowed_traceback=False, target_arch=None, codesign_identity=None, entitlements_file=None ) 

Help me run the exe file.

Total Answers 0