Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009

    PyS60 LookupError:unknown encoding idna after packaging script


    I wrapped up a python script using the PyS60 application packager. When i ran the packaged application, it shows an error upon trying to send the data to a server:

    Traceback (most recent call last):
     File "default.py", line 19, in send_core_file
      sock.connect((ip, 9000))
     File "<string>", line 1, in connect
    LookupError: unknown encoding: idna
    Before packaging up the script, things were fine when I ran it using the python script shell on the phone. I've googled and found that a non-S60 packager (python-win32) also has this problem with importing the encodings modules. How do we include the encodings modules into the pyS60 application packager? Is the following syntax correct? Or was there anything I can do? Please advise. Thanks in advance.

    ensymble.py py2sis my_script.py ......  --extra-modules=encodings\idna.py
    Last edited by gigasai; 2009-12-09 at 06:09.

  2. #2
    Super Contributor
    Join Date
    Nov 2007

    Re: PyS60 LookupError:unknown encoding idna after packaging script

    Quote Originally Posted by gigasai View Post
    LookupError: unknown encoding: idna
    Hi Gigasan

    It seems a DNS resolution error. Are the site and connection point the same used during tests (shell) ? Same enconding as well ?

Similar Threads

  1. How do we run pys60 script in linux?
    By projectblum in forum Symbian
    Replies: 2
    Last Post: 2009-07-13, 14:27
  2. Packaging problem using pys60 1.9.4
    By shery_ashraf in forum Symbian
    Replies: 4
    Last Post: 2009-06-30, 15:13
  3. New to Python for S60 (PyS60)? Read this first!
    By croozeus in forum Nokia N9
    Replies: 2
    Last Post: 2008-10-17, 19:23
  4. Can we launch a sis in pys60 script
    By chycai in forum Symbian
    Replies: 1
    Last Post: 2008-02-21, 11:42
  5. How do I send mail from a Pys60 script?
    By neoPython in forum Symbian
    Replies: 3
    Last Post: 2006-12-17, 07:59

Posting Permissions

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