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

6,010 ملاحظات
پہلے نہ پڑھے ہوئے پیغام پر جائیں

loraxman

نہ پڑھا ہوا،
18 جنوری، 2012، 10:10:50 PM18/1/12
بنام 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

نہ پڑھا ہوا،
19 جنوری، 2012، 6:14:32 AM19/1/12
بنام kivy-...@googlegroups.com
Which platform ?

Roger Kelly

نہ پڑھا ہوا،
19 جنوری، 2012، 10:04:40 AM19/1/12
بنام kivy-...@googlegroups.com
Android 2.2, Android 3.0

Mathieu Virbel

نہ پڑھا ہوا،
19 جنوری، 2012، 11:18:23 AM19/1/12
بنام 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

نہ پڑھا ہوا،
19 جنوری، 2012، 1:45:29 PM19/1/12
بنام kivy-...@googlegroups.com
Thanks that worked great!.

Abubakar

نہ پڑھا ہوا،
11 اپریل، 2019، 9:34:41 PM11/4/19
بنام Kivy users support
im getting this error on my raspberry pi. OS: raspbian stretch. pls how can i fix it?

elvis ian omondi

نہ پڑھا ہوا،
11 اپریل، 2019، 11:35:21 PM11/4/19
بنام 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

نہ پڑھا ہوا،
13 اپریل، 2019، 2:21:47 AM13/4/19
بنام 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.
سبھی کو جواب دیں
مصنف کو جواب دیں
فارورڈ کریں
0 نئے پیغامات