Python for WEC2013?

Hello,
we want to embed a scripting language into our native C++ application for customer specific adaptions/extensions.
I already embedded
Lua, which was fairly easy to integrate and fulfills our requirements:
call a script function from c++
calling c++ functions from script
Our Boss wants us to evaluate
Python too, but i didn't find binaries for Windows Embedded Compact and compiling the sources for WEC2013 gives me a zillion compiler errors.
I found
PythonCE, but it looks rather inactive and i think i have to invest some time to build it for WEC2013.
So my question is: have anyone already embedded Python into a native C++ WEC2013 application and could give me some advice?

I'm using this Lightsabre app (v0.2) on my E72 and it works. (the image display on the E72 seems to be slight cropped on the edges, probably because the app is designed for phones with bigger resolution display though).  Didn't need to install Python for it to work (I hadn't installed Python on my cellphone when I installed that Lightsabre app that time).
(I forgot if I had to install the N95Accelerometer sensor API .sis installer or it's not needed, I recall I did try installing it though.)
http://graho.wordpress.com/2009/04/23/lightsabre-5th-edtion-v02/
However, I did try MarbleMaze (trial versions) and I think it didn't need Python either.
I installed the v1.70 which installed successfully, unfortunately, the marble ball doesn't move when I orient my phone (ball gets stuck in one corner of the screen, although moving my E72's optical pad sometimes "wiggles" the ball.
I also tried installing the v1.80 (for Nokia XM 5800), but I recall it didn't install or didn't run at all.
~~~~~
Granted, I did try installing Python 1.9.7 and could run the pre-included scripts. But other than the pre-installed ones, I haven't been able to run other "Python-required" apps (eg. Python apps like SlidEscape, CarMeter -- didn't seem to work even after I installed Python 1.9.7 on the E72).  Although, I don't know if I installed Python correctly in the first place. ;-)
Would appreciate help too.

Similar Messages

  • Problems installing Python for S60 v2.0

    When I try to install Python for S60 v2.0 (from the program update on the phone) I get this error:
    1 update could not be installed. Close some programs and try again.
    But I don't have any other open programs!
    I have Nokia N78
    Message Edited by Mikaelft on 21-Dec-2009 12:46 PM

    Python is not an app, it's an operating programme, like Flash or Java, you won't get an icon. By the way, why do you want Python ? I have it and it makes a novelty Beer programme fill screen then empty when tilted ! Only bothered with it because I have a mate who thought his fruit based product was the best thing since sliced bread, worry about Python if you find something you really want that requires it to work !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Python for s60 v 2.0.0

    https://garage.maemo.org/frs/?group_id=854
    Finally, there is a link, where you could download the new version.
    I have this question: Which of all files from v2.0, should I install on my phone, because I have message appear, when I try to install on Nokia E52 apps like: Light Sabre and MarableMaze, "Python For S60 is missing"?

    I'm using this Lightsabre app (v0.2) on my E72 and it works. (the image display on the E72 seems to be slight cropped on the edges, probably because the app is designed for phones with bigger resolution display though).  Didn't need to install Python for it to work (I hadn't installed Python on my cellphone when I installed that Lightsabre app that time).
    (I forgot if I had to install the N95Accelerometer sensor API .sis installer or it's not needed, I recall I did try installing it though.)
    http://graho.wordpress.com/2009/04/23/lightsabre-5th-edtion-v02/
    However, I did try MarbleMaze (trial versions) and I think it didn't need Python either.
    I installed the v1.70 which installed successfully, unfortunately, the marble ball doesn't move when I orient my phone (ball gets stuck in one corner of the screen, although moving my E72's optical pad sometimes "wiggles" the ball.
    I also tried installing the v1.80 (for Nokia XM 5800), but I recall it didn't install or didn't run at all.
    ~~~~~
    Granted, I did try installing Python 1.9.7 and could run the pre-included scripts. But other than the pre-installed ones, I haven't been able to run other "Python-required" apps (eg. Python apps like SlidEscape, CarMeter -- didn't seem to work even after I installed Python 1.9.7 on the E72).  Although, I don't know if I installed Python correctly in the first place. ;-)
    Would appreciate help too.

  • Python for Bash scripters

    I've been doing bash scripts for a while and wanted to start actual programming, so I chose Python.
    Are there any guides that make learning python easier if you know bash?

    I used, and still do use, The Python Phrasebook by Brad Dayley. I find it handy for when I forget how to do something simple. It is a fairly simple book and as others have mentioned, the online python docs are very nice. The library reference in particuar.

  • Allocating customer IOCTL codes for WEC2013

    When you add some functionality to the OAL that is provided by the OEMIoControl functions you have to assign IOCTL codes. These codes are shared for the whole KernelIoControl number circle.
    The pkfuncs.h tells us:
    // Kernel IOCTLs based on FILE_DEVICE_HAL -- last ID used is 90 (IOCTL_HAL_GET_POWER_DISPOSITION)
    // Note that function codes 0-2047 are reserved for Microsoft Corporation, and
    // 2048-4095 are reserved for customers..
    // Internal product teams are currently using values in the range of 1000-1100
    Now one would assume that 2048 is reserved for the developer of an OEM Adaption layer. But unfortunately Microsoft decided to use the codes 2048-2054 in the file
    platform\common\src\x86\inc\x86ioctl.h
    Is Microsoft it's own customer here? ;-)
    The more interesting question is: How can I allocate a range of numbers that can really be used for a custom OAL? Is there any reliable source that documents what is really free to use?

    Its pretty easy to search your BSP for "IOCTRL_" or the string "CTL_CODE(FILE_DEVICE_HAL," which is the macro used to define IOCTRL codes. This will give you all the BSP defined unique IOCTRL codes.
    You can also search the pubic directory the same way.
    Yes it's pretty easy to run the search at the current BSP implementation. And I found the IOCTL codes by incident at that location. But when I've released an SDK for my OS design and built applications for it, how I be sure that the next QFE won't add other
    IOCTL codes that overlap with my codes?
    As long as you follow the above rules you stated and do not use ones already defined at the BSP level you should be good to go.
    Can you elaborate on this? What are the rules? I've cited (not stated) that rules from pkfuncs.h and found that they have been violated. So what are the officiel rules when the comments in header files doesn't help?

  • Flyer - Open Source Python Framework for Flash Lite Developers

    I’m pround to announce the first release of Flyer.
    Flyer was built to extend Flash Lite features with Python for S60.
    Flyer is based on the Flash Lite 2.1 integration with Python
    for S60 and contains the following features:
    - Take photos with device camera from Flash Lite
    - Take device screenshots from Flash Lite
    - Send files over a bluetooth connection from Flash Lite
    - Get the contact entries in the default device database
    Future releases (May, 2007)
    - Sound recording and playback
    - File upload to a remote server
    - GPS module to display latitude, longitude, satellite count,
    and time
    - Record device screen
    Project Home
    Get Flyer Running on your
    mobile device

    Sorry Romu, but this against the CoC and [Terms of use|http://www.sun.com/termsofuse.jsp#g2_1] here.

  • Python S60 for Nokia E52 ?

    Hi all. I'm having this problem: Yesterday I Uninstall my Python S60 2.0 from my device from Application manager. I downloaded it before some days from SW Update direct from my phone, but now there isn't there. So I am wondering is there any place to download it or I don't need this application ?
    Solved!
    Go to Solution.

    GeorgiVasilev wrote:
    Why I need from Python application? And what should i download from your link? And also I downloaded v 2.0, but i cant'find it in the list below.
    1.9.7   2009-08-04 16:35
    OpenC_3_0_SDK_plugin.zip 17.58 MB 5,035 i386 .zip
    openssl-0.9.7f.tar 15.05 MB 1,943 i386 Source .zip
    pys60-1.9.7_src.zip 14.08 MB 6,844 i386 .zip
    Python_1.9.7_3rdFP1_SDK_with_OpenC.zip 14.99 MB 8,661 i386 .zip
    Python_1.9.7_3rdFP2_SDK_with_OpenC.zip 15.38 MB 10,159 i386 .zip
    PythonForS60_1.9.7_Setup.exe 13.04 MB 21,940 i386 Other
    PythonForS60_1.9.7.tar.gz 11.9 MB 9,416 i386 .gz
    PythonScriptShell_1.9.7_unsigned_devcert.sis 807 KB 17,576 i386 Other
    release_notes_1.9.7.txt
    Oke, try this: http://handheld.softpedia.com/progDownload/Python-for-S60-Download-63457.html
    You'll need the 1.4.5 S60 3rd edition.sis
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Does Something Like This Exist Already (for Window Managers)

    I know that one can use idesk to produce launchers for desktop programs in window managers like Openbox, but what about an actual small file manager, that always sits on the desktop, confined to its own little space.  Kind of like conky, if this makes sense. 
    I don't have a great deal of programming knowledge, just basics, but I've toyed with the idea of making a script to constantly reedit the idesk config file to do this, and while it could work, it's messy at best, and doesn't provide the same desired effect that a small desktop folder sitting on the WM desktop would.
    If this does exist, I give my apologies, but I did try to search Google for it, but got junk results.  Also, would something like this be feasible? (I am looking for a way to improve my programming skills over the summer, and was thinking that this could possibly be a way to do it.)  Even further, would it be acceptable to use Python for it?

    whoops wrote:
    Hi!
    I don't really get what you mean... the Desktop usually is a file manager, isn't it? I'm not sure if Thunar draws the desktop, but Nautilus can even be pretty bitchy if something else (like conky) wants to have a piece. I didn't care enough about rox and its "everything's a folder"-philosophy to take a really close look at it, but there was an option to have it provide a desktop, too, if I remember right. And rox sounded/looks a lot, as it would provide the most "normal filemanager" behaviour when providing the Desktop (didn't try though - maybe I will).
    http://img25.imageshack.us/img25/5576/shot0004bvb.jpg
    Did my best to try to elaborate by using an example there on a screenshot of my desktop. (A sloppy edit done in the GIMP)
    EDIT: What I would be looking for is something contained to that spot, so that way, if I were to right click inside of the rectangle, such as on a file, I would get options with what to open the file, or something else, even copy, cut, paste, or delete.  However, if I were to right click outside of the rectangle, I would get my openbox menu.  Hope this helps make more sense.
    Last edited by ntowakbh (2009-06-13 21:04:43)

  • How to install Python 2.0 on N97 mini?

    My Nokia N97 mini offers me to install Python for S60 2.0 . But the installation with  "Softwareaktualisierung"  fails .
    Unfortunately there's no information why the installation failed . Is there a log anywhere where I can get some more
    information?
    Or can I download Python 2.0 somewhere and install it manually?
    Note that I installed Python 1.9.7 manually on the phone - but the installations also fails after manually removing
    Python 1.9.7
    regards
    Bernd

    The later versions of Python have had issues installing. I'm using 1.4.5 without any problems.
    If I have helped you, please hit the star at the bottom of my posts - it's appreciated!
    Don't forget if your problem is solved to press the "Accept as Solution" button.

  • Mysql python snow leopard, won't compile

    I am trying to crack open python for web development.
    step one ... get some db connectivity going. MySQL, Postgres (i don't really care) i have both installed and working within another php project.
    when trying to build and install the MySQL driver (mySQL-python-1.2.3
    i am getting the following errors
    building '_mysql' extension
    creating build/temp.macosx-10.6-universal-2.6
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D_version_=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-universal-2.6/_mysql.o -g -Os -arch x86_64 -fno-common -DP1003_1BVISIBLE -DSIGNALWITH_VIOCLOSE -DSIGNALSDONT_BREAKREAD -DIGNORESIGHUPSIGQUIT -DDONTDECLARE_CXA_PUREVIRTUAL
    In file included from _mysql.c:36:
    /usr/local/mysql/include/my_config.h:1053:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Pyth on.h:8,
    from pymemcompat.h:10,
    from _mysql.c:29:
    /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pycon fig.h:803:1: warning: this is the location of the previous definition
    gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup build/temp.macosx-10.6-universal-2.6/_mysql.o -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm -lmygcc -o build/lib.macosx-10.6-universal-2.6/_mysql.so -arch x86_64
    10.6.4, python 2.65, most recent developer tools installed
    system was originally set up with 10.5 and upgraded to 10.6
    i have looked a hundred post on this issue and coming up dry.

    Post to the Unix or developer forums under OS X Technologies.

  • Mysql python snow leopard, won't compile - warning: "HAVE_WCSCOLL" redefine

    I am trying to crack open python for web development.
    step one ... get some db connectivity going. MySQL, Postgres (i don't really care) i have both installed and working within another php project.
    when trying to build and install the MySQL driver (mySQL-python-1.2.3
    i am getting the following errors
    building '_mysql' extension
    creating build/temp.macosx-10.6-universal-2.6
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D_version_=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-universal-2.6/_mysql.o -g -Os -arch x86_64 -fno-common -DP1003_1BVISIBLE -DSIGNALWITH_VIOCLOSE -DSIGNALSDONT_BREAKREAD -DIGNORESIGHUPSIGQUIT -DDONTDECLARE_CXA_PUREVIRTUAL
    In file included from _mysql.c:36:
    /usr/local/mysql/include/my_config.h:1053:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Pyth on.h:8,
    from pymemcompat.h:10,
    from _mysql.c:29:
    /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pycon fig.h:803:1: warning: this is the location of the previous definition
    gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup build/temp.macosx-10.6-universal-2.6/_mysql.o -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm -lmygcc -o build/lib.macosx-10.6-universal-2.6/_mysql.so -arch x86_64
    10.6.4, python 2.65, most recent developer tools installed
    system was originally set up with 10.5 and upgraded to 10.6
    i have looked a hundred post on this issue and coming up dry.

    Post to the Unix or developer forums under OS X Technologies.

  • Has anyone got Python to work on the N96???

    Has anyone got Python to wok on the N96?
    I have downloaded and installed the latest edition 3rd 1.4.4 i think. it goes on the phone without any problems.
    However when trying to use app that use python specifically pyPiow at the moment the app goes on the phone but nothing happens when i try to open it!
    is it somthing i am doing wrong, where go i install the pictures, or the apps for that matter, can the apps go on the mass memory where they are now or do they have to go on the very small phone memory?!
    does current python work at all on the n96
    has anyone had any joy?
    please help!
    cheers

    I managed to get it to work, you have to install two files
    the first for the actual python script files.
    the second for the user interface.
    you might have installed the user interface, but without installing python, and that's why its not loading up the application, also make sure you install python to phone memory.
    On my N96 I installed:
    Python for S60 1.4.4
    Python script shell 1.4.4
    if you get an 'update error' when installing its because you have not un-installed all of the old python stuff, open app manager on the handset and un-install all python relating files
    one last thing, install python and the shell to the phone memory (c drive)
    Hope it helps
    Tony

  • How do I get a license for Window Embedded CE 6.0 Platform Builder?

    I downloaded the Windows Embedded CE 6.0 Platform Builder for Visual Studio 2005, but the trial license is no longer available. How do I go about getting a license for this product? How much is it?

    We purchase our platform builder and run time licenses from MDS Pacific, they cover the India, South East Asia and Oceania regions.
    The cost is around US$1300 (from what I remember) for platform builder, this includes a copy of Visual Studio (at least it does for WEC2013).
    The cost for the run time license that needs to go with the devices you produce is around US$5 per license, but this very much depends on the quantity you are producing and the OS components that you are using.
    If you are not in any of these regions, there is a company called Bsquare who operate in the US and Europe and other parts of Asia.

  • How to specify PACKAGE SIZE for to RFC_READ_TABLE from PyRFC?

    I'm trying to use PyRFC to extract large tables via RFC_READ_TABLE (due to an uncooperative/unsupportive basis team).
    I know that RFC_READ_TABLE supports calling it with PACKAGE SIZE since ERPConnect does it by default.
    In Python for Basis (Part 1), I learned how to specify an Open SQL where clause using the OPTIONS:
    result = connector.call('RFC_READ_TABLE',
                           QUERY_TABLE=tablename,
                           DELIMITER=delimiter,
                           OPTIONS = [{'TEXT':where_clause}])
    Is there a way, and how to specify PACKAGE SIZE in this case?
    Thanks

    Hi,
    the package size works, but you need to call the function module multiple times in a loop. Here's an excerpt of the attached script:
    recordcounter = 1          #needs to be >0 to get the while loop going
    iteration = 0              #the number of times the function module got called
    while recordcounter > 0:  #as long as the function module calll returns rows...
        tempresult = self.call('RFC_READ_TABLE',             
                                ROWSKIPS=iteration*fetchsize,  #defines the number of rows to skip
                                **parameters)
        iteration=iteration+1  #increase the iteration
        data = tempresult['DATA']    #assign the returned rows to a variable
        if len(data) > 0:      #have there been any rows?
            for row in data:      #Do something with them
        else:
            recordcounter=0    #set recordcounter to 0 to end the while loop.
    The script is far away from being perfect. It doesn't deal with RAW fields and the data types it returns are all strings. It does what I needed it to do but it may not be sufficient for what you may be trying to achieve.
    Best regards
    Lars

  • Using Vim as a Python IDE?

    I am only just trying to learn Python. Presently using IDLE, but I prefer to edit with Vim. There is a lot of info around on using Vim with Python, but basically all I want to do at the moment is write a bit of test code and then run it through the Python interpreter and get back into Vim after seeing the error messages (;-)) ...I have just been doing a ":!/usr/bin/python %" for that.
    Can anyone suggest a more useful Vim addon IDE that is not too convoluted or complicated?

    what I used to do was to have a python session running inside screen and mapped some keys to send a selected region to the interpreter. (I took it from some web page, can't remember where.)
    I have something like this in my .vimrc:
    function Send_to_Screen(text)
    if !exists("g:screen_sessionname") || !exists("g:screen_windowname")
    call Screen_Vars()
    end
    echo system("screen -S " . g:screen_sessionname . " -p " . g:screen_windowname . " -X s\
    tuff '" . substitute(a:text, "'", "'\\\\''", 'g') . "'")
    endfunction
    function Screen_Session_Names(A,L,P)
    return system("screen -ls | awk '/Attached/ {print $1}'")
    endfunction
    function Screen_Vars()
    if !exists("g:screen_sessionname") || !exists("g:screen_windowname")
    let g:screen_sessionname = ""
    let g:screen_windowname = "0"
    end
    let g:screen_sessionname = input("session name: ", "", "custom,Screen_Session_Names")
    let g:screen_windowname = input("window name: ", g:screen_windowname)
    endfunction
    "common send to screen functions
    vmap <C-c><C-c> "ry :call Send_to_Screen(@r)<CR>
    nmap <C-c>v :call Screen_Vars()<CR>
    "python : insert tags and send fns
    nmap <C-i><C-p> i#{<CR>#}
    nmap <C-c><C-p> ml?#{<CR>jv/#}<CR>k<C-c><C-c>`l
    as you can see <C-i><C-p> would insert a couple of tags #{ #} then you write the code in between and, then doing <C-c><C-p> would send everything between the #{ ... #} to python. Very useful when you want to test just some pieces of code, instead if the whole file.

Maybe you are looking for

  • 9.2 / Printing to non-supported printers

    Hey guys... I've started using my iBook G3 (os 9.2.2) to type papers in Appleworks 5. (Not as many distractions!) But I have encountered a problem, my printer is not supported by OS 9 and to my knowledge, no OS 9 drivers exist for it. It is a Canon P

  • Lighroom crashes every time I try to email

    I am using Windows 7 64 bit, lightroom 5.3 and I suspect that this problem has started since I installed Outlook 2013.  I have tried reinstalling lightroom and even deleting the preference file with no success.  I have noticed that other people are h

  • WD ABAP: How to get the contents of selected table lines?

    Hi, I'm trying to figure out how to get the contents of table lines back from the UI. I display a table with several lines of data. The user selects some rows. I want to move the contents of the selected rows to another table. I have a context attrib

  • Contribute for multiple users

    If I have a content expert in Wis. and a content expert in Calif., do the two need anything else other than the Contribute software on their computers? I'm redesigning the site and have decided on Contribute vs. a costly CMS. Thanks.

  • I need to temporarily transfer everything from my G5 to a PowerBook

    I've got all my apps, files, etc etc on my G5 and have for a couple of years now. This next week I'm going on a fairly long business trip and will be renting a PowerBook for the time I'm gone. Ideally I'd like an exact duplicate of what's on my G5 as