Packaging my kivy app to an executable

by: Alejandro, 8 years ago

Last edited: 8 years ago

I have developed a kivy app with linux and now I want to package into an exuctable with windows. I've seen some tutorials of cx_freeze but when I have packaged the app crashes when I try to open the file that is created. Somebody knows what this is happening? I attach here the code of the modules I have to import to the script to get the hole app. Thanks

from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen, SwapTransition
from kivy.uix.textinput import TextInput
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.image import Image
from kivy.uix.button import Button
from kivy.properties import DictProperty
from kivy.properties import StringProperty
from smtplib import SMTPRecipientsRefused
from kivy.core.window import Window
from kivy.uix.popup import Popup
import json
import urllib
import HTMLParser
from icalendar import Calendar, vCalAddress, vText
import pytz
from datetime import datetime,timedelta
import icalendar
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email import encoders
import sys




You must be logged in to post. Please login or register an account.



not sure, not an expert but why develop in linux then run it on windows?  I would avoid windows altogether, no one should use windows for development or production.  linux is the standard - use it in a VM for development, emulating production.  also I noticed issues with ubuntu 14 being slow and having python3 bugs.  upgraded to ubuntu 16 and its faster and smoother, no bugs.  maybe this helps

-kingfitz 8 years ago

You must be logged in to post. Please login or register an account.


The fact is that I would like to package my kivy app for another environment (for example windows). I thought that it was easy but the fact is that I don't know how to package the external modules that aren't provided by python (icalendar module for example). In linux the apps works fine but I don't know how to package into a debian file.

-Alejandro 8 years ago

You must be logged in to post. Please login or register an account.