KivyInstaller Documentation

Similar documents
Kivy Designer Documentation

Aldryn Installer Documentation

Running Java Programs

nacelle Documentation

Python Project Documentation

Game Server Manager Documentation

TangeloHub Documentation

turbo-hipster Documentation

PyUpdater wxpython Demo Documentation

manifold Documentation

Execu/Tech Systems, Inc. Handheld Inventory Manual P a g e 1

Code Blocks Cannot Find Compiler Executable Windows 7

COPYRIGHTED MATERIAL. Installing Xcode. The Xcode Installer

Building CircuitPython

Using GitHub to Share with SparkFun a

Version control system (VCS)

MySQL for Windows. Tak Auyeung. September 7, 2003

EasyMorph Server Administrator Guide

Installation Assistance Windows/Microsoft Updates Updating from Spectra 7.x Upgrading from Spectra 6.x... 7

ANNOYING COMPUTER PROBLEMS

Mono Development for Wine. A Cry for Help

You might think of Windows XP as a set of cool accessories, such as

Itunes Manually Uninstall Windows 7 Programs From Listed

MAME - Compilingscript V2.3a

Aretics T7 Installation Manual

Abaqus Student Edition. Installation Instructions

Composer and Drupal. CIDUG Meeting December 13, 2018 John Rearick

DBNsim. Giorgio Giuffrè. 0 Abstract How to run it on your machine How to contribute... 2

Troubleshooting BPMS Errors

Clean & Speed Up Windows with AWO

Troubleshooting Note: Lutheran Service Builder 1.07 Update Note: Builder Won t Start Correctly After Update

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

Getting Started. Citrix Load Manager. Version 1.0. Citrix Systems, Inc.

open-helpdesk Documentation

TPS Documentation. Release Thomas Roten

Using Eclipse for C Programming

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

Archan. Release 2.0.1

Python Project Example Documentation

CleanMyPC User Guide

PyCRC Documentation. Release 1.0

How To Share Files and Printers Between Windows 7 and Vista

CSCI 201 Lab 1 Environment Setup

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 16 Fixing Windows Problems

Roman Numeral Converter Documentation

VIP Documentation. Release Carlos Alberto Gomez Gonzalez, Olivier Wertz & VORTEX team

Windows 7 Will Not Load On My Computer Says Its

PYOTE installation (Windows only) 1 December 2018

nrfutil v2.2.0 User Guide v1.2 Doc. ID 4399_007 v

WA2579 Technical Introduction to Microservices. Classroom Setup Guide. Web Age Solutions Inc.

chatterbot-weather Documentation

The Old World. Have you ever had to collaborate on a project by

1 Introduction Specific Issues and their Solutions... 2

About the Presentations

Coeus Installation and Troubleshooting

I2C LCD Documentation

Tensorflow v0.10 installed from scratch on Ubuntu 16.04, CUDA 8.0RC+Patch, cudnn v5.1 with a 1080GTX

AdminStudio 10.0 ZENworks Edition

Vaango Installation Guide

Open Add Remove Programs From Command Line Windows 7

Tuesday 6th October Agenda

SECTION 2: HW3 Setup.

Python simple arp table reader Documentation

HOW TO INSTALL WINDOWS 7 UPDATES MANUALLY EBOOK

Rescuing Lost Files from CDs and DVDs

Manually Delete All Printer Drivers Windows 7

BIAS SETUP. Copyright BIAS Accounting, inc. All rights reserved.

CTECS Connect 2.2 Release Notes December 10, 2009

WA2452 Node.js Software Development. Classroom Setup Guide. Web Age Solutions Inc.

Human-Computer Interaction Design

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 7 Fixing Windows Problems

Handel-CodePipeline Documentation

Contents. 1 Introduction... 2 Introduction to Installing and Configuring LEI... 4 Upgrading NotesPump to LEI...

I hate money. Release 1.0

FAQ No [Troubleshooting] True Color Troubleshooting Guide. Outline

GETTING STARTED WITH. Michael Lessard Senior Solutions Architect June 2017

sainsmart Documentation

Net Start Error Code 5 Windows 7 Installation

PyBuilder Documentation

Surviving Sepsis Campaign

Dell EMC OpenManage Installation and Management Release Notes

ENCM 339 Fall 2017: Cygwin Setup Help

Agenda. - Final Project Info. - All things Git. - Make sure to come to lab for Python next week

Pulp Python Support Documentation

Python wrapper for Viscosity.app Documentation

Eugene, Niko, Matt, and Oliver

The tools used in the development of Life Is Strange

DNS Zone Test Documentation

Power users are all about shortcuts,

A+ Guide to Managing & Maintaining Your PC, 8th Edition. Chapter 11 Optimizing Windows

Working in Teams CS 520 Theory and Practice of Software Engineering Fall 2018

