×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Problems in using pys60 on 5th edition nokia phones

    Hi All,

    Actually i found many glitches while working with pys60 on my nokia 5800 XM, i got many things resolved by googling and right now am stuck with a major problem.

    Problem is (following below is copy n pasted from minicom console - i have my nokia 5800's pys60 bluetooth console connected with my suse os laptop)

    >>> import os
    >>> os.rename("C:\\resource\\Python25","C:\\resource\\python25")
    Traceback (most recent call last):
    File "<console>", line 1, in <module>
    OSError: [Errno 13] Permission denied
    >>>

    The same is seen in while done from phone.

    Many other cmd's are working except for few (like the one above).
    But at the same time the same os.rename works for "E" drive (not for C

    Is there a way to rename the Python25 folder to python25 - reason am looking for this is this will resolve many of the problems which occur due to this .... for eg while we run a *.py file and if it fails to run, the reason is this "C:\resource\python25\..... " where as the system has "C:\resource\Python25\..."

    Thanks is advance for any suggestions and solution....:

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Problems in using pys60 on 5th edition nokia phones

    Hi,

    This is an operating system restriction - you cannot access or modify certain directories on the C drive without the TCB capability, which is granted by the manufacturer. So basically it's not possible.

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

    Re: Problems in using pys60 on 5th edition nokia phones

    hello pisari.mahesh

    the error msg you are getting is pretty clear, "permission denied" i.e. C:\\Resource is a restricted directory and you cant access that using normal capability.

    Regards,

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Re: Problems in using pys60 on 5th edition nokia phones

    Has anyone else too faced this problem ????

    What might be the reason for the python installing the way it got installed on my phone.

    I have worked on pys60 much b4 i became forum nokia member but on my office lab phone which was a s60 3rd edition, developed a product called 'GSM monitoring' at our end used by us and clients...

    Can get in more apps if it gets resolved for my phone.

    Anyways thanks for replys

    Regards,
    Mahesh

  5. #5
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: Problems in using pys60 on 5th edition nokia phones

    Quote Originally Posted by pisari.mahesh View Post
    What might be the reason for the python installing the way it got installed on my phone.
    Well, do you mean that it doesn't install the same on other devices? Have you checked this by installing it on other devices?

    If your script fails accessing the system level folder, that means your scriptshell isn't allowed to access it (unless you sign it with more caps, as stated earlier).

    Why do you need to access that folder in order to run a py file?
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

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