App crashes abruptly

18 views
Skip to first unread message

Arturo Martínez Sandoval

unread,
Aug 5, 2019, 8:50:40 PM8/5/19
to Kivy users support
Hi,
Some months ago I developed an app for a school project. Back then I was in high school and I just needed to make it work. Now, I'm trying to package it into a MacOs App, and I have done so. It opens correctly, but when I go to my Settings option, the program crashes. However, before I packaged it, it worked perfectly. 

For packaging, I followed the instructions on https://kivy.org/doc/stable/guide/packaging-osx.html. The only difference was that I used a virtual environment, because otherwise, my Mac wouldn't allow me to make the app file.

On the video (https://drive.google.com/file/d/1S1PoazjY4a38UEpQdDZN35Jr-FEe64AY/view?usp=sharing), the first window (the one that works) is my app before packaging it, and the second one is the ".app" file. 

What can I do? I have no idea where to look for bugs.

Elliot Garbus

unread,
Aug 5, 2019, 9:13:31 PM8/5/19
to kivy-...@googlegroups.com

Look in the kivy log file.  I believe the location ~/.kivy/log/  The log file may provide a trace back and give you a clue about where things are going wrong.

--
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/75dfb392-4adb-426a-9932-929f4ce1437e%40googlegroups.com.

 

Arturo Martínez Sandoval

unread,
Aug 5, 2019, 9:46:04 PM8/5/19
to Kivy users support
Hi,
I've found the log file. The problem is that the app doesn't find a text document. However, I entered the contents of my app, inside Resources folder. And there is the file.


Do you know how can I solve this?


Thank you very much.


El lunes, 5 de agosto de 2019, 20:13:31 (UTC-5), Elliot Garbus escribió:

Look in the kivy log file.  I believe the location ~/.kivy/log/  The log file may provide a trace back and give you a clue about where things are going wrong.

 

From: 'Arturo Martínez Sandoval' via Kivy users support
Sent: Monday, August 5, 2019 5:50 PM
To: Kivy users support
Subject: [kivy-users] App crashes abruptly

 

Hi,

Some months ago I developed an app for a school project. Back then I was in high school and I just needed to make it work. Now, I'm trying to package it into a MacOs App, and I have done so. It opens correctly, but when I go to my Settings option, the program crashes. However, before I packaged it, it worked perfectly. 

 

For packaging, I followed the instructions on https://kivy.org/doc/stable/guide/packaging-osx.html. The only difference was that I used a virtual environment, because otherwise, my Mac wouldn't allow me to make the app file.

 

On the video (https://drive.google.com/file/d/1S1PoazjY4a38UEpQdDZN35Jr-FEe64AY/view?usp=sharing), the first window (the one that works) is my app before packaging it, and the second one is the ".app" file. 

 

What can I do? I have no idea where to look for bugs.

--
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-...@googlegroups.com.

Captura de Pantalla 2019-08-05 a la(s) 20.42.43.png

Elliot Garbus

unread,
Aug 5, 2019, 10:18:08 PM8/5/19
to kivy-...@googlegroups.com

There is a section in the Pyinstaller docs that talk about finding file locations at runtime.

https://pyinstaller.readthedocs.io/en/stable/runtime-information.html

 

The files will be in a different place if you are running bundled vs. frozen.  The section describes how to tell if your frozen, and how to access the files. 

I’m sure I’ve got an example on a different machine than I’m using now – let me know if you are having trouble with the docs.  I’ll dig out the example. I suspect this will solve your issue.

 

You may also want to check and print out your current working directory when frozen.  That might also be illuminating. 

 

A little more advanced, you can also create a runtime hook that sets the current working directory from within pyinstaller.

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/08cedbfd-f77b-4844-adb7-834bccc214b6%40googlegroups.com.

 

Arturo Martínez Sandoval

unread,
Aug 6, 2019, 12:50:52 AM8/6/19
to Kivy users support
Hi,
Thank you very much for your time and answers. The missing file just had the name of some countries, so what I did was to copy all into the main file. I know is not efficient, but I don't need something really fancy.


Thank you very much.



Elliot Garbus

unread,
Aug 6, 2019, 1:03:18 AM8/6/19
to kivy-...@googlegroups.com
All good. Glad to hear you got it working. 

Sent from my iPhone
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/89685296-3ef5-4294-b312-cba90306e644%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages