| Reply | « Previous Thread | Next Thread » |
|
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') Code:
s=imaplib.IMAP4_SSL('imap.gmail.com')
OR
urllib.urlopen('http://www.bbc.co.uk')
I signed python shell with full capabilities. |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
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 |
|
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')
|
|
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 ? |
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
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.
|
|
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 |
|
That did it -- thanks. I signed the python script shell with all capabilities including network services.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |