Urllib2 not working

Simon Forman sajmikins at gmail.com
Sat Aug 22 21:27:52 CEST 2009

On Sat, Aug 22, 2009 at 2:12 PM, Carlos Fabian
Ramirez<carlosfabianramirez at gmail.com> wrote:
> Hello,
> When I try to open a URL using urllib2.urlopen it returns Name or service
> not known. It is not a problem with my Internet I believe, since I have
> Internet access on my computer, and I have verified it is not a syntax, or
> spelling, error on my part. I have also tried accessing the site
> (google.com) by IP like so:
> urllib2.urlopen('')
> but this does not work either.
> This is a traceback of an attempt to access it through its URL
> (http://www.google.com/)
> http://dpaste.com/84016/
> Any help would be very appreciated.

Try googling the error message "Name or service not known" and urllib2.


More information about the Python-list mailing list