urllib.urlopen fails in Emacs
Wojtek Walczak
gminick at bzt.bzt
Fri Sep 26 06:21:58 EDT 2008
On Fri, 26 Sep 2008 02:23:18 -0600, Iain Dalton wrote:
> In Emacs, using run-python,
>
> import urllib
> urllib.urlopen('http://www.google.com/')
>
> results in this traceback:
...
> IOError: [Errno socket error] (111, 'Connection refused')
>
> It works fine from the command line. Why is this happening?
I can't answer your question, since I don't use emacs,
but it looks like emacs has some kind of built in firewall.
;-)
--
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/
More information about the Python-list
mailing list