×

Discussion Board

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

    Talking Python for S60 1.4.0 released

    Yes, it really happened.

    Python for S60 1.4.0 is now released. This is the final, officially signed release.

    You can download the release at SourceForge:

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

    This release is for both 2nd and 3rd edition devices. As mentioned before, we no longer actively support 1st edition, but if someone is interested in making 1st edition builds of PyS60, then just get the source and go ahead.

    The release includes:
    - source code
    - device and emulator binaries for 2.0, 2.6, 2.8 and 3.0
    - 3rd edition emulator binaries for armv5 architecture (RVCT compiler)
    - 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.

    One defect was fixed since 1.4.0rc1:

    1740751: ssl socket read hangs/ returns garbage depending on length

    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
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: Python for S60 1.4.0 released

    Great

    Kiitos!

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

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

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    1

    Re: Python for S60 1.4.0 released

    Where is 2420 version?

  4. #4
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    107

    Re: Python for S60 1.4.0 released

    Why is my script not running anymore with 1.4.0?

    Also some examples from Jürgen Location do not run anymore. Do I still need a devcert? I use now nokia signed version of 1.4.0 3rd Ed.

    Code:
    import appuifw
    import e32
    import location
    import sysinfo
    from graphics import *
    
    
    running=1
    
    img=Image.new((240,235))
    
    def main_menu_setup():
    	appuifw.app.menu = [(u"Netmonitor", netmonitor),(u"Settings", settings)]
    	
    def settings():
    	handle_redraw(())
    	
    def netmonitor():
    	imei=sysinfo.imei()
    	ver = sysinfo.os_version()
    	while running:
    		#clear(color=(0,0,60))
    		#img.line((20,20,20,120),0xff00ee)
    		img.rectangle((0,0,240,235),0xff0000,fill=(0,0,60))
    		#img.point((50.,150.),0xff0000,width=40)
    		#img.ellipse((100,150,150,180),0x0000ff)
    		#img.text((100,80), u'hello')
    		rnc=0
    		(mcc, mnc, lac, cid) = location.gsm_location()
    		if (mnc == 7) and (mcc == 262) and (cid > 65535):
    			cidhex=hex(cid)
    			rnc=int(cidhex[2:4],16)
    			cid=int(cidhex[len(cidhex)-4:len(cidhex)],16)
    		bars = sysinfo.signal_bars()
    		rxl = sysinfo.signal_dbm()
    		batty = sysinfo.battery()
    		e32.reset_inactivity()
    		ram = sysinfo.free_ram()
    		x = appuifw.app.layout(appuifw.EScreen)
    		ram = ram/1024
    		img.text((40,40), u'CID: '+unicode(cid),fill=(255,255,255), font=u"normal")
    		img.text((40,60), u'LAC: '+unicode(lac),fill=(255,255,255), font=u"normal")
    		img.text((40,100), u'NET: '+unicode(mcc)+"   "+unicode(mnc),fill=(255,255,255), font=u"normal")
    		img.text((40,80), u'RNC: '+unicode(rnc),fill=(255,255,255), font=u"normal")
    		img.text((40,120), u'RXL: -'+unicode(rxl)+u" dBm ("+unicode(bars)+u")",fill=(255,255,255), font=u"normal")
    		img.text((40,140), u'BAT: '+unicode(batty)+u" %",fill=(255,255,255), font=u"normal")
    		img.text((40,160), u'RAM: '+unicode(ram)+u" KB",fill=(255,255,255), font=u"normal")
    		img.text((40,180), u'VER: '+unicode(ver),fill=(255,255,255), font=u"normal")
    		img.text((40,200), u'IMEI: '+imei,fill=(255,255,255), font=u"normal")
    		img.text((40,220), u'RES: '+unicode(x),fill=(255,255,255), font=u"normal")
    		handle_redraw(())
    		e32.ao_sleep(0.5)
    		#e32.ao_yield()
    		
    def handle_redraw(rect):
    	canvas.blit(img)
    	
    canvas=appuifw.Canvas(event_callback=None, redraw_callback=handle_redraw)
    
    def exit_key_handler():
    	global script_lock
    	script_lock.signal()
    	appuifw.app.set_exit()
    	running=0
    	
    appuifw.app.screen='normal'
    
    script_lock = e32.Ao_lock()
    
    appuifw.app.title = u"PyNetMony"
    appuifw.app.body=canvas
    
    #appuifw.app.body = appuifw.Text(u"Press Options button below ...")
    
    main_menu_setup()
    appuifw.app.exit_key_handler = exit_key_handler
    script_lock.wait()

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

    Re: Python for S60 1.4.0 released

    Cool, official 1.4.0 is out. Thanks guys.

    carknue, I don't know what's wrong but it would be a good idea to better describe your problem. What's not working exactly, do you get any error messages, what are they, what phone model are you using, and so on.

    --- added ---
    jplauril, I was installing this release on a 2.0 phone (6600) using PC Suite. In both core package and scripshell the installer complained about failed security check and that the installation cannot be proceeded. Clicking 'Details' poped up a window saying it couldn't obtain some certificate. However, the dialog also had an 'Install' button which caused the installation to proceed anyway. But it was confusing so I thought you should know.
    Last edited by y.a.k; 2007-07-08 at 12:37.

  6. #6
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    107

    Re: Python for S60 1.4.0 released

    Ok, I signed PyShell 1.4.0 with my Dev Cert and now it is running again, but I thought that nokia included all rights to pyS60 1.4.0. is gsm location such a ristricted right?

    BTW is this bug really fixed?
    http://sourceforge.net/tracker/index...5&atid=790646)

    I still got with PyS60 1.4.0 this unreadable fonts on E90 maybe E90 is once more different from 3rd Edition.

    Code:
    img.text((20,220), u'RES: '+unicode(x),fill=(255,255,255), font=(u"normal",40))

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

    Re: Python for S60 1.4.0 released

    Hi carknue,
    Ok, I signed PyShell 1.4.0 with my Dev Cert and now it is running again, but I thought that nokia included all rights to pyS60 1.4.0. is gsm location such a ristricted right?
    Try to self-sign and reinstall your libraries. You needed the developer certificate since the Python DLL had only 5 capabilities. All my self-signed libraries work without any problems.

    Have a look at the last post by jplauril http://discussion.forum.nokia.com/fo...d.php?t=110986 that summarize the capabilities rule.

    Signing your DLLs with a developer certificate will force any user to sign them with their own certificate (if you distribute any) which has to be the same for the Python interpreter and all DLLs.

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

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

  8. #8
    Registered User
    Join Date
    Jul 2007
    Posts
    1

    Re: Python for S60 1.4.0 released

    When I tried installing over an old installation, I got an error. I uninstalled python and I still get the error "update error".
    Any clues?

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

    Re: Python for S60 1.4.0 released

    Hi aviyam and welcome to the forum!

    Please check the last post by cycke64 http://discussion.forum.nokia.com/fo...ad.php?t=69904

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

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

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

    Re: Python for S60 1.4.0 released

    Quote Originally Posted by y.a.k
    Cool, official 1.4.0 is out. Thanks guys.

    carknue, I don't know what's wrong but it would be a good idea to better describe your problem. What's not working exactly, do you get any error messages, what are they, what phone model are you using, and so on.

    --- added ---
    jplauril, I was installing this release on a 2.0 phone (6600) using PC Suite. In both core package and scripshell the installer complained about failed security check and that the installation cannot be proceeded. Clicking 'Details' poped up a window saying it couldn't obtain some certificate. However, the dialog also had an 'Install' button which caused the installation to proceed anyway. But it was confusing so I thought you should know.
    Um, could _you_ specify your problem more precisely?

    Like, what is the exact error message?

    Also, please check that the time on your phone was correct.

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

    Re: Python for S60 1.4.0 released

    Quote Originally Posted by lfd
    Hi carknue,
    You needed the developer certificate since the Python DLL had only 5 capabilities. All my self-signed libraries work without any problems.
    LFD
    Correction: The DLLs are signed with “ALL -TCB -DRM -AllFiles”, but DLL capabilities don’t give capabilities to an application - they just determine if an application can load the DLL or not. Capabilities come from the EXE - in case of Python that’s the script shell or the stub EXE in your py2sis wrapped package.

    We can’t distribute an app that would run arbitrary code with the full freedevcert capabilities, and this is why the default scriptshell only has user-grantable capabilities. If you need more, you need to get a devcert and sign the other scriptshell package with it.

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

    Re: Python for S60 1.4.0 released

    Quote Originally Posted by famusc
    Where is 2420 version?
    We decided to simplify installation and distribution by leaving it out. Deciding the correct S60 version already confuses people.

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

    Re: Python for S60 1.4.0 released

    Quote Originally Posted by aviyam
    When I tried installing over an old installation, I got an error. I uninstalled python and I still get the error "update error".
    Any clues?
    Did you uninstall both packages? What S60 version?

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

    Re: Python for S60 1.4.0 released

    Quote Originally Posted by carknue
    Ok, I signed PyShell 1.4.0 with my Dev Cert and now it is running again, but I thought that nokia included all rights to pyS60 1.4.0. is gsm location such a ristricted right?

    BTW is this bug really fixed?
    http://sourceforge.net/tracker/index...5&atid=790646)

    I still got with PyS60 1.4.0 this unreadable fonts on E90 maybe E90 is once more different from 3rd Edition.

    Code:
    img.text((20,220), u'RES: '+unicode(x),fill=(255,255,255), font=(u"normal",40))
    Yes, it's really fixed.

    Unicode strings are interpreted as font names, not logical font labels. 'normal' is a logical font label. This code works:

    Code:
    img.text((20,220), u'RES: '+unicode(x),fill=(255,255,255), font=("normal",40))

  15. #15
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    107

    Re: Python for S60 1.4.0 released

    Quote Originally Posted by jplauril
    Yes, it's really fixed.

    Unicode strings are interpreted as font names, not logical font labels. 'normal' is a logical font label. This code works:

    Code:
    img.text((20,220), u'RES: '+unicode(x),fill=(255,255,255), font=("normal",40))
    No, sorry. It still does not work on E90. Please put it again on the bug list.

    I really need sizable fonts on E90. They work in text mode, but not in canvas.

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.0rc1 released
    By jplauril in forum Symbian
    Replies: 20
    Last Post: 2008-08-09, 21:49
  4. Python for S60 1.3.13 released
    By jplauril in forum Symbian
    Replies: 8
    Last Post: 2006-11-21, 15:59
  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
  •  
×