COMMON WINDOWS 10 QUESTIONS & ANSWERS

IT ESSENTIALS V. 4.1 Module 5 Fundamental Operating Systems

Installed Windows Service Manually Windows 7 Not Working

Application Program Interface Guide for Python

Chapter 4. Unix Tutorial. Unix Shell

Human-Computer Interaction Design

Carswell FOLIO 4.7 Installation Guide

Setting Up Mata From scratch in detail

Table of Contents. PropellerIDE Documentation

Transcription:

KivyInstaller Documentation Release 3.9 Peter Badida Jun 30, 2018

Contents 1 Contents 3 1.1 Getting started.............................................. 3 1.2 Usage................................................... 4 1.3 Features.................................................. 6 1.4 Troubleshooting............................................. 7 2 Indices and tables 9 i

ii

It ships Kivy right to you! Everyone can mess things up even with simple installation or update. In version 1.8.0 there was a batch file for making things easier for beginners or regular users, but this file disappeared as the wheel came in. KivyInstaller is inspired by this kivy.bat file from old portable package with multiple new functions. KivyInstaller provides: Installing Python (even for non-admin!) Installing & updating Kivy Switching between Kivy stable and master branch Updating itself Packaging Kivy application for Windows: Test package Full package Removing whole Kivy & Python installation And more... Contents 1

2 Contents

CHAPTER 1 Contents 1.1 Getting started Note: This batch isn t by default meant for compiling, however it provides commands to download one of GCC of MSVC tools that can be used for compiling later. KivyInstaller works with pip and gets Kivy from.whl files. It supports 32bit and 64bit Python versions, so you can easily download the one you need. The complete installation of Python with Kivy master branch takes approximately 3 minutes (even less!) of automated process. This video will surely convince you. Of course the installation highly depends on your machine, internet speed and connection. 1.1.1 Defaults Python versions 2.7.13, 3.5.2 kivy-master 1.10.1 kivy-stable is from pypi Since version 3.3 you are able to change the defaults from the console before actually running the kivy.bat script this way: set cp3=cp35 # or cp34 or cp36 set cp2=cp27 # shouldn't be necessary to change set py3=3.5.2 # check on python website if the version exists! set py2=2.7.13 # same here set master=1.10.1 # check on Kivy installation page for Windows or change them freely inside the batch file if you need. Kivy master version shouldn t really need to be changed anyway as I ll switch manually the value when there s a new version for master branch. 3

1.1.2 Admin installation catch With MSI installers there s one catch. Each of them has a Product code for various reasons. For KivyInstaller it means you can install Python from the same installer that requires admin rights only once. MSI basically creates some stuff in registry for your Python installation including copy-pasting its Product code. With each attempt to install with the same installer it looks for the Product code in registry before installing, therefore if the same Product code is found, it ll behave as a repair / remove tool for your Python. Note:.msi. There s an option to change Product code with some free tools and install Python manually with modified Multiple Pythons Product code of MSI installers doesn t affect having Python 2 and Python 3 at the same time in separate folders. Using lower / higher version is a workaround for the MSI catch, i.e. if 2.7.11 is installed, the another allowed version would be for example 2.7.10. You have to change the version in kivy.bat s variable directly. 1.1.3 Non-admin installation When installation without admin rights is chosen, there is no limitation for the same Python version on a single OS, yet a glitch may appear during the installation such as leaving some Python stuff inside kivy folder. If the files / folders left behind are only Doc or tcl, just copy&paste them. Otherwise remove everything except kivy.bat and.msi, then reinstall. Note: It may occur that MSI installer becames broken for non-admin type of installation. In this case the installer needs to be completely removed and redownloaded. Warning: This type of installation since Python 3.5.0 leaves a trace in Programs and Features as a casual installed application, but doesn t require admin privileges. When this issue is fixed, the warning will be removed. 1.2 Usage This section explains how to install Kivy on any Windows from scratch and how to use existing python installation as a base for KivyInstaller. For more details use kivy help after successful installation. 1.2.1 Installation 1. Create a folder for your Python and place kivy.bat inside. Alternatively, clone whole KivyInstaller repo and Python will be installed there. git clone https:/ /github.com/keyweeusr/kivyinstaller 4 Chapter 1. Contents

