import os
os.environ["KIVY_NO_CONSOLELOG"] = "1"
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/_Lyy5WBk6Kc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/4d3ea7f4-a566-42ad-aab3-f1eee90c3804n%40googlegroups.com.
That is a strange issue.
Here is the spec file I use for Windows. It is similar – but different than the macos specfile.
# -*- mode: python -*-
from kivy_deps import sdl2, glew
block_cipher = None
app_name = 'Your App Name'
win_icon = '../Images/Your icon.ico'
a = Analysis(['../main.py'],
pathex=[],
binaries=[],
datas=[('../*.kv', '.'),
('../Images/*.png', './Images')], # change as needed
hiddenimports=['win32timezone'], # required if filebrowser is used
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)--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
What is in your log file?
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CABw5z-DZwNPo4SQX8cZDQx_JbwOhL21saHtjyhgO_H7pxrpEZw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/63ee38dd.050a0220.38745.a878SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Kivy creates a log file. On Windows it is located at:
C:\Users\your_user_name\.kivy\logs
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CABw5z-AenZiV%2BqBqon%2BEZqREhQXQmKT2rUNqSP3%2Bxhyi2qKriQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/63ee443e.050a0220.349ed.3c30SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
The missing modules can sometimes because pyinstaller does not see them in your source code.
You can add them to the hiddenimports list in the spec file or explicitly import them in python.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CABw5z-BQri1srD_BjndQDZ8D6ewqDKteGq_ELEniwQFfpaCKXA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/63ee4d5b.050a0220.3c1e0.d482SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
On Feb 16, 2023, at 2:09 PM, Glen Rubin <rubi...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CABw5z-CeXeubw%2BsKADPwNQDEa20GOU5WUi4qfZSy4%3DSituVQhg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/A312D13D-CBBB-486F-8220-77EFA1C9928F%40cox.net.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CABw5z-AM8xBzXdEG_Zb%2B1Ee2MA6ebn83NP4s17oQzV_%3DLyM6RA%40mail.gmail.com.
The issue is that the behavior changed in V5.7 of pyinstaller. Pyinstaller now sets stderr to None with the console is set to False. This is the same behavior as pythonw.
Here are some workarounds:
i. import osii.os.environ["KIVY_NO_CONSOLELOG"] ="1"
2) Use an older version of pyinstaller.
a. pip install pyinstaller==5.6.2 pyinstaller-hooks-contrib==2022.13
The ini file is located at: C:\Users\YourUserName\.kivyTo view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAHoZGUEpuFHPx1YcTHe3V%2Bo-V94fivPxswrcTs7kAqmer519yg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/003901d9e4d7%24526dcf10%24f7496d30%24%40cox.net.