×

Discussion Board

Results 1 to 6 of 6

Thread: Latest version

  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    55

    Latest version

    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'
    This error refers to the line below.
    Code:
    time.mktime(time.strptime("01 Mar " + str(year), "%d %b %Y")) - 3600 + ((n - 3) * 31 + p) * 86400
    Any ideas?

    And before you ask, I do import the time module.

    Patrick

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Latest version

    Quote Originally Posted by patlucas View Post
    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'
    This error refers to the line below.
    Code:
    time.mktime(time.strptime("01 Mar " + str(year), "%d %b %Y")) - 3600 + ((n - 3) * 31 + p) * 86400
    Any ideas?

    And before you ask, I do import the time module.

    Patrick
    hello Patrick

    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

  3. #3
    Nokia Developer Expert
    Join Date
    Apr 2007
    Posts
    131

    Re: Latest version

    You can try with the new version of PyS60(with Python core 2.5.4) that can be downloaded from here. This supports 'strptime'.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Latest version

    Quote Originally Posted by mahesh.sayibabu View Post
    You can try with the new version of PyS60(with Python core 2.5.4) that can be downloaded from here. This supports 'strptime'.
    hello mahesh

    but patrick is using Nokia 7610 and we all know that 2nd edition devices don't have the 1.9.x support.

    Regards
    Gaba88

  5. #5
    Nokia Developer Expert
    Join Date
    Apr 2007
    Posts
    131

    Re: Latest version

    Quote Originally Posted by gaba88 View Post
    hello mahesh

    but patrick is using Nokia 7610 and we all know that 2nd edition devices don't have the 1.9.x support.

    Regards
    Gaba88
    oh.. "on Nokia 7610", I overlooked that part!

  6. #6
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    55

    Re: Latest version

    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?

Similar Threads

  1. [moved] Problems during the installation of a new version.
    By NikolaN in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 10
    Last Post: 2009-06-18, 11:25
  2. Open C libm.lib (math lib) needs update to version 4
    By jimgilmour1 in forum Open C/C++
    Replies: 1
    Last Post: 2007-04-19, 16:51
  3. 6670 latest firmware version?
    By smartegyptian in forum Symbian
    Replies: 0
    Last Post: 2005-01-07, 22:02
  4. Latest version of Nokia 22 Configurator
    By JCOSTA in forum Nokia M2M
    Replies: 1
    Last Post: 2002-09-30, 10:30
  5. what's the latest version of the SDK?
    By cl_eci_dev in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-05-08, 19:12

Posting Permissions

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