×
Namespaces

Variants
Actions

Archived:Downloading and Installing Python on Symbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.


Article Metadata
Article
Created: hamishwillee (07 Jan 2011)
Last edited: hamishwillee (08 May 2013)

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

Article Metadata
Article
Created: hamishwillee (07 Jan 2011)
Last edited: hamishwillee (08 May 2013)
Trails.png Getting Started with Python
 > Download & Install > Archived:PySymbian Hello World > Archived:PySymbian Application Packaging & Distribution

Python logo.png

This article shows how to set up a Python on Symbian development environment. It explains how to get and install the needed files for development on Windows and Linux, and how to set up your mobile device or the Emulator for testing.

Contents

Python Development Environment

Python applications ("scripts") are simply text files containing code written in the Python programming language and named with the file extension ".py". The scripts can be written in any text editor and can be run either from within the Python Interactive Shell application on a device or the emulator, or as standalone applications on your mobile device.

The Python on Symbian development environment therefore consists of:

  • Text editor for creating Python "scripts"
  • Python reference documentation
  • Application Packager, which can be used to create "standalone" applications
  • Python Interactive Shell application, which can be used to run scripts
  • Python runtime that executes scripts (either in the interactive shell application, or as standalone applications)

Any text editor may be used. We recommend Notepad ++ for its awareness of Python syntax. It is also possible to use the classic Python python.org/idle IDLE IDE. Note however that the IDE can be used for editing, but not for debugging/running code PySymbian-specific libraries.

Python is delivered in installer files which contain the documentation, Application Packager and device "SIS" installation files for the Python runtime environment and script shell. Developers that wish to use the Windows Emulator can also download an SDK and Patches for Python.

Setting up for development on Windows

Download, and extract/install the following files

The Python on Symbian installer makes the following tools/files available from a start menu option: Start | Programs | PythonForS60 2.0.0:

  • Python documentation
  • Application packager used for packaging scripts so that they behave like native applications
  • Python SIS files - that you need to install on the device.

You will also need to install your text editor of choice.

Setting up for development on Linux

Download, and extract/install the following files

The installer copies the following tools to your computer:

  • Python documentation
  • Application packager used for packaging scripts so that they behave like native applications
  • Python SIS files - that you need to install on the device.

You will need to:

  • Execute files directly (ie run the Application Packager by executing ensymble_gui.py) as Linux has no start bar.
  • Install a Python aware text editor (or use one already on your system)

Installing Python on your Phone

The easiest way to test your Python application is to run it on a real phone. PySymbian v2.0.0 is compatible with any Symbian device (based on Symbian^1 or earlier S60 3rd Edition devices). If you don't have a compatible phone, don't worry - the following section explains how you can run your scripts on the Windows-hosted Symbian platform emulator.

The SIS you need are available in the directory \PythonForS60\PySymbianDependencies\ of your Python installation (Windows users can open the directory from the start menu).

Using your PC Suite software, install the following files to your Symbian device (based on Symbian^1 or S60 3rd Edition):

  • Python_2.0.0.sis - The PySymbian runtime
  • PythonScriptShell_2.0.0_3_2.sis - Python Interactive Shell application for Symbian^1 and S60 3rd Edition FP2 (and later). PythonScriptShell_2.0.0_3_0.sis should be used for earlier S60 3rd Edition devices.

You can verify the installation by launching the Python icon from the device Installations folder. If you do menu Options | Run Script, you can select some pre installed scripts to demonstrate the power of python! The icon and list of applications are shown below:

Windows Hosted Emulator Development

While testing against a device is often more convenient, Windows developers may choose to develop on the Symbian Emulator.

Download and install/extract the following files (in order):

Note that you'll first need to unzip the SDK to a temporary directory, and then run setup.exe. The installation will suggest you install Perl - this is only necessary for C++ developers; Python developers may ignore the warning. The patch will then need to be unzipped over the SDK, so that it overwrites the SDK's \epoc32\ directory. Accept all prompts during unzipping to allow this to happen.

You can launch the Emulator by clicking on the file [SDK]/epoc32/release/winscw/udeb/epoc.exe. On first use, the SDK may prompt you to register it. The process is straight forward, but you will need to sign up with Nokia Developer if you haven't already.

If Python shows an error message stating that the Python Runtime or PIPS Library are not installed you will need to install the Open C/C++ Plugin. When requested, select "S60 5th Edition SDK" as installation option.

Further information

The latest Python files are accessed from the Maemo Garage.



Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

Article Metadata
Article
Created: hamishwillee (07 Jan 2011)
Last edited: hamishwillee (08 May 2013)
Trails.png Getting Started with Python
 > Download & Install > Archived:PySymbian Hello World > Archived:PySymbian Application Packaging & Distribution

Licence icon cc-by-sa 3.0-88x31.png© 2010 Symbian Foundation Limited. This document is licensed under the Creative Commons Attribution-Share Alike 2.0 license. See http://creativecommons.org/licenses/by-sa/2.0/legalcode for the full terms of the license.
Note that this content was originally hosted on the Symbian Foundation developer wiki.

This page was last modified on 8 May 2013, at 08:12.
484 page views in the last 30 days.
×