×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Talking Python for S60 1.4.1 released

    Python for S60 1.4.1 is now released. This is an officially signed release.

    You can download the release from the usual place in SourceForge:

    http://sourceforge.net/project/showf...roup_id=154155

    This release runs on S60 2nd edition (and all FPs) and 3rd edition.

    The release includes:
    - source code
    - device and emulator binaries for 2.0, 2.6, 2.8 and 3.0
    - emulator binaries for armv5 (RVCT)
    - documentation PDF.

    The release is officially Nokia signed. The capabilities for the PythonForS60 component are "ALL -TCB -DRM -AllFiles", so the DLLs are usable with almost all applications as is and thus there is no longer a need for a separate unsigned-freedevcert version of this package.

    The script shell package is signed with the user-grantable capability set (ReadUserData WriteUserData NetworkServices LocalServices UserEnvironment). If you need more capabilities, you need to obtain a devcert and sign the unsigned-freedevcert script shell package with it.

    Changes in 1.4.1 from 1.4.0:
    -----------------------------
    * telephone module improved
    * position module improved
    * autostart support added to py2sis
    * sensor module added (3rd Ed only)
    * video camera support added to camera module
    * appuifw module: tool tip support added (3rd Ed only), added attributes "size" and "position" to Listbox (3rd Ed only)
    * backup support has been added
    * fixed PDF document formatting problem that caused page numbers to be
    on the wrong side

    Note: The UIDs for officially signed 3rd edition packages (1.4.x) are different from the prereleases (1.3.x). The 1.4.x releases have UIDs assigned from the protected range, while the 1.3.x releases had UIDs from the unprotected range. If your software depends on the UIDs it may need changes. Especially note that it may not be possible to directly upgrade an application package that embeds a 1.3.x runtime package into a new version that embeds a 1.4.x runtime package without removing the old runtime package first.

    The UID changes relevant to application programmers are as follows:

    - PythonForS60 package: old 0xF0201510 new 0x2000B1A0
    - PythonScriptShell package: old 0xF0201515 new 0x2000B1A5

    Corrected defects:
    1761066: epoc32/release/armv5 folder missing in 1.4.0 sdk
    1806235: socket.recvfrom always returns address "0.8.0.0"

    All users are recommended to upgrade.

    This release is the same as 1.3.11 in that ***you need to install both the PythonforS60 _and_ the PythonScriptShell package to get the same functionality as before on 2nd edition. ***

    Bug reports, patches and feature requests are welcomed in the usual places:

    Bugs: http://sourceforge.net/tracker/?grou...55&atid=790646
    Patches: http://sourceforge.net/tracker/?grou...55&atid=790648
    Feature requests:http://sourceforge.net/tracker/?grou...55&atid=790649

    Yes, really - if you find a clear bug file it in SourceForge. That's what we track regularly, not every thread in the discussion board. If you post a bug report only in the DiBo, we might miss it.

    When filing bugs, include the device you used, its firmware version (you can see this by entering *#0000# in the idle screen), the PyS60 version and a minimal test case (if applicable).

    Happy hacking!

  2. #2
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: Python for S60 1.4.1 released

    Quote Originally Posted by jplauril View Post
    Python for S60 1.4.1 is now released.
    Changes in 1.4.1 from 1.4.0:
    -----------------------------
    * position module improved
    Thank you for this (at least)! Non-blocking position()-call is what I have been waiting!

    Autostart support seems interesting also.

  3. #3
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    153

    Re: Python for S60 1.4.1 released

    Thx for the new release,
    I'll start to update immediately.
    Where can we find more information about the py2sis added autostart support?

  4. #4
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for S60 1.4.1 released

    Quote Originally Posted by novis View Post
    Thx for the new release,
    I'll start to update immediately.
    Where can we find more information about the py2sis added autostart support?
    py2sis command line help.

  5. #5
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.1 released

    Hello Jukka ,

    Great job !
    So you have released PyS60 1.4.1 for the Mobile Book launch from Jurgen Scheible ?

    Could you please explain how to use "backup support" in PyS60 because I don't find any in documentation nor in Source code

    Thanks for the new release

    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  6. #6
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for S60 1.4.1 released

    Quote Originally Posted by cyke64 View Post
    Hello Jukka ,

    Great job !
    So you have released PyS60 1.4.1 for the Mobile Book launch from Jurgen Scheible ?

    Could you please explain how to use "backup support" in PyS60 because I don't find any in documentation nor in Source code

    Thanks for the new release

    Cyke64
    The "backup support" simply means that the Python runtime packages are correctly backed up and restored when you back up your phone memory to a memory card.

  7. #7
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Re: Python for S60 1.4.1 released

    How do you use the Autostart feature in py2sis?

    Does it just autostart the program in the background when you turn on the phone?

    Thanks!

  8. #8
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for S60 1.4.1 released

    Quote Originally Posted by federico2929 View Post
    How do you use the Autostart feature in py2sis?

    Does it just autostart the program in the background when you turn on the phone?

    Thanks!
    Yes, that's exactly what it does. Read the command line help of py2sis.

  9. #9
    Registered User
    Join Date
    Mar 2007
    Posts
    10

    Re: Python for S60 1.4.1 released

    Great update!
    I'm happy to see the call state added the telephone module, but I have no idea how to use it, could you post some example code?

  10. #10
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: Python for S60 1.4.1 released

    Quote Originally Posted by novis View Post
    Where can we find more information about the py2sis added autostart support?
    Have a look at "Py2SIS_3rdED_v0_1_README.txt" under folder "\src\py2sis", from there:

    Code:
      * Invoke py2sis with argument --autostart to enable the start-up of your 
      script during device boot. Please note that self-signing is not enough for a 
      start on boot package - In this case the package created with py2sis requires 
      e.g. developer certificate signing.
    Hope this helps.

  11. #11
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for S60 1.4.1 released

    Quote Originally Posted by federico2929 View Post
    How do you use the Autostart feature in py2sis?

    Does it just autostart the program in the background when you turn on the phone?

    Thanks!
    For running py2sis with autostart feature you have to create yourself the MISSING 00000000.rss in the template dir

    Code:
    /*
     * Includes the application in the device bootstrap
     */
    #include <startupitem.rh>
    RESOURCE STARTUP_ITEM_INFO ${{PY2SIS_APPNAME}}
    {
    executable_name =
    "!:\\sys\\bin\\${{PY2SIS_APPNAME}}_${{PY2SIS_UID}}.exe";
    recovery = EStartupItemExPolicyNone;
    }
    Bug report has already be filled.

    Cyke64
    Last edited by cyke64; 2007-10-18 at 14:02. Reason: otsov give real contents of this file
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  12. #12
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: Python for S60 1.4.1 released

    Thanks for this release!

    Pitty the autostartup works in 3rdEd only. But well, you can't have everything .

  13. #13
    Registered User
    Join Date
    Oct 2007
    Posts
    7

    How do I record a video? WAS:Re: Python for S60 1.4.1 released

    I tried to record a video using the new video APIs in 1.4.1 but I can't get it to work.
    My code runs but the red light doesn't come on on my N93 and nothing is recorded. I am guessing I have an error in camera.start_record() in the following code:

    Code:
    import appuifw
    
    import e32,  key_codes, os, os.path, camera, graphics
    
    def cb(im): 
      try:
        canvas.blit(im)
      except:
        appuifw.note(u'cb')
    
    def cb2(im, blah): 
      try:
        x = 1
      except:
        appuifw.note(u'cb2')
    
    def start_viewfinder():
      camera.start_finder(cb)
      camera.start_record('E:\\Python\\whatever.mp4', cb2 ) 
    
    canvas = appuifw.Canvas()
    appuifw.app.body = canvas
    start_viewfinder()
    
    e32.ao_sleep(30) # record video for 30 seconds
    
    camera.stop_record()
    camera.stop_finder()
    Thanks for any help you can provide!
    ...Roland roland AT rolandtanglao.com +1 604 729 7924
    Last edited by rtanglao; 2007-10-21 at 10:12. Reason: minor typos (remove question mark and missing ())

  14. #14
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: How do I record a video? WAS:Re: Python for S60 1.4.1 released

    Can't help you friend but you really shouldn't post this in this thread. Why haven't you created a new thread for this question?

  15. #15
    Registered User
    Join Date
    Oct 2007
    Posts
    7

    Re: How do I record a video? WAS:Re: Python for S60 1.4.1 released

    Quote Originally Posted by y.a.k View Post
    Can't help you friend but you really shouldn't post this in this thread. Why haven't you created a new thread for this question?
    I can see the pros and cons of a new thread.

    I kept it in the same thread because a) video support is 1.4.1 specific and b) everybody else is doing it, i.e. see the other parts of this thread asking about autostart, backup, telephone module, etc.

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. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Symbian
    Replies: 5
    Last Post: 2009-07-14, 17:00
  3. Python for S60 1.4.0 released
    By jplauril in forum Symbian
    Replies: 43
    Last Post: 2009-05-24, 09:22
  4. Python for S60 1.4.0rc1 released
    By jplauril in forum Symbian
    Replies: 20
    Last Post: 2008-08-09, 21:49
  5. Replies: 3
    Last Post: 2005-06-03, 15:32

Posting Permissions

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