×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    Bangalore
    Posts
    12

    Talking Eric Ide - perfect IDE for Python + PyS60 developmant

    Hi All,
    I was looking for perfect IDE for PyS60 development. I was working with eclipse + pydev plugin, but in pydev I miss autocompletion of PyS60 modules. Then I moved to Eric4 IDE and made it working with PyS60 apis with autocompletion. Here is the steps , try out!!!


    1. Install Python (http://www.activestate.com/activepython/)

    2. Install PyQt (http://www.riverbankcomputing.co.uk/.../pyqt/download , select windows installer package based on your python version) - Eric is python + qt application

    3. Install Eric IDE (http://sourceforge.net/projects/eric-ide/files/ , download & extract eric4-4.3.5.zip) once you extract go to eric extracted dir and run python install.py

    4. Install PluginRefactoringRope plugin from eric Plugins->Plugins Repository Menu

    5. Install PyS60 (You might already have it)

    6. Now it is time to make Eric to know Pys60

    6.1) Run eric api creation tool to create PyS60 API file
    Ex:
    python C:\Python26\Lib\site-packages\eric4\eric4-api.py -o c:\PyS60_api.api -R -p "C:\Program Files\PythonForS60\module-repo"

    6.2) Goto Eric IDE , Settings -> Preference-> editor ->APIs
    select "Python" from Language box

    Click "..." button and point to C:\PyS60_api.api file

    Click Add

    7. You can do the same 6th step for other python modules also,

    Ex:
    python C:\Python26\Lib\site-packages\eric4\eric4-api.py -o python_api.xml -R -p C:\python26 (For python standared modules)

    python C:\Python26\Lib\site-packages\eric4\eric4-api.py -o eric_pyqt.api -R -p C:\python26\Lib\site-packages\PyQt4 (for python QT)

    Then add all the APIs files to Settings -> Preference-> editor ->APIs


    8. Eric , Settings -> Preference-> editor ->APIs select "Python" from Language box and verify all your Api files added.
    Press "compile APIs", wait for some time , Press apply , Press Ok button

    9. Eric , Settings -> Preference-> Rope , check enable autocompletion

    10. Eric, Settings -> Preference->Call tips, Check enable call tips



    Yuppy !! You are done. Enjoy the full features (with auto completion) for PyS60

    Eric Home: http://eric-ide.python-projects.org/
    Regards,
    Bakkiaraj
    Nokia India

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    Hi,

    That seems very nice It would be great if you could add this tutorial to the Wiki. That way it would be easier to find/update in the future.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    hello bakkiaraj

    this seems to be very interesting and i will definitely give this a go.

    Thanks
    Gaba88

  4. #4
    Registered User
    Join Date
    Nov 2008
    Location
    Bangalore
    Posts
    12

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    Yes gaba88, Try it and let me know if you need help
    Regards,
    Bakkiaraj
    Nokia India

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    Quote Originally Posted by sam_bakki View Post
    Eric4 IDE and made it working with PyS60 apis with autocompletion. Here is the steps , try out!!!
    Please add this into wiki! First as a reminder and second as a place for possible "bug" fixes!

    Cheers,

    --jouni who would love to check this, but just doesn't have time/network to it right now and won't remember next week

  6. #6
    Registered User
    Join Date
    Nov 2008
    Location
    Bangalore
    Posts
    12

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    Hi All,
    I have added it in python wiki

    http://wiki.forum.nokia.com/index.ph...60_developmant
    Regards,
    Bakkiaraj
    Nokia India

  7. #7
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India
    Posts
    138

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    Hi Bakkiaraj,

    It's very useful information for this community with new IDE for pyS60 developers.

    Thanks very much, Bakkiaraj to share this information.
    Pavan Pareta
    Sr. Software Engineer
    http://windows-mobile-dev.blogspot.com

  8. #8
    Registered User
    Join Date
    Nov 2009
    Posts
    1

    Please help me with the installation; thanks.

    Hye everyone,

    i'm stuck half way through installation.

    * I've installed python 3.1 (both activepython and python)
    * I've installed pyqt 4.6.1 for windows (without errors)
    * I've downloaded eric4.4.3.9

    When i enter python install.py in dos shell, it gives me the following error.

    file "install.py", line 43
    print "usage:"
    SyntaxError:invalid syntax


    thanks in advance.
    Sheraz



    note: i've also installed the suggested MSVC2008 C++ runtime DLLs

  9. #9
    Registered User
    Join Date
    Apr 2010
    Posts
    32

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    I have done everything as u said. But it is still not working for pys60 but working for normal python autocompletion.

  10. #10
    Registered User
    Join Date
    Sep 2013
    Posts
    1

    Re: Eric Ide - perfect IDE for Python + PyS60 developmant

    Hi all, It's late to reply the post but it's nesseary.

    I do all step. Step 7 and 8 is done by typing following codes in command line:
    python C:\Python27\Lib\site-packages\eric4\eric4-api.py -o C:\PyS60_api.api -R -p "C:\Program Files\PythonForS60\module-repo"
    python C:\Python27\Lib\site-packages\eric4\eric4-api.py -o python_api.api -R -p C:\Python27
    python C:\Python27\Lib\site-packages\eric4\eric4-api.py -o eric_pyqt.api -R -p C:\Python27\Lib\site-packages\PyQt4

    after this, "PyS60_api.api" file is created at "C:\" and "eric_pyqt.api", "python_api.api" files are created at "C:\Windows\System32". I add them to eric IDE by using " Settings -> Preference-> editor ->APIs", then compile and apply.

    So I think that I had done all steps correctly. But I have a big problem. eric IDE does not know pys60 modules, for ex, appuifw, e32, camera, ... . In other words, if I type

    >>> import camera

    in eric IDE shell, then I have this error:

    Traceback (innermost last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named camera

    I have windows 8.
    thanks.

Similar Threads

  1. New to Python for S60 (PyS60)? Read this first!
    By croozeus in forum Nokia N9
    Replies: 2
    Last Post: 2008-10-17, 19:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •