×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    Smile Newbie at python at all.

    Hi mates, i have skills at PHP proggraming, but i'm newbie to python...I installed python at my n80, and found a exaxmple application... I renamed it to file.py and by default opened with notes editor or something... Could you give me some links to lears basics at python, and how to run my python apps at my phone.

    Marin Mitrev.

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: Newbie at python at all.

    Hi m3m0r3xXx and welcome to the forum

    If you need to learn the basis of Python (won't be too difficult with you PHP experience) you should read tutorials and code example at the following location:



    Happy hacking!

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    Re: Newbie at python at all.

    I still can't get it.What to download to start... i downloaded:
    Carbide.c++_v1.2.exe
    S60_3rd_Ed_SDK_FP2_Beta_b.zip
    but, still can't get it.

  4. #4
    Super Contributor
    Join Date
    May 2004
    Location
    Tampere, Finland
    Posts
    524

    Re: Newbie at python at all.

    Quote Originally Posted by m3m0r3xXx View Post
    Carbide.c++_v1.2.exe
    S60_3rd_Ed_SDK_FP2_Beta_b.zip
    These are not needed or even useful, if you don't plan to start creating C++ extension modules right away...

    This is the bare minimum for getting started with PyS60:

    From http://sourceforge.net/project/showf...roup_id=154155:
    • Install on the phone: PythonForS60_1_4_1_3rdEd.SIS
    • Install on the phone: PythonScriptShell_1_4_1_3rdEd.sis
    • Read: PythonForS60_1_4_1_doc.pdf
    • Read: PyS60_3rdEd_README.txt (located inside pys60-1.4.1_src.zip)
    • Read: release_notes_1_4_1.txt


    Developing software with only these basic packages is quite cumbersome. 3rd Edition phones are unable to receive Python files as-is, so your only option is to copy files to the phone using USB or Bluetooth OBEX File Transfer. If you send a Python file to the phone using Bluetooth OBEX Object Push, the file will end up in the messaging application and this is a dead end.

    So, for your comfort, these additional packages are recommended:

    • Install on the phone: Ped, for editing files on the phone
    • Install on your Windows/Mac/Linux computer: Ensymble, for making Symbian installation packages
    • Install on your Windows/Mac/Linux computer: Python, if you already don't have it. Ensymble requires Python v2.2 or newer.


    Using Ensymble, you can create Symbian installation packages (SIS files). These can be sent to the phone and installed. Python applications installed from SIS files behave like other native applications on the phone. They have their own icon, a language dependent name etc. SIS files generated by Ensymble still require PythonForS60_1_4_1_3rdEd.SIS to be installed on the phone, but there are ways to combine multiple SIS files into one (Ensymble "mergesis" command).

    I consider creating SIS files so quick that I rarely edit files on the phone myself. In this case it helps to enclose the application in an exception harness such as this because by default, an exception in stand-alone application will only close the application without any error message.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    Re: Newbie at python at all.

    All perfect! 10X!!! But i have little problem with The Ensymble developer utilities for Symbian OS
    my script :
    Code:
    import appuifw
    
    data = appuifw.query(u"Type a word:", "text")
    
    appuifw.note(u"The typed word was: " + data, "info")
    I write:
    Code:
    C:\Python25>python.exe ensymble_python2.5-0.24.py py2sis memo.py -r 1.0.0 -n v14
    0 -l EN -i ICO.PNG -s "Memo APP"
    ensymble_python2.5-0.24.py: warning: no UID given, using auto-generated test UID
     0xe74a6ca0
    ensymble_python2.5-0.24.py: warning: no certificate given, using insecure built-
    in one
    ensymble_python2.5-0.24.py: no valid OpenSSL command line tool found in PATH
    and it outputs .sis file ( 0bytes )

  6. #6
    Super Contributor
    Join Date
    May 2004
    Location
    Tampere, Finland
    Posts
    524

    Re: Newbie at python at all.

    Quote Originally Posted by m3m0r3xXx View Post
    Code:
    ensymble_python2.5-0.24.py: no valid OpenSSL command line tool found in PATH
    Ensymble requires OpenSSL, which is included on most Linux systems and Mac OS X. Windows users will have to download and install it separately. See this
    discussion about installing Ensymble
    .

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    Re: Newbie at python at all.

    All good but what to add at the "Variable" path?

  8. #8
    Super Contributor
    Join Date
    May 2004
    Location
    Tampere, Finland
    Posts
    524

    Re: Newbie at python at all.

    Another thing: Ensymble only accepts SVG-T (vector) icons, because that is what 3rd Edition phones use. PNG files are not accepted.

  9. #9
    Super Contributor
    Join Date
    May 2004
    Location
    Tampere, Finland
    Posts
    524

    Re: Newbie at python at all.

    Quote Originally Posted by m3m0r3xXx View Post
    All good but what to add at the "Variable" path?
    If you downloaded openssl.zip from Stunnel.org, there are three files: libeay32.dll, libssl32.dll and openssl.exe. Put those in C:\OpenSSL\bin and add "C:\OpenSSL\bin" in front of the PATH environment variable. See what the PATH variable looks like and use the correct separator character between path elements. I don't remember what the character is, maybe semicolon? I use Windows only occasionally...

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Symbian
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  3. Replies: 1
    Last Post: 2008-01-08, 09:58
  4. Replies: 11
    Last Post: 2007-10-03, 19:46
  5. Newbie - How to Use Python with an Emulator
    By Phil Bartie in forum Symbian
    Replies: 3
    Last Post: 2006-05-05, 00:21

Posting Permissions

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