| Reply | « Previous Thread | Next Thread » |
|
How to import pyd lib ?
I add this code Quote:
Code:
Symbian Error: [Errno -1] KErrNotFound |
|
SOME BODY HELP ME ?
Or say how i can put pyd file to SYS folder ? |
|
Quote:
If not then I think it doesn't work ![]() First this module has appswitch name instead of _appswitch Secondly you can put it in the c:\sys\bin folder and try this Code:
appswitch=imp.load_dynamic('appswitch', 'c:\\sys\\bin\\appswitch.pyd')
pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
How to put ??? I can't! They says Unable Install (if i sign via devcert or selfsign)
You author of Keypress ??? can you recompile and send me your keypress module ?
Last edited by Santehnik : 2006-08-07 at 13:24.
|
|
All native binaries (such as .pyd files) on 3rd edition must be in \sys\bin directory and the only way to install files there is by packaging it in a SIS file.
In addition, 3rd edition is binary incompatible with previous platform versions so all .pyd's must be at least recompiled. Other changes may also be necessary because of API changes that have occurred. |
|
cyke64
Can you recompile your keypress module to S60 3RD edition and send me ? My Email Santehnik at mabila.ua plz thx |
|
Quote:
![]() But someone can compile it and make some changes ( if needed for 3rd compatibility ) to my source code keypress then it'll allow to all 3rd phones to run it ![]() pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/
Last edited by cyke64 : 2006-08-08 at 15:48.
Reason: forgot link :(
|
|
Hi,
I have compiled keypress module for 3rd edition. Can anyone explain me how I could make it working on winscw emulator. I tried by copying the .pyd files to winscw\c\sys\bin and copying key_modifiers file to resource folder. But I get an error as no module found when I import keypress. I tried it on the phone also but I got the same error. Any help... br, lakhsy |
|
Hi lakhsy,
So if you have compiled in the 3rd edition SDK you probably typed : your_project_folder\abld build winscw udeb Let say that you named your dll _keypress.pyd. Then you copied it in winscw\c\sys\bin which is correct. Now in ressource folder you'll create a keypress.py file and you put inside: Code:
import e32
if e32.s60_version_info>=(3,0):
import imp
_keypress = imp.load_dynamic('_keypress', 'c:\\sys\\bin\\_keypress.pyd')
else:
import _keypress
del e32, imp #remove unnecessary names from namespace
from _keypress import *
del _keypress
After from your python script you load the module like before: Code:
import keypress ![]() LFD |
|
Hi,
Thank you, I followed the steps which you have explained below. Installtion of the sis package on the phone was ok. But when I tried to load the dll (import keypress) I got an error as "SymbianError [Error: -46] KErrPermissionDenied." Then I compiled the source code of the python for S60 for 3rd edition. I have created Python_For_symbianos.sis, Python_for_s60.sis package using my keys and certicate. I was able to import keypress when I type it for the second time in the console. when I try to load it for the first time I am getting an error as "SystemError _PyImport_ Fix up extension: Module keypress not loaded" Has anyone tried this or found such type of error. Any help please... Thank You, Br, Lakhsy |
|
Have you changed the internal module name in the keypress module source?
The 2nd ed source says: Code:
m = Py_InitModule("KeyPress", (PyMethodDef*)keypress_methods);
|
|
True! I forgot to mention it
![]() Sorry... ![]() |
|
Hi,
Thank You, Finally I got it working. I will place the sis file soon when its in good shape. I have a question. I would like to know if its possible to capture a screenshot automatically when the screen changes? If yes can anyone please briefly explain me what events I need to use to make it happen. It would really be a great help. br, Lakhsy |
|
Hi,
Sorry for not attaching the sis file becuase Iam still struggling with it to make it working. Now Iam able to import the keypress dll but when I try to access the method as keypress.sumulate_key. It gives me an error as Attribute Error: Module object has no attribute simulate_key. Can anyone help me to solve this problem. Thank You, br, Lakhsy |
|
Hi lakhsy,
Please post your source that someone can check it. LFD |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| status pane in E61 screen (320x240 ) s603rd | francobellu | General Symbian C++ | 2 | 2008-07-10 13:48 |
| Help! I get failed to link my LIB project to GCCE urel | chunhsiao | Symbian Tools & SDKs | 3 | 2006-09-30 12:10 |
| S60 3rd ed: Creating LIB file for target installation | jrantam | General Symbian C++ | 10 | 2006-02-13 12:49 |
| VC++ - Perl lib version conflict | relliott98 | Symbian Tools & SDKs | 2 | 2005-06-28 11:15 |
| Shared lib and threads | leoang | General Symbian C++ | 1 | 2005-03-23 20:59 |