You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Talking Python for S60 1.4.0 released - 2007-07-06, 17:42

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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!
Reply With Quote

#2 Old Re: Python for S60 1.4.0 released - 2007-07-06, 19:20

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Great

Kiitos!

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: Python for S60 1.4.0 released - 2007-07-06, 21:36

Join Date: Jul 2007
Posts: 1
famusc
Offline
Registered User
Where is 2420 version?
Reply With Quote

#4 Old Re: Python for S60 1.4.0 released - 2007-07-07, 22:11

Join Date: Apr 2004
Posts: 107
Send a message via ICQ to carknue
carknue
Offline
Regular Contributor
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()
Reply With Quote

#5 Old Re: Python for S60 1.4.0 released - 2007-07-08, 03:44

Join Date: Jun 2005
Posts: 385
y.a.k
Offline
Regular Contributor
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 13:37.
Reply With Quote

#6 Old Re: Python for S60 1.4.0 released - 2007-07-08, 17:25

Join Date: Apr 2004
Posts: 107
Send a message via ICQ to carknue
carknue
Offline
Regular Contributor
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))
Reply With Quote

#7 Old Re: Python for S60 1.4.0 released - 2007-07-09, 11:16

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi carknue,
Quote:
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
Reply With Quote

#8 Old Re: Python for S60 1.4.0 released - 2007-07-09, 12:42

Join Date: Jul 2007
Posts: 1
aviyam's Avatar
aviyam
Offline
Registered User
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?
Reply With Quote

#9 Old Re: Python for S60 1.4.0 released - 2007-07-10, 15:38

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
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
Reply With Quote

#10 Old Re: Python for S60 1.4.0 released - 2007-07-12, 16:14

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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.
Reply With Quote

#11 Old Re: Python for S60 1.4.0 released - 2007-07-12, 16:18

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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.
Reply With Quote

#12 Old Re: Python for S60 1.4.0 released - 2007-07-12, 16:23

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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.
Reply With Quote

#13 Old Re: Python for S60 1.4.0 released - 2007-07-12, 16:24

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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?
Reply With Quote

#14 Old Re: Python for S60 1.4.0 released - 2007-07-12, 16:26

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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))
Reply With Quote

#15 Old Re: Python for S60 1.4.0 released - 2007-07-12, 21:13

Join Date: Apr 2004
Posts: 107
Send a message via ICQ to carknue
carknue
Offline
Regular Contributor
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help installing Python libraries on S60 ericroijen Python 11 2009-07-18 11:43
Python for Series 60 released on Forum Nokia! eriksmartt Python 5 2009-07-14 18:00
Python for S60 1.4.0rc1 released jplauril Python 20 2008-08-09 22:49
Python for S60 1.3.13 released jplauril Python 8 2006-11-21 16:59
When is next version of Python for Series 60 going to be released nbsinner Python 3 2005-06-03 16:32

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2010 Nokia