Discussion Board

Results 1 to 2 of 2

Thread: Import error

  1. #1
    Registered User
    Join Date
    May 2009

    Import error

    I got one sample python script. I try to run it in Emulator, but I got one error "importerror no module named mimetypes". I want to know how to this error.


  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Deva, Romania

    Re: Import error

    I take it you tried with PyS60 1.4.5. It works on 1.9.5 so use that version if possible.

    If you really have to use 1.4.5 you can download the Python 2.2.2 files from here. There you will find mimetypes.py and posixpath.py. Copy them to your phone or emulator's installation directory and tell PyS60 where to look for them:
    #Let's say you put them in C:\Python
    import sys
    import mimetypes
    Last edited by bogdan.galiceanu; 2009-05-28 at 15:52.

Similar Threads

  1. error LNK2019: unresolved external symbol ???
    By wgarnett in forum Symbian
    Replies: 3
    Last Post: 2009-09-28, 06:53
  2. Error in buliding a j2me project
    By siyamudheen in forum Bluetooth Technology
    Replies: 3
    Last Post: 2009-05-11, 06:28
  3. please help cell id
    By perthachy in forum Symbian
    Replies: 12
    Last Post: 2007-07-10, 13:14
  4. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  5. error LNK2001: Please Help
    By sourish_khan in forum Symbian
    Replies: 9
    Last Post: 2006-04-19, 11:16

Posting Permissions

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