×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    6

    Problem using shutil.copy in pyS60 1.9.5

    Can someone please tell me why this line will not work in pyS60 1.9.5 but does work in 1.4.5?

    Here is the line I'm using:

    shutil.copyfile("E:\\UA\\GC\\file.dll","C:\\sys\\bin\\file.dll")

    Version 1.9.5 returns this: I/OError:[Errno 22]Invaild argument: 'C:\\sys\\bin\file.dll'

    Why is this an invalid argument in version 1.9.5 but not version 1.4.5?

    Testing on Nokia E71 mobile.

    Thank you

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

    Re: Problem using shutil.copy in pyS60 1.9.5

    Quote Originally Posted by MoWeb View Post
    Can someone please tell me why this line will not work in pyS60 1.9.5 but does work in 1.4.5?

    Here is the line I'm using:

    shutil.copyfile("E:\\UA\\GC\\file.dll","C:\\sys\\bin\\file.dll")

    Version 1.9.5 returns this: I/OError:[Errno 22]Invaild argument: 'C:\\sys\\bin\file.dll'

    Why is this an invalid argument in version 1.9.5 but not version 1.4.5?

    Testing on Nokia E71 mobile.

    Thank you
    I get "IOError: [Errno 13] Permission denied: 'c:\\sys\\bin\\...'" error, which is expected, as the directory \sys\bin is not writable by user applications. If you want a DLL here, then you need to include the DLL with the application SIS by adding an entry in the PKG file of that application.
    Last edited by mahesh.sayibabu; 2009-06-06 at 22:27.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    6

    Re: Problem using shutil.copy in pyS60 1.9.5

    Quote Originally Posted by mahesh.sayibabu View Post
    I get "IOError: [Errno 13] Permission denied: 'c:\\sys\\bin\\...'" error, which is expected, as the directory \sys\bin is not writable by user applications. If you want a DLL here, then you need to include the DLL with the application SIS by adding an entry in the PKG file of that application.

    WOW! Thank you for the fast response. I do have permission to write to this folder. I can copy files to it using the built-in file manager. I was trying to use the script above to do the same thing. It works in version 1.4.5 but not version 1.9.5. Do you know why?


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

    Re: Problem using shutil.copy in pyS60 1.9.5

    Quote Originally Posted by MoWeb View Post
    It works in version 1.4.5 but not version 1.9.5. Do you know why?

    It does not work for me even on PyS60 1.4.5
    I get IOError: [Errno -46]: 'c:\\sys\bin\\...'

Similar Threads

  1. Replies: 12
    Last Post: 2008-09-23, 06:08
  2. PyS60 in Nokia N70 (Problem)
    By Biggy-D in forum Symbian
    Replies: 1
    Last Post: 2007-12-16, 23:02
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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