Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User y.a.k's Avatar
    Join Date
    Jun 2005
    Posts
    386
    Hello everyone,

    first of all, welcome again. I know I have been silent for a long time but I'm back, sort of. I got a job right now which requires me to write an application using a mixture of Python and C++.

    But anyway, since I updated to Python 2.6 on my PC long time ago that's what I wanted to use with Ensymble. Unfortunately there's no 2.6 compatible version on the site so I attempted to build one myself but due to some changes in Python 2.6, it didn't work. Fortunately I came with a different solution.

    So, here it is, for those of you who don't want to downgrade to Python 2.5 to use Ensymble.

    First, get the source of Ensymble (.tar.gz) from here and unpack it somewhere. Now, create this directory structure:

    Code:
    ensymble.py
    ensymble/
        __init__.py
        <all ensymble files>
    Besides the Ensymble source files, there are two additional. The "__init__.py" is empty, it's there to let Python threat the "ensymble" directory as a package.

    The top level "ensymble.py" file is the one which you will start to use Ensymble. The contents are:
    Code:
    import warnings
    warnings.simplefilter('ignore', DeprecationWarning)
    from ensymble.cmdmain import main
    main()
    That's it. No changes in the Ensymble sources are required. This will work fine as it's the squeezing process that causes problems on Python 2.6.

    The file does one more thing, it hides the deprecation warning caused by the fact that Ensymble imports the "sha" module which has been deprecated since 2.5 in favor of "hashlib" module.

    Cheers,
    yak

    BTW. Happy New Year to everyone. A bit late but whatever...

  2. #2
    Nokia Developer Champion marcelobarrosalmeida's Avatar
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    752
    Welcome back yak ! And with interesting tips !

Similar Threads

  1. Replies: 8
    Last Post: 2011-03-15, 03:36
  2. Python for S60 1.9.7 released
    By tvijayan in forum Python
    Replies: 42
    Last Post: 2009-11-27, 14:32
  3. Please help installing Python libraries on S60
    By ericroijen in forum Python
    Replies: 11
    Last Post: 2009-07-18, 10:43
  4. Replies: 5
    Last Post: 2009-07-02, 07:46
  5. Python for S60 1.9.0 released
    By tvijayan in forum Python
    Replies: 48
    Last Post: 2009-01-27, 15:39

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