| Reply | « Previous Thread | Next Thread » |
|
Hi
I have Python both installed on my PC ans Nokia 7610. On my PC it says that the version is 2.4.1 and on my handset it says 1.4.5 final (interactive console says version 2.2.2). My code runs fine on the PC and yet produces the following error on my handset. Code:
AttributeEror: 'module' object has no attribute 'strptime' Code:
time.mktime(time.strptime("01 Mar " + str(year), "%d %b %Y")) - 3600 + ((n - 3) * 31 + p) * 86400
And before you ask, I do import the time module. Patrick |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
i am not sure but may be the function strptime is not available in the core Python version 2.2.2 on which the PyS60 1.4.x are based. Please make a check of that. Regards Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
You can try with the new version of PyS60(with Python core 2.5.4) that can be downloaded from here. This supports 'strptime'.
|
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
but patrick is using Nokia 7610 and we all know that 2nd edition devices don't have the 1.9.x support. ![]() Regards Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
oh.. "on Nokia 7610", I overlooked that part!
|
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
Ok. Let's look at the problem a different way. I am using strptime("01 Mar " + str(year), "%d %b %Y") to create a fixed point in time in a given year. Is there any other way of creating that fixed point in time. Can I construct a struct_time tuple directly?
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| [moved] Problems during the installation of a new version. | NikolaN | Installation, Certification and Security | 10 | 2009-06-18 12:25 |
| Open C libm.lib (math lib) needs update to version 4 | jimgilmour1 | Open C/C++ | 1 | 2007-04-19 17:51 |
| 6670 latest firmware version? | smartegyptian | General Symbian C++ | 0 | 2005-01-07 23:02 |
| Latest version of Nokia 22 Configurator | JCOSTA | Nokia M2M | 1 | 2002-09-30 11:30 |
| what's the latest version of the SDK? | cl_eci_dev | Symbian Tools & SDKs | 2 | 2002-05-08 20:12 |