Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    Hello All!

    I get this "KErrPermissionDenied" error while creating a socket or calling the set_default_access_point method in ped or in python shell.

    Also i dont have the python application manager in my e51 3rd ed phone python version 1.4.4, to where upto i know, the phone should open intaller for .py, .pyd, .pyc etc.. but it is not opening it while downloading from internet or opening on phone. it just opens it in Notes Application. is it still coming with python?

    Please help me in solving this problem.

    Thanks in advance

  2. #2
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    hi aneeso42
    first of all 3rd edition phones dont have a python recognizer so you have to plave your python script in the E:\python directory either using the USB mode or using the PC suite mode.

    Enjoy Pythoning
    gaba88

  3. #3
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    You answered to my second question. Thanks.
    We transfer Scripts to Python Directory But what if my script is a library?

    Thanks

  4. #4
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    Quote Originally Posted by anees042 View Post
    You answered to my second question. Thanks.
    We transfer Scripts to Python Directory But what if my script is a library?

    Thanks
    hi
    sorry i forgot your first question i feel the error you are getting is due to the point that your socket may be already in use so check that.
    Moreover for placing the python lib files just create a new directory named Lib in E:\python and place your compiled file there.

    Hope this helps you
    Enjoy Pythoning
    Gaba88

  5. #5
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    Thanks for your help gaba!

    1. The socket is not in use. and the problem is still not solved
    2. I think we can also use .py as module, not confirmed to me
    e.g: e:/Python/mymodule.py
    import mymodule

  6. #6
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    Hello!

    I installed a module named app list into memory card but i didnt found its pyd file any where on the filesystem.

    it is installed i think but in the protected area.

    so it confirms that the modules are not saved in e:/python

    please help me out on where to put my module .py, .pyd etc files.

    thanks..

  7. #7
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    Quote Originally Posted by anees042 View Post
    Hello!

    I installed a module named app list into memory card but i didnt found its pyd file any where on the filesystem.

    it is installed i think but in the protected area.

    so it confirms that the modules are not saved in e:/python

    please help me out on where to put my module .py, .pyd etc files.

    thanks..
    hi anees042

    i think you are installing the sis file of the extension module anyways you can have a look at all the modules in the c:\sys\bin directory.

    EDIT: i forget the file cant be seen in the device you can have a look of the directory at the emulator in your PC.

    I hope i got your point now
    Enjoy Pythoning
    Gaba88

  8. #8
    Regular Contributor miohtama's Avatar
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376
    Quote Originally Posted by anees042 View Post
    Hello!

    please help me out on where to put my module .py, .pyd etc files.
    Library .py files go to c:\resources. You can put .py files anywhere you want to manually poke sys.path in Python to load modules from your custom location.

    .pyd files go to c:\sys\bin - being a protected folder
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  9. #9
    Registered User cyke64's Avatar
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352
    Quote Originally Posted by miohtama View Post
    Library .py files go to c:\resources. You can put .py files anywhere you want to manually poke sys.path in Python to load modules from your custom location.

    .pyd files go to c:\sys\bin - being a protected folder
    Hello Mikko

    Even the ressource folder is visible don't forget that this folder is read only You can not copy a file in this folder with a file explorer directly on phone !
    You have to put the .py files in a sisx file first (self-signed is enough) and second install the sisx file.

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  10. #10
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    gaba!

    you got my point now.

    miohtama!
    as cyke answered we cannot copy files to c:/resource directory.

    cyke!
    as i am developing and debugging libraries on phone, it is hard to write a line. save it. create sis. and test it.

    any cute solution?

  11. #11
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    Quote Originally Posted by anees042 View Post

    cyke!
    as i am developing and debugging libraries on phone, it is hard to write a line. save it. create sis. and test it.

    any cute solution?
    hi
    great that i got your point but really sorry i didnt got what you asked you are developing on phone means??

    Regards
    gaba88

  12. #12
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    Quote Originally Posted by gaba88 View Post
    hi
    great that i got your point but really sorry i didnt got what you asked you are developing on phone means??

    Regards
    gaba88
    developing on phone means that i m writing the code directly on my mobile phone with the help of editor(ped).

    Thanks.

  13. #13
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    Quote Originally Posted by gaba88 View Post
    hi
    great that i got your point but really sorry i didnt got what you asked you are developing on phone means??

    Regards
    gaba88
    hi anees042

    ok i got it. But i guess if you are are writing any extension file or any library file then it will be better to test that on the PC or laptop. and more better if you test on the SDK.

    Enjoy Pythoning
    Gaba88

  14. #14
    Registered User anees042's Avatar
    Join Date
    Dec 2005
    Posts
    49
    Quote Originally Posted by gaba88 View Post
    hi anees042

    ok i got it. But i guess if you are are writing any extension file or any library file then it will be better to test that on the PC or laptop. and more better if you test on the SDK.

    Enjoy Pythoning
    Gaba88
    Please check if there is any chance, to write .py files on phone and use them as libraries.

  15. #15
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Quote Originally Posted by gaba88 View Post
    But i guess if you are are writing any extension file or any library file then it will be better to test that on the PC or laptop. and more better if you test on the SDK.
    That's interesting... I always thought that extensions and libraries should be tested on actual phones since that's where people run their mobile applications Of course emulator testing is good, but not necessary and clearly not definitive. There are differences between emulator and device. One should always test the product on the target device (or the closest possible thing).

    Quote Originally Posted by anees042 View Post
    Please check if there is any chance, to write .py files on phone and use them as libraries.
    Yes, .py files written on the phone can be used as modules. An easy way to import them is to place them wherever you want and simply "tell" Python where to look for them:
    Code:
    #For example, mymodule.py is in C:\\Data
    import sys
    
    sys.path.append("C:\\Data")
    import mymodule

Page 1 of 2 12 LastLast

Similar Threads

  1. Problem in build with S60 1FP
    By Manuelito_ in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2007-09-18, 12:08
  2. How to set different TCP options when creating a socket
    By siddhartha84 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-03-23, 14:34
  3. problem in persistant socket connection
    By poms4symbian in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-03, 13:23
  4. Socket problem
    By defragger in forum Python
    Replies: 0
    Last Post: 2005-08-25, 08:16
  5. Creating connectionless socket using KSockRaw
    By sauerwald in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-03-20, 19:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved