×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    How to backport unicodedata.normalize()

    Greetings,

    Has anyone got pylint working in PC? I got over few problems, but got stuck at this error message:

    c:\Symbian\9.1\S60_3rd_MR\Epoc32\winscw\c\python>c:\Python22\Scripts\pylint.bat test.py
    Traceback (most recent call last):
    File "c:\Python22\Scripts\pylint.bat", line 11, in ?
    from pylint import lint
    File "c:\Python22\Lib\site-packages\pylint\lint.py", line 31, in ?
    from pylint.checkers import utils
    File "c:\Python22\Lib\site-packages\pylint\checkers\__init__.py", line 40, in ?
    from logilab.astng.utils import ASTWalker
    File "c:\Python22\Lib\site-packages\logilab\astng\__init__.py", line 246, in ?
    from logilab.astng.manager import ASTNGManager, Project, Package
    File "c:\python22\lib\site-packages\logilab\astng\manager.py", line 37, in ?
    from logilab.common.configuration import OptionsProviderMixIn
    File "c:\Python22\Lib\site-packages\logilab\common\configuration.py", line 85, in ?
    from logilab.common.textutils import normalize_text, unquote
    File "c:\Python22\Lib\site-packages\logilab\common\textutils.py", line 48, in ?
    from unicodedata import normalize as _uninormalize
    ImportError: cannot import name normalize
    Generic python manual says:

    4.10 unicodedata -- Unicode Database
    normalize(form, unistr)
    New in version 2.3
    Any ideas how to get past this error? Any other ideas how to make pylint functional with python 2.2.2? I mean anything besides installing python 2.3, of course. It seems like jump from 2.2 -> 2.3 was quite big. Wish that Nokia team would upgrade PyS60 at some point.

    Cheers,

    --jouni

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: How to backport unicodedata.normalize()

    Quote Originally Posted by JOM View Post
    Any ideas how to get past this error? Any other ideas how to make pylint functional with python 2.2.2? I mean anything besides installing python 2.3, of course. It seems like jump from 2.2 -> 2.3 was quite big. Wish that Nokia team would upgrade PyS60 at some point.
    If you run pylint on PC you can just use newer Python, right? What's the problem?
    Mikko Ohtamaa

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

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: How to backport unicodedata.normalize()

    Quote Originally Posted by miohtama View Post
    If you run pylint on PC you can just use newer Python, right? What's the problem?
    Well,

    You are right. I just have to install python 2.5 and that's it. No problem!

    Thanx,

    --jouni

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: How to backport unicodedata.normalize()

    Installed python 2.5.2 and pylint (with dependencies). The result of my next script release was:

    Your code has been rated at -4.13/10
    It's not too visible, but that's MINUS 4.13 out of 10. The release will be just a little bit delayed

    --jouni looking at figleaf next

Posting Permissions

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