×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    4

    Installing NokiaCV_PyS60_2_0 on N8?

    Hi,

    I hope people are still reading this forum, as I have no other idea where to address questions related to pys60

    I was very excited when I googled "opencv pys60" and this came out: https://projects.forum.nokia.com/pysymbian/wiki/NokiaCv

    As I own N8 with PyS60 2.0, I downloaded https://projects.forum.nokia.com/pys..._PyS60_2_0.zip.
    It contains these files:

    Code:
    NokiaCV_PyS60_2_0\PyMeLib\PyMeLib.py
    NokiaCV_PyS60_2_0\PyMeLib\kf__PyMeLib.pyd
    NokiaCV_PyS60_2_0\PyMeLib\module_config.cfg
    NokiaCV_PyS60_2_0\PyNcvLib\PyNcvLib.py
    NokiaCV_PyS60_2_0\PyNcvLib\kf__PyNcvLib.pyd
    NokiaCV_PyS60_2_0\PyNcvLib\module_config.cfg
    where for example loader PyMeLib.py has this content:

    Code:
    import e32
    
    if e32.s60_version_info>=(3,0):
        import imp
        _PyMeLib=imp.load_dynamic('_PyMeLib', 'c:\\sys\\bin\\_PyMeLib.pyd')
    else:
        import _PyMeLib
    
    del e32, imp #remove unnecessary names from namespace
    
    from _PyMeLib import *
    First I copied "kf__PyMeLib.pyd" on my phone to "e:\Python\libs\_PyMeLib.pyd" and corrected above loader script to reflect the change, then copied the loader script in the same folder. I got:

    ImportError: dlopen: Load failed
    I tried various similar approaches until I brute copied both ".pyd" libraries to "c:\sys\bin", but I'm still unable to import and get same error.

    FYI, I installed "NcvLib-1.0_0" and "melib-1.0_0" SISX archives.

    As there are no instructions how to use these libraries I thought to ask here.

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Installing NokiaCV_PyS60_2_0 on N8?

    \sys\bin is the only folder where Symbian stores binary executable code like .exe-s and .dll-s. .pyd is actually a .dll, storing such files anywhere else can not work.
    It is also a protected folder, so files can not be copied there, they can be installed only. The .sis/x files are the installers. The page you are linking to states "Then you have to use the "PyS60 Application Packager" (Ensymble) from PyS60 2.0 to package your script(s)" exactly for this reason.

  3. #3
    Registered User
    Join Date
    Dec 2013
    Posts
    4

    Re: Installing NokiaCV_PyS60_2_0 on N8?

    Thanks for your reply.

    I thought that I can load python dll from arbitrary location, like I can on Windows...
    I tried to use "ensymble.py" tool (I never had used it), with Python 2.5.4:

    Code:
    C:\PythonForS60>c:\python25\python.exe ensymble.py py2sis c:\PythonForS60\module-repo\dev-modules\PyNcvLib\PyNcvLib.py
    ensymble.py: [Error 32] The process cannot access the file because it is being used by another process: 'c:\\PythonForS60\\module-repo\\dev-modules\\PyNcvLib\\PyNcvLib_045634\\lib.zip'
    Is this a noob overlook, or maybe something else?

  4. #4
    Registered User
    Join Date
    Dec 2013
    Posts
    4

    Re: Installing NokiaCV_PyS60_2_0 on N8?

    If I rename "kf__PyNcvLib.pyd" to "_PyNcvLib.pyd", ensymble.py is able to generate .sis file.
    After installing this .sis file, I'm unable again to load the module and noticed that there is no "_PyNcvLib.pyd" file in "c:\sys\bin", but there is "kf__PyNcvLib.pyd" in "e:\sys\bin", which again can't be loaded.

    I just wish I manage something in near future, as I don't like the idea to downgrade to pys60 1.4.5 to be able to use this module.

  5. #5
    Registered User
    Join Date
    Dec 2013
    Posts
    4

    Re: Installing NokiaCV_PyS60_2_0 on N8?

    Next, I made this filesystem structure:

    Code:
    c:\PythonForS60\module-repo\dev-modules\PyNcvLib\sys\bin\_PyNcvLib.pyd
    c:\PythonForS60\module-repo\dev-modules\PyNcvLib\resourse\PyNcvLib.py
    and used this command to build the package:

    Code:
    C:\PythonForS60>c:\Python25\python.exe ensymble.py simplesis c:\PythonForS60\module-repo\dev-modules\PyNcvLib --drive=C
    Contents in produced .sis file seems "identical" to the one provided for pys60 1.4.5: https://research.nokia.com/page/647 inspected with SISContents utility.

    I installed the package and I got "_PyNcvLib.pyd" in "c:\sys\bin", but again unable to import it.
    I changed my Python shell from high capacity to "Self-signed + Location capability" shell, as suggested on some of the threads here, but I can't still import this library.

    I mean, developer could have bothered to write two line text file how to install these packages, as if I use Python, I guess I don't have to learn Symbian OS and C++ build chain to be able to use Python library.

    Here is my "PyMeLib_v1_0_0.sis" file in case there is someone who can help (UUEncoded as I can't see how to attach file on this forum, and can be decoded easily with WinRAR or else):

    Code:
    begin 644 PyMeLib_v1_0_0.sis
    M>AH@$`````!/!3WF)C'!^@P```"4$0``(@````(````^XP``(P````(```#>
    M%P```P```/D#```!````Q`4```````!XVN-E8&#8P\K`P`>D9P$Q)Q"S`+$_
    MJ^TS1B`M`,2N#'D,Q0R5#+D,20PY#*D,3$`Q"2`&R8/T!0#E?('B/@R90!4,
    M*/+8](/,YX'*PP`'5`\;U/Z[[-SR[$":&22F8PY6(P#5QP15HPC$_$`L`A4#
    MR7%#Y4!F"P)Q!50N!8B%@#@&R8^)E?("K%#],#<A`Y`^':A92D`<#'1[$="/
    MJ4#?F#$8`/U=Q)`/-+F4(9FAA,&3P07);2"[A-'<"[)'!HAM&"%B,HP0/S=`
    M[0#9Y<Q@!71C$=B.?*#)14"S4X$BJ&&LQU``Y,/"3Q*(%:!FJ$+M^:UR;KT#
    MSZF)'.QI(@_$(M>GK5K.#5/OP`*A+W$@_#H!JE\/[@90C!4#Z22@C7E`.AZK
    M&U*0XE$3ZD^&!YQ8W60L9+1K"JN[]<D_RR6YEHFR733Q/@O3^Q#J%AY!",V(
    M%&Z\2&PI(%8'XC],$+$30*P"Q`>`6`V(#:!Z-8#8$.A&(R"V8#`!BNL!^88,
    MQ@RF0)XEF`?!IF#W@>)`SN",3=SND_/+'<_M>GW!Z/B&ST[G;LVNYW2W3]:+
    MB<O4O=[,RK*5M?V?P*5K02:UI3;:3#>K?MBI&;Q\RW'-:*M_!M^S!>MV[<YL
    M?/G#/_D6QT*!C&GZ#],_?IFP>!?#NCE<V@>$=&JY9E8*G3YT(&WI,S'3]='K
    M!:8'V7MUO+<1FG=@0;.\&,@O3)#PD@'2!DU,$@9-C(T+F)D8F9@X&59L4GEI
    MW-.4;L#+QJG5YM'VG9>1D965P4#84-"`GXTYE(59F,,UK[@R-RDGU4!.G-?`
    MS,#2R-30PLC0P"1*G-<8F8M=4^-\9+,961F8&WL9#!H[F1H;&1977]G9J[.F
    MKRYLY[-7TB^O!;`8YZV;6WQ.[^N+.Y..>]GQ;-WR:UJ_D9:3)"]OW)G5%^SG
    M7U_&W3G]U:4'N5:W;*LT/M<$-/>5;.]I.K6F:\F7+=<O^@5W);2LE-3Y)&ZW
    M8JWD2C_^S4\J:J<QOJC9H'K61_>5@)?IE?\Z74_O*7W<<8&QKY*)F9&!<7&)
    M09&!+-#9LGPL8BPB"TP76=WEW"&3D=@PTVI%I6^<R7]N`V>0M#*+C8%5`U8%
    M"\67B&+U?A-2$/.`#!%F835@9F3\CQ;@S,#0Z/K6=(KY!5_.)L_)&VQ#_DZI
    M#UTOU'__K5DWNY*QK-5BJU5;\^:M^;&N<M7.G[QGYME;!=Y,GL18<3CTU#()
    MP^].P27'A/\P3X_BX-\;(WS:Q,DK_$S;(WNF#$T6DW]'9?UNEZ5I."US>+*Z
    M649I_^V-4W+>?;EZ?-X>Y="XR:&U-G.M'`\%:L#R&A```#Z935D````>````
    M<`T```(```!H#0``'P```&`-```"````6`T``"````!4!````P```$P$```!
    M````T@@```````!XVK55\8OB.!3^W;_BL7,PH_34W85EF6..JS5JH+9>6L<5
    MA*&V<29<;22I#O[W^UY:&6>/XSBX%;0Q>?F^[WUY?;FY&?0>_J]/Y^8&`GTX
    M&_7\4L-=WH5/P^%7#R+]E\IPQ1RTR6JE*\BJ8J`-J-J"/6ZM*E1FSG>_*FF[
    M?4+QRQ(<B@4CK30G6=`\+0E9*%L;M3U>D.!H):@*K#Z:7+J9K:H0$';:[*T'
    MKZI^`:2CIS[6A++7A=JIW*GQ(#,2#M+L55W+`@Y&GU2!@_HEJ_%'(DY9ZE=5
    M/4.NJT+1)NLV[65]3W#TI4_O!WD6].ZB*]<%;CC:&E.J,]1+R-E6GVBI->V"
    M`U#I6N72PR!E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W53Q68%!AFA45X7"5,.ANC42Z
    MGFGK7!)5_`_@&_(>8'Y4BVNTKFK=L765&WPNORO@,EV5KBI7M2OHJG75NUQE
    M[C)/V639RV67RNHW-FX,;6S:.+TQMFEHT_`FGSOD[G/'W$/N8?>H>]H]X^[\
    MM*?<*/>55Y<;ND\W]4H]J-?J(;U);];;](@>U?OTF#ZJC^EQ_:)N>'U>OS?@
    8-;V5WBIOM3?HK?76>QN]_P$@"@Q;````
    `
    end
    sum -r/size 41505/4524

Similar Threads

  1. Installing Qt on xp
    By sukumark123 in forum [Archived] Qt SDKs and Tools
    Replies: 5
    Last Post: 2010-09-07, 05:49
  2. Installing the MWS GW..
    By teflondepa in forum Mobile Web Server
    Replies: 0
    Last Post: 2008-07-22, 08:49
  3. Replies: 7
    Last Post: 2006-11-10, 08:29
  4. can somebody help me through on installing d sdk
    By ravin_22 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-04-19, 18:52
  5. Installing mdl
    By tom_mathews in forum Symbian
    Replies: 1
    Last Post: 2003-04-11, 07:30

Posting Permissions

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