Or use command line instructions: mkdir python bitsadmin /transfer "GetBatch" "https://git.io/vddjn" "%cd%\python\kivy.bat" cd python 2. Run kivy.bat and select your Python and Kivy versions. 3. Enjoy! To select y/n you have to type and press enter (return). kivy.bat after successful installation behaves as a normal cmd.exe console with all important stuff set. If cloned from repo and installed as non-admin, git clean -dxf returns the clone to its original state (removes installation). Note: You can delete.msi after installation. KivyInstaller will download the.msi file if there s no available when needed. 1.2.2 Install to existing Python 1. Copy/clone kivy.bat to your folder with python.exe and run it. 2. Choose your installed Python architecture version (32bit / 64bit). 3. Select which Python is installed (2.x / 3.x). 4. Best to ignore registering extensions with n answer. It won t work anyway because Python is already installed. 5. Choose Kivy version. 6. Enjoy! Note: If you plan to use all features of KivyInstaller(kivy uninstall mainly), you need to change Python version(py2/py3) in config file to the same version you use. Otherwise it may cripple your Python with the uninstall option. 1.2.3 Update KivyInstaller uses Kivy wheels for installation: stable on pypi master on google drive To update already installed Kivy use one of these commands: kivy update kivy updatemaster To update KivyInstaller to the latest version use kivy batupdate. The batch will automatically download the new version and back up the current one to backup_kivy.bat file. If the update fails, replace kivy.bat with the backup file. 1.2. Usage 5

1.2.4 Pack Since version 1.3 KivyInstaller provides a quick way to create a package for Windows with --debug option on to test if packaging Kivy works. kivy pack "<path>" This way doesn t support other options such as --name or --icon and it is only for debugging. The name of.exe file is taken from the parent folder of.py file. Note: For more options use pyinstaller directly. 1.2.5 Uninstall There s an option to remove Python with Kivy and other installed packages + cached pip files. However, this option works only if the whole path to folder with Python is the same as used during installation - i.e. it partially relies on MSI Python installer. Another option is using kivy remove command to remove Kivy installation only. The conditions are the same as for previous option. 1.3 Features This section shows all available packages after successful installation together with features the KivyInstaller provides. 1.3.1 Packages docutils Kivy-Garden pip Pygments PyInstaller pypiwin32 requests setuptools wget wheel 1.3.2 Extra packages There are optional packages you may want to install later (see kivy help command), however compilers need some post-install editing, otherwise they won t work with Kivy. A command for installing compiler also opens a documentation page related to the chosen compiler if available: Kivy Designer 6 Chapter 1. Contents

MinGWPy (GCC) Visual C++ 9.0 standalone compiler (MSVC) Visual C++ 10.0 standalone SDK (MSVC) Visual C++ 14.0 Build Tools 2015 (MSVC) 1.3.3 Extra PATH Since 1.4 there is a new empty file extrapath.kivyinstaller available that provides a user an easy way to extend PATH without using set command manually on each run of cmd.exe or edit environment variables. The PATH from extrapath file will be also available in every shortcut i.e. Quick Launch, Send To, even Taskbar if you create shortcut for it manually. Usage Just paste a new path as it is, without quotes or any other extra characters into the file. The path separator for Windows is a backslash (\). Example: C:\Users\John For more paths, separate them with semicolon as in casual PATH setting: C:\Users\John;C:\Users\Guest Do not end the line with a semicolon or write multiple lines. The file works in a single line mode. 1.3.4 Shortcuts There s an option to allow creating shortcuts for your installation. Those will be placed into two locations: Send to and Quick Launch. Running.py file with Send to option works on WinXP and higher, however taskbar shortcut works only on WinXP and WinVista. The taskbar item runs either as a console, or uses a file that can be drag&dropped to it. The shortcut will run the file directly as if python.exe was called. Useful for running snippets of code from your desktop. Shortcuts are removed together with all other data after kivy uninstall. Win7+ On Windows 7 and higher the taskbar has a different functionality than original Quick Launch, therefore a bad workaround is to drag&drop a manually created shortcut for kivy.bat to the taskbar, however script drag&dropping won t work this way. To make drag&dropping work, re-enable Quick Launch in your system. 1.4 Troubleshooting This section provides solutions to the known problems a user could encounter while using the KivyInstaller. 1.4. Troubleshooting 7

1.4.1 Known problems Can t download Python.msi - probably missing bitsadmin, run cmd and bitsadmin. If available and still not downloading, report an issue. Python installation doesn t work - report an issue with msi.log from your folder. w9xpopen.exe error - Python.msi installer is broken. Delete it, KivyInstaller will download a fresh one. Whatever Internet security error for nul and extrapath displayed in the details is not an error. The statement only makes an empty file for an extra path, ignore it. msvcr100.dll is missing. You need to download it. Python 3.5+ installation fails on stock: Windows Vista, Windows 7, probably even on Windows 8. On Windows 7 you ll need at least Service Pack 1 with its updates. Similar updates related stuff applies for Vista and 8. Bitsadmin didn t finish the downloading correctly and threw some error in HEX such as Unable to complete job - 0x80200002. See BITS Return Values. 1.4.2 Report an issue If you experience any problems, report an issue in the github repo. 8 Chapter 1. Contents

CHAPTER 2 Indices and tables genindex search 9