×

Discussion Board

Results 1 to 3 of 3

Thread: urllib Error

  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    Exclamation urllib Error

    Hi, Im trying to run a simple script:

    import urllib
    page = urllib.urlopen("http://www.python.org").read()
    print page

    but I keep getting this error msg:

    File "C:\system\apps\python\default.py", line 81, in menu_action
    f()
    File "C:\system\apps\python\default.py", line 65, in query_and_exec
    execfile(script_list[index][1].encode('utf-8'),script_namespace.namespace)
    File "C:\system\apps\python\my\Fwebp.py", line 2, in ? page = urllib.urlopen("http://www.python.org").read()
    File "C:\system\libs\urllib.py", line 43, in urlopen return _urlopener.open(url)
    File "C:\system\libs\urllib.py", line 123, in open return getattr(self, name)
    (url)
    File "C:\system\libs\urllib.py", line 229, in open_http h.endheaders()
    File "C:\system\libs\httplib.py", line 454, in endheaders self._send_output()
    File "C:\system\libs\httplib.py", line 405, in _send_output self.send(msg)
    File "C:\system\libs\httplib.py", line 385, in send self.connect()
    File "C:\system\libs\httplib.py", line 627, in connect return SSLFILE(self._shared.self._ssl, bufsize)
    IOError: [Errno socket error] (0, 'Error')


    any help?

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

    Re: urllib Error

    hello L3v3L

    welcome to forum nokia Python Dibo

    Just a simple question is your data connection working fine i guess this is the error due to data connection.

    Enjoy Pythoning
    Gaba88

  3. #3
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    114

    Re: urllib Error

    Quote Originally Posted by L3v3L View Post
    Hi, Im trying to run a simple script:

    import urllib
    page = urllib.urlopen("http://www.python.org").read()
    print page

    but I keep getting this error msg:

    File "C:\system\apps\python\default.py", line 81, in menu_action
    f()
    File "C:\system\apps\python\default.py", line 65, in query_and_exec
    execfile(script_list[index][1].encode('utf-8'),script_namespace.namespace)
    File "C:\system\apps\python\my\Fwebp.py", line 2, in ? page = urllib.urlopen("http://www.python.org").read()
    File "C:\system\libs\urllib.py", line 43, in urlopen return _urlopener.open(url)
    File "C:\system\libs\urllib.py", line 123, in open return getattr(self, name)
    (url)
    File "C:\system\libs\urllib.py", line 229, in open_http h.endheaders()
    File "C:\system\libs\httplib.py", line 454, in endheaders self._send_output()
    File "C:\system\libs\httplib.py", line 405, in _send_output self.send(msg)
    File "C:\system\libs\httplib.py", line 385, in send self.connect()
    File "C:\system\libs\httplib.py", line 627, in connect return SSLFILE(self._shared.self._ssl, bufsize)
    IOError: [Errno socket error] (0, 'Error')


    any help?
    Are you trying this with 1.4.5 or 1.9.5? It works fine on 1.9.5. If you want to get it working in 1.4.5 itself then my guess is that this error has something to do with the access point you are using to connect. Try using some other access point when it prompts for data connection.
    import antigravity

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. playing aduio file when call is rejected.
    By santosh_sangewar in forum Symbian
    Replies: 6
    Last Post: 2009-06-12, 11:35
  3. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 12:38
  4. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian
    Replies: 8
    Last Post: 2007-08-24, 08:21
  5. 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

Posting Permissions

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