Python x Webcam
|
03/11/2009, 19:12
Resposta: #1
|
|||
|
|||
Python x Webcam
Pessoal, bom dia
Estou apanhando há uns 3 dias já, do Python aqui... Tenho uma webcam que vem na seguinte saida do lsusb: Bus 003 Device 003: ID 04f2:b008 Chicony Electronics Co., Ltd Ela é a Chicony USB 2.0 O módulo nativo pra ela é o uvcvideo. Ele funciona bem, pois no Skype e no aMSN, ela funciona tranquilamente, assim como no comando pra vê-la através do mplayer. Mas pra programas em linguagem Python, como cheese e emesene, sempre vem a maldita mensagem: The program 'xxxxx' received an X Window System error. This probably reflects a bug in the program. The error was 'BadValue (integer parameter out of range for operation)'. (Details: serial 39 error_code 2 request_code 144 minor_code 13) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) |
|||
04/11/2009, 09:03
Resposta: #2
|
|||
|
|||
Re: Python x Webcam
Fez o que a mensagem diz?
Lucas Saliés Brum site | blog | telegram | medium | vk | twitter | github | .share |
|||
04/11/2009, 12:15
Resposta: #3
|
|||
|
|||
Re: Python x Webcam
Fiz.. Rodei com o parâmetro --sync
Não deu diferença alguma... Estranho isso... Python é tão complicado assim?? |
|||
04/11/2009, 16:11
Resposta: #4
|
|||
|
|||
Re: Python x Webcam
meirinho Escreveu:Estranho isso... Python é tão complicado assim??Pelo contrário, Python é a linguagem mais simples que eu já vi, ela é orientada a indentação, eliminando milhares de {}. Tenho um palpite, rode o programa assim: dbus-launch [programa] Você está usando qual Ambiente/Gerenciador? Lucas Saliés Brum site | blog | telegram | medium | vk | twitter | github | .share |
|||
04/11/2009, 16:47
Resposta: #5
|
|||
|
|||
Re: Python x Webcam
Eu estou usando Gnome, no Debian Lenny (stable)
Kernel 2.6.26-2-686 Saída do comando: [email protected]:~$ dbus-launch cheese The program 'cheese' received an X Window System error. This probably reflects a bug in the program. The error was 'BadValue (integer parameter out of range for operation)'. (Details: serial 39 error_code 2 request_code 144 minor_code 13) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) |
|||
04/11/2009, 17:46
Resposta: #6
|
|||
|
|||
Re: Python x Webcam
Rapaz isso tá estranho.
Tentou rodar o cheese como root? Em quais grupos seu usuário está? Tenta desinstalar e reinstalar o cheese. aptitude purge cheese aptitude install cheese Seu debian está atualizado? Lucas Saliés Brum site | blog | telegram | medium | vk | twitter | github | .share |
|||
04/11/2009, 21:31
Resposta: #7
|
|||
|
|||
Re: Python x Webcam
Ta atualizado sim.. dia sim, dia não eu dou um aptitude update e upgrade...
Vo tentar reinstalar o cheese... Mas definitivamente deve ser algo no python.. senao o emesene também rodaria ne? |
|||
04/11/2009, 21:34
Resposta: #8
|
|||
|
|||
Re: Python x Webcam
Desisti de tentar remover o cheese...
Ele diz que vai remover o gnome-desktop-enviroment tambem.. |
|||
04/11/2009, 23:09
Resposta: #9
|
|||
|
|||
Re: Python x Webcam
Tenta assim:
Código: dpkg -P cheese --ignore-depends=gnome-desktop-enviroment Ou algo do gênero. man dpkg Lucas Saliés Brum site | blog | telegram | medium | vk | twitter | github | .share |
|||
05/11/2009, 08:09
Resposta: #10
|
|||
|
|||
Re: Python x Webcam
Pelos vistos deve ser bug no Lenny.. não tem outra explicação..
Agora que eu to querendo baixar o testing, no site do Debian os diretorios todos do testing estão vazios... Definitivamente perdi a paciência com o stable, é conservador demais.. Vou esperar colocarem o testing lá.. Não tem jeito, só pode ser bug |
|||
05/11/2009, 08:10
Resposta: #11
|
|||
|
|||
Re: Python x Webcam
Rodei o cheese como root... mesma coisa...
Não é permissão de dev não, é o python mesmo, com certeza absoluta |
|||
05/11/2009, 09:52
Resposta: #12
|
|||
|
|||
Re: Python x Webcam
Aqui eu rodo o Cheese no Lenny.
Lucas Saliés Brum site | blog | telegram | medium | vk | twitter | github | .share |
|||
« Anteriores | Seguintes »
|
Usuários visualizando este tópico: 1 Visitantes