My first real request for help
Gene Heskett
gheskett at wdtv.com
Tue Nov 19 13:43:35 EST 2013
On Tuesday 19 November 2013 12:42:28 Tim Chase did opine:
> On 2013-11-19 12:19, Gene Heskett wrote:
> > > On 2013-11-19 11:19, Gene Heskett wrote:
> > > >>> Traceback (most recent call last):
> > > >>> File "/usr/bin/axis", line 3326, in <module>
> > > >>>
> > > >>> _dynamic_tabs(inifile)
> > > >>>
> > > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs
> > > >>>
> > > >>> child = Popen(cmd)
> > > >
> > > > You are suggesting I edit /usr/lib/python2.6/subprocess.py?
> > >
> > > I think Peter is suggesting that line 3182 in _dynamic_tabs should
> > > either read (the better way)
> >
> > Now, this is a puzzle.
> > _dynamic_tabs is not a file in /usr/lib/python2.6, nor does it
> > "grep" in that directory.
> >
> > I need another clue, how much are they? :).
>
> Doh, I misread the traceback. Looking more closely, it appears that
> the file in question is "/usr/bin/axis", line 3182 in the
> _dynamic_tabs *function* (or method), which is called at the
> module-level on line 3326 of the same file. Edit /usr/bin/axis to
> properly call Popen as mentioned in my previous email, and it should
> solve this issue.
>
> -tkc
Interesting, a print cmd immediately in front of that is quite noisy:
['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g',
'cam.ui', '-H', 'campins.hal', '-w', '150995278']
So, I'll try this:
child = Popen(["cmd"]), but that's not the fix. Thats 11 single
quoted, csv separated strings in that "cmd", do I have to parse it and
double quote & csv every one?
So, back to the last email:
Try child = Popen([cmd,args])
I killed the machine & had to go reboot it with the reset button. I took
the camera out and plugged it in, works great in camview or cheese. Focus
seem a bit distant at close to 2" but usable.
Then I took the line with the DEBUGGING statement back out, leaving just
the print cmd above the
child = Popen([cmd,args]), in line 3182, and now get this:
Traceback (most recent call last):
File "/usr/bin/axis", line 3329, in <module>
_dynamic_tabs(inifile)
File "/usr/bin/axis", line 3185, in _dynamic_tabs
child = Popen([cmd,args])
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
AttributeError: 'list' object has no attribute 'rfind'
With the usual exit & cleanup. Has this exposed another buglet?
Thanks Tim.
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
"Never underestimate the power of a small tactical nuclear weapon."
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
More information about the Python-list
mailing list