From: André <andresinho.paulista@gmail.com>
To: gentoo-user-br@lists.gentoo.org
Subject: Re: [gentoo-user-br] dropbox-nautilus
Date: Thu, 28 Apr 2011 16:04:00 -0300 [thread overview]
Message-ID: <4DB9BA20.3080701@gmail.com> (raw)
In-Reply-To: <BANLkTimzUFPRBUR-+z8tCh6Z4+FZWX+mEg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5445 bytes --]
Em 28/04/11 16:01, Igor Miranda escreveu:
>
>
> 2011/4/28 Dalton Barreto <daltonmatos@gmail.com
> <mailto:daltonmatos@gmail.com>>
>
> Em 28 de abril de 2011 12:02, Igor Miranda <miranda.igor@gmail.com
> <mailto:miranda.igor@gmail.com>> escreveu:
> > 2011/4/28 Dalton Barreto <daltonmatos@gmail.com
> <mailto:daltonmatos@gmail.com>>
> >>
> >> Em 28 de abril de 2011 09:42, Igor Miranda
> <miranda.igor@gmail.com <mailto:miranda.igor@gmail.com>>
> >> escreveu:
> >> > Galera,
> >> > Estou tentando instalar o pacote
> gnome-extra/nautilus-dropbox-0.6.7,
> >> > porem
> >> > ele da o erro abaixo:
> >> > checking for pygtk... no
> >> > configure: error: couldn't find pygtk
> >> >
> >>
> >>
> >> Igor,
> >>
> >> qual a saída do seguinte comando aí no seu gentoo?
> >>
> >> $ equery f pygtk | grep .pc
> >>
> >>
> >> Assim vamos poder saber quais são os arquivos da pygtk que são, na
> >> verdade, arquivos usados pelo pkg-config para descobrir as cflags e
> >> "ldflags" de compilaçãodos pacotes.
> >>
> >> Se existir algum desses arquivos, tente:
> >> $ pkg-config --cflags <nome-do-arquivo>
> >> $ pkg-config --libs <nome-do-arquivo>
> >>
> >> Apenas lembre-se que o nome passado do pkg-config é sem o
> sufixo ".pc"
> >> e sem nenhuma parte do caminho onde o arquivo está, apenas o nome
> >> mesmo.
> >>
> >> Poste aqui a saída desses comandos, por favor.
> >>
> >> Valeu!
> >>
> >>
> >> --
> >> Dalton Barreto
> >> http://daltonmatos.wordpress.com
> >> http://wsgid.com
> >>
> >
> > Dalton,
> >
> > miranda@mms ~ $ equery f pygtk | grep .pc
> > /usr/lib64/pkgconfig/pygtk-2.0.pc
> > miranda@mms ~ $ pkg-config --cflags pygtk-2.0
> > -pthread -D_REENTRANT -I/usr/include/pygtk-2.0
> -I/usr/include/gtk-2.0
> > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> > -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo
> > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
> > -I/usr/include/pixman-1 -I/usr/include/freetype2
> -I/usr/include/directfb
> > -I/usr/include/libpng14 -I/usr/include/libdrm
> > miranda@mms ~ $ pkg-config --libs pygtk-2.0
> > -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0
> -lpangoft2-1.0
> > -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14
> -lpango-1.0 -lfreetype
> > -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt
> -lglib-2.0
> >
> >
>
> Parece tudo certo com a instalação da pygtk....
>
> Cheguei ao ponto de ler o script configure do nautilus-dropbox para
> saber como ele tenta encontrar a pygtk, segue o trecho:
>
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk" >&5
> $as_echo_n "checking for pygtk... " >&6; }
>
> cat <<EOF | python
> try:
> import gtk
> except:
> exit(1)
> else:
> exit(0)
> EOF
>
> Verifique se você consegue fazer um "import gtk" aí no shell do
> python.
>
> Procurei um Hello world de pygtk e as primeiras linhas são:
>
> import pygtk
> pygtk.require('2.0')
> import gtk
>
> Isso me fez pensar que o pacote nautilus-dropbox está checando a
> existência da pygtk da forma errada... Para podermos avançar
> precisamos descobrir qual pacote provê o módulo python "gtk".
>
> Para fazer isso, importe o módulo gtk no seu shell python e depois
> apenas digite "gtk". Isso vai te dizer de qual arquivo no disco o
> python carregou esse módulo e assim podemos descobrir qual pacote no
> gentoo forneceu esse arquivo. Se o import der erro, aí teremos que
> partir para uma outra abordagem. =)
>
>
> Acredito que algum pacote que o nautilus-dropbox dependa está sem
> suporte a python ou algo assim. Poderia ser, por exemplo, a instalação
> da gtk+ sem os bindings pra python. Isso poderia justificar a não
> existẽncia do módulo gtk.
>
> Estou sem acesso a um gentoo com X/Gnome/Gtk+/etc instalado, por isso
> estou só escrevendo o passo-a-passo para podermos descobrir a origem
> do problema. Tente essas dicas aí no seu gentoo e me fale o que
> concluiu.
>
>
> Abraços,
> --
> Dalton Barreto
> http://daltonmatos.wordpress.com
> http://wsgid.com
>
>
> Dalton,
>
> Acho que o problema ta ai mesmo
>
> mms ~ # python
> Python 3.1.3 (r313:86834, Apr 3 2011, 15:55:23)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pygtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named pygtk
> >>> pygtk.require('2.0')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'pygtk' is not defined
> >>> import gtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named gtk
> >>>
>
>
> --
> ====================
> Igor Miranda
> São Paulo/SP
> ====================
entum troque a versao 3.1 pela 2.7 ou a 2.6 como eu lhe comentei no meu
email anterior com o eselect python
[-- Attachment #2: Type: text/html, Size: 9375 bytes --]
next prev parent reply other threads:[~2011-04-28 19:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 12:42 [gentoo-user-br] dropbox-nautilus Igor Miranda
2011-04-28 12:55 ` Dalton Barreto
2011-04-28 13:00 ` Igor Miranda
2011-04-28 13:13 ` Dalton Barreto
2011-04-28 13:32 ` Dalton Barreto
2011-04-28 15:02 ` Igor Miranda
2011-04-28 15:28 ` Dalton Barreto
2011-04-28 19:01 ` Igor Miranda
2011-04-28 19:04 ` André [this message]
2011-04-28 19:15 ` Dalton Barreto
2011-04-28 18:35 ` André
2011-04-28 18:40 ` Leonardo Guilherme
2011-04-28 19:02 ` André
2011-04-28 19:15 ` Igor Miranda
2011-04-28 19:23 ` André
2011-04-28 19:26 ` Igor Miranda
2011-04-28 22:47 ` Leonardo Guilherme
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DB9BA20.3080701@gmail.com \
--to=andresinho.paulista@gmail.com \
--cc=gentoo-user-br@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox