how to make executable file on linux of my kivy app

82 views
Skip to first unread message

Manan Mathur

unread,
May 29, 2023, 5:21:28 AM5/29/23
to Kivy users support
I have tried to make executable file on my linux (running on VM) os . But I am having problem in doing soas I have tried using pyinstaller but It is showing error of "No module name kivy_deps "

ElliotG

unread,
May 29, 2023, 7:12:48 AM5/29/23
to Kivy users support
Here is a copy of the spec file I use for building Windows Apps.  I suspect It should look similar.
I create a directory under the main project directory and put the spec file there.   

# -*- mode: python -*-

from kivy_deps import sdl2, glew

block_cipher = None
app_name = 'Your App Name Here'
win_icon = '../Images/Your ICON file here.ico'

a = Analysis(['../main.py'],
pathex=[],
binaries=[],
datas=[('../*.kv', '.'),
('../Images/*.png', './Images')], # change datas to match your project
hiddenimports=[],
hookspath=[],
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,
[],
exclude_binaries=True,
name=app_name,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
icon=win_icon)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=False,
name=app_name)



Robert

unread,
May 29, 2023, 3:47:02 PM5/29/23
to Kivy users support
To be clear pyinstaller does not create an executable.
It creates a package, that package may be packed as a self extracting zip - but it is still a package.
Reply all
Reply to author
Forward
0 new messages