Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52659

Need somebody schmardter than me

From Gene Heskett <gheskett@wdtv.com>
Subject Need somebody schmardter than me
Date 2013-08-18 16:09 -0400
Newsgroups comp.lang.python
Message-ID <mailman.2.1376856608.19984.python-list@python.org> (permalink)

Show all headers | View raw


Greetings all;

I am trying to make a machine vision kit of modules work in linuxcnc, which 
uses a lot of python for scripts and gui controls in the user interface.

This is on a Ubu 10.04.4 LTS install, which because linuxcnc is intimately 
married to an RTAI equipt kernel version, has not been updated past 
2.6.32-12x-RTAI.  Those patches are very invasive but a 3.8.something 
version is being worked on as we speak.

But in the meantime, in an effort to debug the failure of the camera 
application to work WITH linuxcnc, I ran the debug level up to maximum to 
see if I might find the first point of failure, and get this on the console 
when linuxcnc is launched from the cli:
================

Xlib.protocol.request.QueryExtension
parse error?
unable to instantiate [/dev/video0]

================

Then it reverts to the normal traceback reporting the same thing but 
quoting the line numbers of the two scripts that led to the failed call.

/dev/video0 exists, is created when the usb cable from the camera is 
plugged in, and the program "cheese" can display this cameras output just 
fine using /dev/video0 as the src device.

When cheese runs this camera, there is a several second delay while cheese 
is apparently talking to it to establish the correct output format before 
cheese starts displaying its output, so I am wondering if an initialization 
time delay might be the fix, but I haven't a clue about how to go about 
that in python despite my copying the list for what, a year or more now?

So, where should I start?

Heck, maybe I might learn a bit of python while running this one down. ;-)

Thanks all.

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)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
From 0 to "what seems to be the problem officer" in 8.3 seconds.
		-- Ad for the new VW Corrado
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Need somebody schmardter than me Gene Heskett <gheskett@wdtv.com> - 2013-08-18 16:09 -0400
  Re: Need somebody schmardter than me Roy Smith <roy@panix.com> - 2013-08-18 16:19 -0400
    Re: Need somebody schmardter than me Gene Heskett <gheskett@wdtv.com> - 2013-08-18 16:48 -0400
    Re: Need somebody schmardter than me Chris Angelico <rosuav@gmail.com> - 2013-08-18 22:20 +0100
  Re: Need somebody schmardter than me Gene Heskett <gheskett@wdtv.com> - 2013-08-18 19:33 -0400

csiph-web