urllib.urlopen - <urlopen error [Errno 2] temporary failure in name resolution.>

6,010 views
Skip to first unread message

loraxman

unread,
Jan 18, 2012, 10:10:50 PM1/18/12
to Kivy users support
I am using this in the showcase app to test out basic urllib. Why
does it fail with this error?


def show_standard_buttons(self):
col = BoxLayout(spacing=10)
col.add_widget(Button(text='Hello world'))
col.add_widget(Button(text='Hello world', state='down'))
urllib2.urlopen("http://www.yahoo.com")
return col

Mathieu Virbel

unread,
Jan 19, 2012, 6:14:32 AM1/19/12
to kivy-...@googlegroups.com
Which platform ?

Roger Kelly

unread,
Jan 19, 2012, 10:04:40 AM1/19/12
to kivy-...@googlegroups.com
Android 2.2, Android 3.0

Mathieu Virbel

unread,
Jan 19, 2012, 11:18:23 AM1/19/12
to kivy-...@googlegroups.com
On Android, if you want to have internet access, you must activate
INTERNET permission (--permission INTERNET on the build.py command line)

On 19/01/2012 16:04, Roger Kelly wrote:
> Android 2.2, Android 3.0
>
> On Thu, Jan 19, 2012 at 5:14 AM, Mathieu Virbel <m...@kivy.org
> <mailto:m...@kivy.org>> wrote:
>
> Which platform ?
>
>
> On 19/01/2012 04:10, loraxman wrote:
>
> I am using this in the showcase app to test out basic urllib. Why
> does it fail with this error?
>
>
> def show_standard_buttons(self):
> col = BoxLayout(spacing=10)

> col.add_widget(Button(text='__Hello world'))
> col.add_widget(Button(text='__Hello world', state='down'))
> urllib2.urlopen("http://www.__yahoo.com

Roger Kelly

unread,
Jan 19, 2012, 1:45:29 PM1/19/12
to kivy-...@googlegroups.com
Thanks that worked great!.

Abubakar

unread,
Apr 11, 2019, 9:34:41 PM4/11/19
to Kivy users support
im getting this error on my raspberry pi. OS: raspbian stretch. pls how can i fix it?

elvis ian omondi

unread,
Apr 11, 2019, 11:35:21 PM4/11/19
to kivy-...@googlegroups.com

I would recommend you do this.....

def show_standard_button(self):
      col=BoxLayout(cols=1,spacing=10)
col.add_widget(Button(text='hello world'))
col.add_widget(Button(text='Hello world', state='down', on_press=self.opening))
return col
def opening (self):
        urllib2.urlopen("http://www.yahoo.com")
       

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/fc59552c-b25e-4e9e-9e42-cade5c7e1257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nan qiao

unread,
Apr 13, 2019, 2:21:47 AM4/13/19
to kivy-...@googlegroups.com
you can use " kivy.network.urlrequest.UrlRequest  " to do the http-opreations  instead of  "urllib" or "requests" library in kivy.  

elvis ian omondi <elvisia...@gmail.com> 于2019年4月12日周五 上午11:35写道:
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
Reply all
Reply to author
Forward
0 new messages