I have come across similar before. You probably have logger set to write to stdout &/or stderr, however, in the compiled application stdout, stderr = None, None hence the errors. The trick that I used was to check if they are currently None and if so either don’t initialise the logger or make sure that all logging is sent to a file.
Hope that helps.
Steve
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pyinstaller...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/dfcf25c5-9da5-4802-88e4-fc72a2d8586en%40googlegroups.com.
from kivy.logger import Logger
from kivy.config import Config
Config.set('kivy', 'log_enable', False)
Config.set('graphics','width','360')
Config.set('graphics','height','760')
import os
os.environ["KIVY_NO_CONSOLELOG"] = "1"
os.environ["KIVY_NO_FILELOG"] = "1"
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/-LpzPG4S8L0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/DU0P194MB18197302A991A9553CC82EB69BA09%40DU0P194MB1819.EURP194.PROD.OUTLOOK.COM.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/DU0P194MB18197302A991A9553CC82EB69BA09%40DU0P194MB1819.EURP194.PROD.OUTLOOK.COM.
One “trick” that I have used several times is:
# If no output channels set them to the OS bitbucket.
if sys.stderr is None: sys.stderr = open(os.devnull, “w”)
if sys.stdout is None: sys.stdout = open(os.devnull, “w”)
This needs to be done before importing anything like or that uses logging this will allow logging to carry on as before but all of the output will disappear. It might be worth raising an issue on KIVY to suggest something similar or another resolution.
BTW: Most python to executable converts set a FROZEN attribute but I have found that it is not 100% reliable hence the above.
Steve
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CALGmxELkz_OmgHX8gMzMd3O%3DkkHxLTYHgzzMRENUTonOge7WZg%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/-LpzPG4S8L0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/DU0P194MB1819FE8A146B3B2A383506A69BA19%40DU0P194MB1819.EURP194.PROD.OUTLOOK.COM.
BTW: Most python to executable converts set a FROZEN attribute but I have found that it is not 100% reliable hence the above.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/DU0P194MB1819FE8A146B3B2A383506A69BA19%40DU0P194MB1819.EURP194.PROD.OUTLOOK.COM.