Installation

(This Website is created and managed by Pankaj Nathani)

 First Things to do:

Installable binary PyS60 packages have two version numbers:

  • version of the PyS60 release (e.g. "1.3.1")
  • version of the S60 platform the package is intended for (e.g. "2nd Edition Feature Pack 2")

Different releases of the S60 platform require different builds of PyS60. You must use a build of PyS60 that is compatible with the S60 version of your phone and your S60 SDK.

See this page to determine which version of S60 your phone runs. This visual guide to recognizing the correct version is also nice, but not up to date for 3rd Edition devices.

Installing Py60 on your device

For 1st and 2nd edition phones

  • Download the latest PythonForS60 and PythonScriptShell package from the SourceForge project page. Make sure you get the correct versions for your S60 version.
  • Install first the PythonForS60 package and then the PythonScriptShell package.

For 3rd edition phones

  • Install first the PythonForS60 package and then the PythonScriptShell package.
  • The Python script shell for 3rd edition will list anything it finds in a "Python" folder on C: or E: drives in the "Run Script" list. Luckily, you can write the E: drive directly from a Mac or a PC. So here are step-by-step instructions:

Via USB cable (PC or Mac)

  1. Put a memory card in the phone
  2. Connect phone to computer with cable.
  3. KEY STEP Select the "Data Connection" mode on phone screen.
  4. On a Mac the contents of the memory card are now mounted. On a PC, Win XP, you need to choose to see the card with Explorer.
  5. KEY STEP You're now in fact on the phone's E: drive. Create a "Python" folder.
  6. Put any .py files in the Python folder you now have. The "Run Script" command will see them.
  7. Unmount the filesystem cleanly and detach the cable.

Via Bluetooth (Mac only tested so far)

Switch on Bluetooth on the Phone. Launch the "Bluetooth File Exchange" utility application on the Mac. Pair with the phone, and test the Bluetooth connection by pushing over some small text file or sound. Then choose the "Browse Device" command, and browse drive E: on the phone. You can now use the utility to create a "Python" folder on the Phone's E: drive and then to push your .py source files to the phone.

Via Bluetooth (NOKIA E70, and maybe other 3rd edition phones. Mandriva Linux/Gnome)

Problems are : no "browse device" capability (maybe I don't know how), and the phone don't recognize .py send over bluetooth as a special file. You can not specify neither where the message will be stored, nor what to do whith it.

Solution : use a file format which allow you to do that sort of thing.

Steps (Mandriva/Gnome using standard Gnome config: nautilus, file-roller, gnome-bluetooth) :

1. on the phone, create a "Python" folder on the memory card (phone's E: drive) with the phone's file manager;

2. on the computer, compress your '.py' file as a ZIP file (nautilus: just right click on the file and choose the 'compress' menu entry; default parameters should be ok);

3. send the zip to your phone (nautilus: right click, choose "send to", then select your phone in the bluetooth part);

4. on the phone, open the message. "ZIP Manager" application automatically handles it: "open"/"copy". Choose "open", select you .py in the uncompressed archive, and use the nokia "option" key to display the contextual menu : use the "extract" menu entry. You can now browse your phone's folders, to save the file in your "Python" folder.

That's it (and you can now suppress the bluetooth message).

Via Memory Card

Connect the miniSD card to a PC (windows or Mac). Create a directory, such as Python or Python/Libs or whatever. Copy python scripts (and libraries) to the directory. Put card in phone. It will show up as e: drive. In python, add the directory to the search path:

import sys
sys.path.append('e:\python\libs')

These scripts can be used as libraries and imported as usual.

The miniSD cards can be placed into the miniSD to SD holder and this can be placed in a USB compact flash card reader, or one can get a usb dongle that directly takes a miniSD card (I got one from ATP -- it also came with a 1 GB miniSD card and the USB reader)

Direct download ( NOKIA E90)

You can also directly download the software on your phone and install it without using a PC. The steps are as following:

1. Download Python runtime for S60. Installation will start automatically

2. Choose if you want to install on the phone memory or memory card

3. Download PythonScriptShell package. Again, intallation will start automatically.

4. Choose the same media (phone or memory card) as for the runtime package.

5. Enjoy Python on your S60!

Emulator installation

Typically you would want to install the SDK for the same S60 version as your phone runs, but if you want to experiment you can install any version of the SDK you want (as long as PyS60 supports it, that is).

For S60 3rd Edition development use the Maintenance Release SDK.

  • Download the latest PyS60 SDK ZIP package that matches your S60 C++ SDK version from the SourceForge project page. E.g. if you installed the 2nd Ed FP2 SDK download PythonForS60_SDK_2ndEdFP2_1_3_1.zip.
  • Unzip the package. It contains another zip package: sdk_files.zip and an uninstaller script.
  • Unzip sdk_files.zip in the direcory that contains the epoc32 directory of your S60 C++ SDK. E.g. for 2nd Ed FP2 you would unpack the ZIP in the directory "c:\symbian\8.0a\s60_2nd_fp2".

 

 *source wiki.nokia.com

Home

Getting Started With Python:

Guide to Installation

Resources

 Sample Codes:

Modules 

   Modules

Libraries Author

 

Forum 

    Forum Nokia (Python) 

 

    Contact Me

    Disclamer