You Are Here:

Community: Developer Discussion Boards

#1 Old Non-recoverable failure in name resolution - 2009-07-03, 16:45

Join Date: Sep 2008
Posts: 175
Location: London, UK
the86hitman's Avatar
the86hitman
Offline
Regular Contributor
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.
Reply With Quote

#2 Old Re: Non-recoverable failure in name resolution - 2009-07-03, 17:13

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
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


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: Non-recoverable failure in name resolution - 2009-07-03, 17:32

Join Date: Sep 2008
Posts: 175
Location: London, UK
the86hitman's Avatar
the86hitman
Offline
Regular Contributor
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')
Reply With Quote

#4 Old Re: Non-recoverable failure in name resolution - 2009-07-04, 18:32

Join Date: Apr 2007
Posts: 131
mahesh.sayibabu's Avatar
mahesh.sayibabu
Offline
Regular Contributor
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 ?
Reply With Quote

#5 Old Re: Non-recoverable failure in name resolution - 2009-08-25, 06:25

Join Date: Aug 2009
Posts: 9
skyw33
Offline
Registered User
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.
Reply With Quote

#6 Old Re: Non-recoverable failure in name resolution - 2009-08-26, 03:31

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
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
Reply With Quote

#7 Old Re: Non-recoverable failure in name resolution - 2009-08-26, 04:45

Join Date: Aug 2009
Posts: 9
skyw33
Offline
Registered User
That did it -- thanks. I signed the python script shell with all capabilities including network services.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Switching from Portrait to Landscape mode Ashish Gupta Mobile Java Media (Graphics & Sounds) 5 2009-06-30 11:04
Java Games Screen Resolution edwin756 Mobile Java Games 4 2008-10-31 07:29
3.1.1. theme RESOLUTION - one SIS for each phonemodel? pekkavaris Themes/Carbide.ui 0 2007-05-18 13:38
Actual Resolution 3rd Rozik General Symbian C++ 3 2007-04-12 19:52
Retrieving Camera Resolution programatically sourabhs Symbian Media (Graphics & Sounds) 2 2006-04-21 09:39

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