Re: Python urllib2 problem: Name or service not known

2012-02-28 Thread Alex Borghgraef
On Feb 28, 10:50 am, Alex Borghgraef wrote: > I'll still have to find out a way to get this thing working with proxy > enabled if I ever want to connect it to our overall network. Ok, doing os.environ['http_proxy']='' before importing urllib2 seems to do the trick for that. -- Alex -- http:/

Re: Python urllib2 problem: Name or service not known

2012-02-28 Thread Alex Borghgraef
On Feb 28, 1:36 am, Steven D'Aprano wrote: > On Mon, 27 Feb 2012 12:48:27 -0800, Alex Borghgraef wrote: > > Hi all, > > > Some time ago I've written some python code to read video data off an IP > > camera connected via a router to a laptop. Now I try to run this code on > > a different laptop and

Re: Python urllib2 problem: Name or service not known

2012-02-27 Thread Steven D'Aprano
On Mon, 27 Feb 2012 12:48:27 -0800, Alex Borghgraef wrote: > Hi all, > > Some time ago I've written some python code to read video data off an IP > camera connected via a router to a laptop. Now I try to run this code on > a different laptop and router combination, but now I can't access the > ca

Python urllib2 problem: Name or service not known

2012-02-27 Thread Alex Borghgraef
Hi all, Some time ago I've written some python code to read video data off an IP camera connected via a router to a laptop. Now I try to run this code on a different laptop and router combination, but now I can't access the camera. Some minimal example code: import urllib2 url = urllib2.urlo