[Ubuntu-BR] Res: Res: Erro com pygtk
Rafael Bedendo
rafael.bedendo em yahoo.com.br
Quarta Janeiro 24 12:29:34 UTC 2007
Bom dia Silvio.
Eu uso Dapper
Rodei sudo apt-get install --reinstall python-glade2
Retornou
sudo apt-get install --reinstall python-glade2
Lendo Lista de Pacotes... Pronto
Construindo Árvore de Dependências... Pronto
0 pacotes atualizados, 0 pacotes novos instalados, 1 reinstalados, 0 a serem removidos e 0 não atualizados.
É preciso fazer o download de 0B/10,8kB de arquivos.
Depois de desempacotamento, 0B adicionais de espaço em disco serão usados.
Quer continuar [S/n] ? s
(Lendo banco de dados ... 111031 arquivos e diretórios atualmente instalados.)
Preparando para substituir python-glade2 2.8.6-0ubuntu1 (usando .../python-glade2_2.8.6-0ubuntu1_all.deb) ...
Descompactando substituto python-glade2 ...
Instalando python-glade2 (2.8.6-0ubuntu1)
Tentei sudo gnome-language-selector
Traceback (most recent call last):
File "/usr/bin/gnome-language-selector", line 7, in ?
import gtk.glade
ImportError: No module named glade
Resultados:
cat /etc/apt/sources.list
cat /etc/apt/sources.list
# Automatically generated sources.list
# http://www.ubuntu-nl.org/source-o-matic/
#
# If you get GPG errors with this sources.list, locate the GPG key in this file
# and run these commands (where KEY is replaced with that key)
#
# gpg --keyserver hkp://subkeys.pgp.net --recv-keys KEY
# gpg --export --armor KEY | sudo apt-key add -
# Ubuntu supported packages
# GPG key: 437D05B5
deb http://br.archive.ubuntu.com/ubuntu dapper main restricted
deb http://br.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
# Ubuntu community supported packages
# GPG key: 437D05B5
deb http://br.archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://br.archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
apt-cache show python-glade2
$ apt-cache show python-glade2
Package: python-glade2
Priority: optional
Section: python
Installed-Size: 44
Maintainer: Sebastien Bacher <seb128 em debian.org>
Architecture: all
Source: pygtk
Version: 2.8.6-0ubuntu1
Depends: python2.4-glade2 (= 2.8.6-0ubuntu1)
Conflicts: python-gdk-imlib, python-glade, python-gnome, python-gtk
Filename: pool/main/p/pygtk/python-glade2_2.8.6-0ubuntu1_all.deb
Size: 10790
MD5sum: ff28114a1bc1c115851f6c463d10fc67
Description: GTK+ bindings: Glade support
Contains bindings for the glade library from use within Python. Glade
makes it very easy to create a user interface. In the target
application you just need to load the interface description from
the .glade file instead of constructing the GUI at runtime.
.
This package is a dependency package, which select the right package
for the default Python version (currently v2.4).
.
Author: James Henstridge <james em daa.com.au>
Homepage: http://www.daa.com.au/~james/software/pygtk/
Bugs: mailto:ubuntu-users em lists.ubuntu.com
Origin: Ubuntu
Task: ubuntu-desktop, edubuntu-desktop, xubuntu-desktop
--- apt-cache show python-gobject
$ apt-cache show python-gobject
Package: python-gobject
Priority: optional
Section: python
Installed-Size: 44
Maintainer: Sebastien Bacher <seb128 em debian.org>
Architecture: all
Source: pygobject
Version: 2.10.1-0ubuntu1
Depends: python2.4-gobject (= 2.10.1-0ubuntu1)
Filename: pool/main/p/pygobject/python-gobject_2.10.1-0ubuntu1_all.deb
Size: 9874
MD5sum: 4c9dc3971b04704dd2d2f4e930a5794a
Description: Python bindings for the GObject
This archive contains modules that allow you to use GObject in Python
programs.
.
This package is a dependency package, which select the right package
for the default Python version (currently v2.4).
Bugs: mailto:ubuntu-users em lists.ubuntu.com
Origin: Ubuntu
dpkg -L python-gobject
$ dpkg -L python-gobject
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-gobject
/usr/share/doc/python-gobject/README
/usr/share/doc/python-gobject/copyright
/usr/share/doc/python-gobject/changelog.gz
/usr/share/doc/python-gobject/NEWS.gz
/usr/share/doc/python-gobject/changelog.Debian.gz
dpkg -L python-glade2
$ dpkg -L python-glade2
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-glade2
/usr/share/doc/python-glade2/copyright
/usr/share/doc/python-glade2/changelog.gz
/usr/share/doc/python-glade2/changelog.Debian.gz
E continuamos na luta...
Rafael Bedendo
----- Mensagem original ----
De: Silvio Fonseca <silvio.listas em pizzaroot.com.br>
Para: Lista de discussão do LoCoTeam Brasileiro <ubuntu-br em lists.ubuntu.com>
Enviadas: Quarta-feira, 24 de Janeiro de 2007 9:57:15
Assunto: Re: [Ubuntu-BR] Res: Erro com pygtk
Rafael,
Tem algo muito estranho com sua instalação. Algumas informações:
- Qual Ubuntu você está usando? (Dapper, Edgy, Feisty, ...)
- Reinstala o python-glade2 (sudo apt-get install --reinstall python-glade2)
- Mande o resultado de:
--- cat /etc/apt/sources.list
--- apt-cache show python-glade2
--- apt-cache show python-gobject
--- dpkg -L python-gobject
--- dpkg -L python-glade2
E vamos à luta ;-)
Abraço,
Silvio Fonseca
> Pessoal baixei o pygtk do site e compilei, o erro agora mudou encontrou
> o pygtk.py, porém agora ele acusa
>
> $ sudo gnome-language-selector
> Traceback (most recent call last):
> File "/usr/bin/gnome-language-selector", line 7, in ?
> import gtk.glade
> ImportError: No module named glade
>
> O que fazer.
>
> Alguma luz? Fiz porcaria?
>
>
> Rafael Bedendo
>
> Rafael Bedendo escreveu:
> > Bom dia Aldo
> >
> > Fiz o $sudo apt-get install --reinstall python-gobject
> >
> > E depois tentei novamente
> >
> > $ sudo gnome-language-selector
> > Traceback (most recent call last):
> > File "/usr/bin/gnome-language-selector", line 4, in ?
> > import pygtk
> > ImportError: No module named pygtk
> >
> >
> > Notei que eu não tenho no caminho /var/lib a pasta
> > /python-support/python2.4/pygtk.py em /var/lib tenho apenas uma pasta
> > chamada /pango
> > percebi ainda que em /usr/share/ também não tenho a pasta /python-support
> >
> > Ae pessoal a batalha esta ardua...
> >
> > Obrigado a todos e a luta continua...
> >
> >
> > Rafael Bedendo
> >
> > Depois, dei um "ls -l" no arquivo acima:
> > lrwxrwxrwx 1 root root 49 2006-11-08 21:48
> > /var/lib/python-support/python2.4/pygtk.py ->
> > /usr/share/python-support/python-gobject/pygtk.py
> >
> > Em seguida, rodei um "dpkg -S" (acha qual pacote instalou o arquivo
> > dado) nesse outro arquivo e o resultado foi esse:
> > python-gobject: /usr/share/python-support/python-gobject/pygtk.py
> >
> > Tenta reinstalar esse pacote, o python-gobject.
> >
> > Aldo Nogueira escreveu:
> >> Tá doido, rapá? Usando o root à toa? :)
> >>
> >> Na minha máquina, um Edgy 64, deu o seguinte resultado:
> >> aldo em rotnroll:~$ python
> >> Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03)
> >> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
> >> Type "help", "copyright", "credits" or "license" for more information.
> >>
> >>>>> import pygtk
> >>>>> help(pygtk)
> >>
> >> Help on module pygtk:
> >>
> >> NAME
> >> pygtk
> >>
> >> FILE
> >> /var/lib/python-support/python2.4/pygtk.py
> >>
> >> DESCRIPTION
> >> # -*- Mode: Python; py-indent-offset: 4 -*-
> >> # pygtk - Python bindings for the GTK+ widget set.
> >> # Copyright (C) 1998-2002 James Henstridge
> >> #
> >> # pygtk.py: pygtk version selection code.
> >> #
> >> # This library is free software; blá blá blá...
> >>
> >> Depois, dei um "ls -l" no arquivo acima:
> >> lrwxrwxrwx 1 root root 49 2006-11-08 21:48
> >> /var/lib/python-support/python2.4/pygtk.py ->
> >> /usr/share/python-support/python-gobject/pygtk.py
> >>
> >> Em seguida, rodei um "dpkg -S" (acha qual pacote instalou o arquivo
> >> dado) nesse outro arquivo e o resultado foi esse:
> >> python-gobject: /usr/share/python-support/python-gobject/pygtk.py
> >>
> >> Tenta reinstalar esse pacote, o python-gobject.
> >>
> >> Boa sorte.
> >>
> >>
> >> Aldo
> >>
> >> Em 23/01/07, Silvio Fonseca<silvio.listas em pizzaroot.com.br> escreveu:
> >>> Rafael,
> >>>
> >>> Pode ser um bug mesmo, eu tenho o módulo aqui, porém ele não faz parte
> >>> de nenhum pacote (estou usando o Edgy):
> >>>
> >>> root em gissi-laptop:~# python
> >>> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
> >>> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
> >>> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>>>>> import pygtk
> >>>>>> pygtk
> >>>
> >>> <module 'pygtk' from '/var/lib/python-support/python2.4/pygtk.pyc'>
> >>>
> >>> root em gissi-laptop:~# dpkg -S
> >>> /var/lib/python-support/python2.4/pygtk.pyc dpkg:
> >>> /var/lib/python-support/python2.4/pygtk.pyc não encontrado.
> >>>
> >>> Alguém tem alguma luz?
> >>>
> >>> Atenciosamente,
> >>>
> >>> Silvio Fonseca
> >>>
> >>>> Obrigado pelas respostas Diego, segue abaixo o resultado do que você
> >>>> pediu nas mensagens
> >>>>
> >>>> Rodei
> >>>> for i in `dpkg -L python-gtk2`; do if `test -e $i`;then echo "Ok: $i
> >>>> ";else echo "Faltando: $i";fi; done
> >>>>
> >>>>
> >>>> Retornou
> >>>> Ok: /.
> >>>> Ok: /usr
> >>>> Ok: /usr/share
> >>>> Ok: /usr/share/doc
> >>>> Ok: /usr/share/doc/python-gtk2
> >>>> Ok: /usr/share/doc/python-gtk2/README
> >>>> Ok: /usr/share/doc/python-gtk2/TODO
> >>>> Ok: /usr/share/doc/python-gtk2/changelog.Debian.gz
> >>>> Ok: /usr/share/doc/python-gtk2/README.Debian
> >>>> Ok: /usr/share/doc/python-gtk2/copyright
> >>>> Ok: /usr/share/doc/python-gtk2/changelog.gz
> >>>> Ok: /usr/share/doc/python-gtk2/NEWS.gz
> >>>> Ok: /usr/share/doc/python-gtk2/MAPPING.gz
> >>>> Ok: /usr/share/doc/python-gtk2/THREADS.gz
> >>>>
> >>>>
> >>>> Depois rodei
> >>>>
> >>>> $ sudo aptitude -f install
> >>>> Lendo Lista de Pacotes... Pronto
> >>>> Construindo Árvore de Dependências... Pronto
> >>>> Inicializando estados de pacotes... Pronto
> >>>> Construindo banco de dados de etiquetas... Pronto
> >>>> Nenhum pacote será instalado, atualizado ou removido.
> >>>> 0 pacotes atualizados, 0 novos instalados, 0 a serem removidos e 0 não
> >>>> atualizados. É preciso obter 0B de arquivos. Depois do
> >>>> desempacotamento, 0B serão usados.
> >>>>
> >>>> Então rodei
> >>>>
> >>>> $ sudo aptitude install python-gtk2
> >>>> Lendo Lista de Pacotes... Pronto
> >>>> Construindo Árvore de Dependências... Pronto
> >>>> Lendo informações extendidas de estado
> >>>> Inicializando estados de pacotes... Pronto
> >>>> Construindo banco de dados de etiquetas... Pronto
> >>>> Nenhum pacote será instalado, atualizado ou removido.
> >>>> 0 pacotes atualizados, 0 novos instalados, 0 a serem removidos e 0 não
> >>>> atualizados. É preciso obter 0B de arquivos. Depois do
> >>>> desempacotamento, 0B serão usados. Gravando informações extendidas de
> >>>> estado... Pronto
> >>>>
> >>>> Por ultimo tentei novamente
> >>>>
> >>>> $ sudo gnome-language-selector
> >>>> Traceback (most recent call last):
> >>>> File "/usr/bin/gnome-language-selector", line 4, in ?
> >>>> import pygtk
> >>>> ImportError: No module named pygtk
> >>>>
> >>>> E o erro continuou....
> >>>>
> >>>> Rafael Bedendo
> >>>>
> >>>>
> >>>> ----- Mensagem original ----
> >>>> De: Diego Ernesto Pereyra <diesphink em yahoo.com.br>
> >>>> Para: ubuntu-br em lists.ubuntu.com
> >>>> Enviadas: Terça-feira, 23 de Janeiro de 2007 19:10:19
> >>>> Assunto: Re: [Ubuntu-BR] Erro com pygtk
> >>>>
> >>>> Cheque se todos os arquivos do pacote python-gtk2 estão onde deveriam
> >>>> estar, com algo como:
> >>>>
> >>>> for i in `dpkg -L python-gtk2`; do if `test -e $i`;then echo "Ok: $i
> >>>> ";else echo "Faltando: $i";fi; done
> >>>>
> >>>> Cheque que versões do python você tem rodando.
> >>>>
> >>>> Tente um aptitude -f install e aptitude install python-gtk2, o
> >>>> aptitude é mais "inteligente" que o apt-get, e pode propor alguma
> >>>> solução para isso.
> >>>>
> >>>> -- Diego "Sphink" Pereyra
> >>>>
> >>>> Em Tue, 23 Jan 2007 18:54:47 -0300
> >>>>
> >>>> Rafael Bedendo <rafael.bedendo em yahoo.com.br> escreveu:
> >>>>> Obrigado pela resposta Dorneles, fiz e não adiantou continua com o
> >>>>> mesmo erro.
> >>>>>
> >>>>> Dorneles Treméa escreveu:
> >>>>>> Opa Rafael,
> >>>>>>
> >>>>>>> Pessoal estou com um problema aqui e não sei nem por onde
> >>>>>>> começar...
> >>>>>>>
> >>>>>>> Após reinstalar um pacote do python 2.4 não consigo abrir muita
> >>>>>>> coisa, uma delas é o Suporte a Idiomas, abaixo o erro que acontece.
> >>>>>>>
> >>>>>>> $ gnome-language-selector
> >>>>>>> Traceback (most recent call last):
> >>>>>>> File "/usr/bin/gnome-language-selector", line 4, in ?
> >>>>>>> import pygtk
> >>>>>>> ImportError: No module named pygtk
> >>>>>>
> >>>>>> tenta aí:
> >>>>>>
> >>>>>> sudo apt-get install python-gtk2 --reinstall
> >>>>>>
> >>>>>> HTH,
> >>>>>
> >>>>> --
> >>>>> ubuntu-br mailing list
> >>>>> ubuntu-br em lists.ubuntu.com
> >>>>> www.ubuntubrasil.org
> >>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
> >>>>
> >>>> --
> >>>> ubuntu-br mailing list
> >>>> ubuntu-br em lists.ubuntu.com
> >>>> www.ubuntubrasil.org
> >>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> __________________________________________________
> >>>> Fale com seus amigos de graça com o novo Yahoo! Messenger
> >>>> http://br.messenger.yahoo.com/
> >>>
> >>> --
> >>> ubuntu-br mailing list
> >>> ubuntu-br em lists.ubuntu.com
> >>> www.ubuntubrasil.org
> >>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
--
ubuntu-br mailing list
ubuntu-br em lists.ubuntu.com
www.ubuntubrasil.org
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
More information about the ubuntu-br
mailing list