Re: intermittent ValueErrors from subprocess

2016-05-15 Thread Chris Angelico
On Mon, May 16, 2016 at 9:17 AM, Pavlos Parissis wrote: > On 16/05/2016 12:59 πμ, Chris Angelico wrote: >> Ah. I didn't click that link in your original post - didn't know it >> was the traceback. Better would have been to at least say so; best >> would have been to include it inline. >> > > I don

Re: intermittent ValueErrors from subprocess

2016-05-15 Thread Pavlos Parissis
On 16/05/2016 12:59 πμ, Chris Angelico wrote: > On Mon, May 16, 2016 at 8:32 AM, Pavlos Parissis > wrote: >>> Searching the CPython sources for that exception shows one hit: >>> selectors.py, where it converts a file object to an integer file >>> descriptor. (You could have helped out by showing u

Re: intermittent ValueErrors from subprocess

2016-05-15 Thread Chris Angelico
On Mon, May 16, 2016 at 8:32 AM, Pavlos Parissis wrote: >> Searching the CPython sources for that exception shows one hit: >> selectors.py, where it converts a file object to an integer file >> descriptor. (You could have helped out by showing us the full >> traceback.) > > I did, https://gist.git

Re: intermittent ValueErrors from subprocess

2016-05-15 Thread Pavlos Parissis
On 16/05/2016 12:08 πμ, Chris Angelico wrote: > On Mon, May 16, 2016 at 1:49 AM, Pavlos Parissis > wrote: >> I use subprocess.check_output like this: >> >> cmd = [ >> '/sbin/ip', >> 'address', >> 'show', >> 'dev', >> "{}".format(self.config['interface']), >> 'to', >> "{

Re: intermittent ValueErrors from subprocess

2016-05-15 Thread Chris Angelico
On Mon, May 16, 2016 at 1:49 AM, Pavlos Parissis wrote: > I use subprocess.check_output like this: > > cmd = [ > '/sbin/ip', > 'address', > 'show', > 'dev', > "{}".format(self.config['interface']), > 'to', > "{}".format(self.config['ip_prefix']), > ] Unrelated to your

intermittent ValueErrors from subprocess

2016-05-15 Thread Pavlos Parissis
Hi, I get intermittent ValueErrors[1] from subprocess when I check if an IP is assigned to loopback interface by running: /sbin/ip address show dev lo to 10.52.12.2/32 I use subprocess.check_output like this: cmd = [ '/sbin/ip', 'address', 'show', 'dev', "{}".format(self.con