Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:Configuring Eric IDE for PySymbian development

From 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.

The Eric IDE can be used for PySymbian development. Note that this gives you the benefit of its code completion feature, it is not however possible to debug into PySymbian code.

Featured Article
13 Sep
Article Metadata
Created: sam_bakki (15 Jul 2009)
Last edited: hamishwillee (31 May 2013)



For Windows OS

  • Check if you have Python 2.4.0 or newer. Python 2.5.4 may be an interesting version since PySymbian (1.9.0 onwards) is based on it and will require Python 2.5.4 to create sis packages.
  • Eric IDE uses Qt, so you need to install PyQt ( Select Windows installer package based on your installed Python version or use your packing system in Linux/BSD/Unix/Mac to solve the Qt dependencies.
  • Install the Eric IDE ( Download and extract (Windows) or eric4-4.3.6.tar.gz (Linux/BSD/Unix/Mac), go to the extracted directory and run (e.g.: c:\python25\python.exe
  • Launch it by running or eric4.bat (Windows only), inside Python installation directory.
  • Download the Refactoring Rope plugin from Eric, Plugins->Plugin Repository.... After, press "Close & Install" for installing Refactoring Rope plugin.
  • Install PySymbian (

For Mac OS X (Leopard)

  • Python comes bundled with every OS X install. In 10.5.7 python version 2.5.1 is installed, Snow Leopard will bring 2.6. So it’s already there.
  • Eric IDE uses Qt. Download it from ( and install as usual. By the way, I took the binary packages using Cocoa.
  • Other dependency before installing Eric IDE is SIP. First look at ( which version is the most current. Mine was 4.8.1. Open and type:
tar -xvzpf sip-4.8.1.tar.gz
cd sip sip-4.8.1
sudo make install
cd ..
tar -xvzpf PyQt-mac-gpl-4.5.2-snapshot-20090627.tar.gz
cd PyQt-mac-gpl-4.5.2-snapshot-20090627
sudo make install
cd ..
tar -xvzpf QScintilla2/QScintilla-gpl-2.4.tar.gz
cd QScintilla2/QScintilla-gpl-2.4
cd Qt4
qmake qmake -spec macx-g++
sudo make install

Now make the Qsci module:

    cd ../python
sudo make install
  • Now install the Eric-IDE. Install the Eric IDE ( Download and extract eric4-4.4.tar.gz (Linux/BSD/Unix/Mac), go to the extracted directory using the terminal with cd’ to the regarding folder and type:
   tar -xvzpf eric4-4.4.tar.gz
   cd eric4-4.4/
   sudo python
  • But where is it and how to start? Eric4 was installed into

and you can start it in Terminal with


Configuring the Eric IDE for PyS60

Now PySymbian APIs need to be integrated with Eric.

  • Run the Eric API creation tool to create the PySymbian API file. Ex:
python C:\Python25\Lib\site-packages\eric4\ -o C:\PyS60_api.api -R -p "C:\Program Files\PythonForS60\module-repo".  
python /Library/Python/2.5/site-packages/eric4/ -o /PyS60_api.api -R -p "<path for your PySymbian extracted>/PythonForS60/module-repo"

Your path and command line command may very depending on Python version you are running, operating system and language.

  • Go to Eric IDE, Settings->Preferences...->Editor->APIs and select "Python" from the "Language" list.
  • Click the "..." button and point to C:\PyS60_api.api (/PyS60_api.api).
  • Click "Add".
  • You can repeat this step for other Python modules as well. Ex:
python C:\Python25\Lib\site-packages\eric4\ -o python_api.api -R -p C:\Python25 (for standard Python modules)
python C:\Python25\Lib\site-packages\eric4\ -o eric_pyqt.api -R -p C:\Python25\Lib\site-packages\PyQt4 (for PyQt)
python /Library/Python/2.5/site-packages/eric4/ -o python_api.api -R -p "<path for your Python 2.5>" (for standard Python modules)
python /Library/Python/2.5/site-packages/eric4/ -o /eric_pyqt.api -R -p "/Library/Python/2.5/site-packages/PyQt4/ (for Pyqt) 
  • Press "Compile APIs", press "Apply", press "OK".
  • Eric, Settings->Preferences...->Rope, check enable autocompletion.
  • Eric, Settings->Preferences...->Editor->Calltips, check "Calltips Enabled".


This page was last modified on 31 May 2013, at 01:07.
122 page views in the last 30 days.