×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176

    Non-recoverable failure in name resolution

    Hi everyone,

    Trying to use network functions, but when I try to use the data connection, Python throws me this error:
    Code:
    gaierror: (4, 'Non-recoverable failure in name resolution')
    this happens if I try to run, for example:
    Code:
    s=imaplib.IMAP4_SSL('imap.gmail.com')
    OR
    urllib.urlopen('http://www.bbc.co.uk')
    anybody know what the above error means? If I use wlan instead on my mobile, there is no error.
    I signed python shell with full capabilities.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Non-recoverable failure in name resolution

    hello the86hitman

    if its working on the wlan then may be the problem with your service provider. why don't you check after some time.

    Regards
    Gaba88

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176

    Re: Non-recoverable failure in name resolution

    thank you for your suggestion, but no the network is fine. I am able to browse the internet without any problems using S60 browser with data connection.
    It just seems that Python shell refuses to connect via data connection.

    Code:
    >>> import imaplib
    >>> s=imaplib.IMAP4_SSL('imap.gmail.com')
    Traceback (most recent call last):
     File "<console>", line 1, in <module>
     File "scriptshell_dir_164113\imaplib.py", line 1128, in __init__
     File "scriptshell_dir_164113\imaplib.py", line 163, in __init__
     File "scriptshell_dir_164113\imaplib.py", line 1140, in open
     File "<string>", line 1, in connect
    gaierror: (4, 'Non-recoverable failure in name resolution')

  4. #4
    Nokia Developer Expert
    Join Date
    Apr 2007
    Posts
    131

    Re: Non-recoverable failure in name resolution

    I did not find any issue in executing the code. Which PyS60 version did you try with and on which device ?
    I tried with PyS60 1.9.6 on E71.

    Also, did you install the ssl SIS available with the PyS60 installer ?

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    9

    Re: Non-recoverable failure in name resolution

    I have the same problem and there's evidence that it has nothing to do with the network operator. I use "smart connect" which sets up a dummy packet data connection. It is through this packet data connection that it will connect to wifi if available, otherwise it connects to the cellular network data. Anyway, as the86hitman said, I can connect directly through my wifi access point just fine, but if I select the dummy packet data connection (which goes to wifi anyway) I get the non-recoverable failure in name resolution. Python 1.9.7 N82 firmware 3 with SSL installed.

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

    Re: Non-recoverable failure in name resolution

    I've seen this error note, when my SIS was missing "NetworkServices" capability. No problems with emulator shell script, so don't know what could be the problem there...

    Just a comment,

    --jouni

  7. #7
    Registered User
    Join Date
    Aug 2009
    Posts
    9

    Re: Non-recoverable failure in name resolution

    That did it -- thanks. I signed the python script shell with all capabilities including network services.

Similar Threads

  1. Stop Switching from Portrait to Landscape mode
    By Ashish Gupta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-06-30, 10:04
  2. Java Games Screen Resolution
    By edwin756 in forum Mobile Java Games
    Replies: 4
    Last Post: 2008-10-31, 06:29
  3. Actual Resolution 3rd
    By Rozik in forum Symbian
    Replies: 3
    Last Post: 2007-04-12, 18:52
  4. Retrieving Camera Resolution programatically
    By sourabhs in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-04-21, 08: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
  •  
×