* [gentoo-user-br] Python não acha lib PyOpenGL
@ 2010-07-08 3:08 Raphael MD
2010-07-08 3:36 ` Zhu Sha Zang
0 siblings, 1 reply; 8+ messages in thread
From: Raphael MD @ 2010-07-08 3:08 UTC (permalink / raw
To: gentoo users br
[-- Attachment #1: Type: text/plain, Size: 454 bytes --]
Tenho o Python 2.6.4, e a biblioteca pyopengl instalada, só que não há meio de o
python conseguir importá-la.
Vou no console do python, e digito import OpenGL, e não acha import OpenGL.GL e
não acha, ja olhei na documentação o jeito certo de importar que é import OpenGL
e depois from OpenGl.GL import * e não rola ele nem chega a encontrar o módulo
OpenGL.
E está tudo aparentemente instalado certo até o PyGame está!
Abs
[-- Attachment #2: Type: text/html, Size: 669 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 3:08 [gentoo-user-br] Python não acha lib PyOpenGL Raphael MD
@ 2010-07-08 3:36 ` Zhu Sha Zang
2010-07-08 19:11 ` Res: " Raphael MD
0 siblings, 1 reply; 8+ messages in thread
From: Zhu Sha Zang @ 2010-07-08 3:36 UTC (permalink / raw
To: gentoo-user-br
Rapaz, aqui foi
[rodolfo@blackhammer ~]$
python
0:34
Python 2.6.5 (release26-maint, Jun 3 2010, 03:51:20)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
>>> from OpenGL.GL import *
>>> from OpenGL.GLU import *
>>>
Na versão 3.1 não foi, uma pena.
Att
Em Thu, 08 Jul 2010 00:08:07 -0300, Raphael MD <raphamejias@yahoo.com.br>
escreveu:
> Tenho o Python 2.6.4, e a biblioteca pyopengl instalada, só que não há
> meio de o
> python conseguir importá-la.
>
> Vou no console do python, e digito import OpenGL, e não acha import
> OpenGL.GL e
> não acha, ja olhei na documentação o jeito certo de importar que é
> import OpenGL
> e depois from OpenGl.GL import * e não rola ele nem chega a encontrar o
> módulo
> OpenGL.
>
> E está tudo aparentemente instalado certo até o PyGame está!
>
> Abs
>
>
>
>
--
how much i think, how much i observe, how much i cry
humans act like idiots and need die
^ permalink raw reply [flat|nested] 8+ messages in thread
* Res: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 3:36 ` Zhu Sha Zang
@ 2010-07-08 19:11 ` Raphael MD
2010-07-08 21:35 ` Dalton Barreto
0 siblings, 1 reply; 8+ messages in thread
From: Raphael MD @ 2010-07-08 19:11 UTC (permalink / raw
To: gentoo-user-br
Python 2.6.4 (r264:75706, Dec 20 2009, 05:21:35)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named OpenGL
eix pyopengl
[U] dev-python/pyopengl
Available versions: 3.0.0 3.0.1_beta1 3.0.1_beta2 3.0.1 {tk}
Installed versions: 3.0.0(00:28:21 01-07-2009)(-tk)
Homepage: http://pyopengl.sourceforge.net/
Description: Python OpenGL bindings
Eu não sei o que pode ser, e na net não tem muito sobre esse problema!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 19:11 ` Res: " Raphael MD
@ 2010-07-08 21:35 ` Dalton Barreto
2010-07-08 21:52 ` Thiago Nunes
0 siblings, 1 reply; 8+ messages in thread
From: Dalton Barreto @ 2010-07-08 21:35 UTC (permalink / raw
To: gentoo-user-br
Em 8 de julho de 2010 16:11, Raphael MD <raphamejias@yahoo.com.br> escreveu:
> Python 2.6.4 (r264:75706, Dec 20 2009, 05:21:35)
> [GCC 4.3.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import OpenGL
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named OpenGL
>
>
> eix pyopengl
> [U] dev-python/pyopengl
> Available versions: 3.0.0 3.0.1_beta1 3.0.1_beta2 3.0.1 {tk}
> Installed versions: 3.0.0(00:28:21 01-07-2009)(-tk)
> Homepage: http://pyopengl.sourceforge.net/
> Description: Python OpenGL bindings
>
> Eu não sei o que pode ser, e na net não tem muito sobre esse problema!
>
Poste a saída desse comando:
$ equery f pyopengl
Olhando os arquivos pertencentes ao pacote talvez de para "deduzir"
como será a linha do "import". Pode ser que tenha mudado algo ou os
arquivos estão em um local que o ambiente python "não está vendo".
[]'s
--
Dalton Barreto
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 21:35 ` Dalton Barreto
@ 2010-07-08 21:52 ` Thiago Nunes
2010-07-08 22:18 ` Res: " Raphael MD
0 siblings, 1 reply; 8+ messages in thread
From: Thiago Nunes @ 2010-07-08 21:52 UTC (permalink / raw
To: gentoo-user-br
Em 8 de julho de 2010 18:35, Dalton Barreto <daltonmatos@gmail.com> escreveu:
> Poste a saída desse comando:
>
> $ equery f pyopengl
Po, me atrazei, tava escrevendo isso e tu mandou a pergunta antes de mim. :P
Mas eu acho que é útil também um "eselect python list", para saber que
versão do pytohn está configurada.
Aqui por exemplo:
$ equery f pyopengl
...
/usr/lib/python2.6/site-packages/OpenGL
...
$ eselect python list
Available Python interpreters:
[1] python2.3
[2] python2.6 *
[3] python3.1
$ python
Python 2.6.5 (release26-maint, Jun 26 2010, 13:35:52)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
>>> from OpenGL.GL import *
>>> from OpenGL.GLU import *
>>>
Teste:
# eselect python set 3
# eselect python list
Available Python interpreters:
[1] python2.3
[2] python2.6
[3] python3.1 *
# python
Python 3.1.2 (release31-maint, Jun 26 2010, 12:13:10)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named OpenGL
>>>
Por isso cola o "eselect python list" aí pra gente ver o que está acontecendo.
[]s
--
thiago
^ permalink raw reply [flat|nested] 8+ messages in thread
* Res: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 21:52 ` Thiago Nunes
@ 2010-07-08 22:18 ` Raphael MD
2010-07-08 23:45 ` Thiago Nunes
0 siblings, 1 reply; 8+ messages in thread
From: Raphael MD @ 2010-07-08 22:18 UTC (permalink / raw
To: gentoo-user-br
Um coisa estranha ocorreu, uma vez eu atualizei o python como se manda o
figurino do gentoo, tudo ficou funcionando, o emerge e tudo mais, mas por algum
problema que eu não sei o pyopengl não foi portado, rodando o equery f pyopengl,
consta que ele estáva no diretório /usr/lib do meu antigo python2.5 agora
instalei novamente o pyopengl (que eu não havia feito) e agora ficou tudo certo!
Obrigado.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 22:18 ` Res: " Raphael MD
@ 2010-07-08 23:45 ` Thiago Nunes
2010-07-09 1:02 ` Res: " Raphael MD
0 siblings, 1 reply; 8+ messages in thread
From: Thiago Nunes @ 2010-07-08 23:45 UTC (permalink / raw
To: gentoo-user-br
Em 8 de julho de 2010 19:18, Raphael MD <raphamejias@yahoo.com.br> escreveu:
> Um coisa estranha ocorreu, uma vez eu atualizei o python como se manda o
> figurino do gentoo, tudo ficou funcionando, o emerge e tudo mais, mas por algum
> problema que eu não sei o pyopengl não foi portado, rodando o equery f pyopengl,
> consta que ele estáva no diretório /usr/lib do meu antigo python2.5 agora
> instalei novamente o pyopengl (que eu não havia feito) e agora ficou tudo certo!
É por isso que se roda o python-updater quando se atualiza o python,
porque ele descobre os pacotes linkados com uma versão antiga do
python e recompila eles. É bom tu rodar o python-updater o quanto
antes pra evitar esse mesmo problema com outros pacotes.
[]s
--
thiago
^ permalink raw reply [flat|nested] 8+ messages in thread
* Res: [gentoo-user-br] Python não acha lib PyOpenGL
2010-07-08 23:45 ` Thiago Nunes
@ 2010-07-09 1:02 ` Raphael MD
0 siblings, 0 replies; 8+ messages in thread
From: Raphael MD @ 2010-07-09 1:02 UTC (permalink / raw
To: gentoo-user-br
Quanto eu atualizei p python eu rodei o python-updater sim! com tanto que quase
todos os pacotes funcionam bem! so esse que deu problema.
Mas mesmo assim valeu pela dica vou passar o python-updater de novo!
Valew
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-07-09 1:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 3:08 [gentoo-user-br] Python não acha lib PyOpenGL Raphael MD
2010-07-08 3:36 ` Zhu Sha Zang
2010-07-08 19:11 ` Res: " Raphael MD
2010-07-08 21:35 ` Dalton Barreto
2010-07-08 21:52 ` Thiago Nunes
2010-07-08 22:18 ` Res: " Raphael MD
2010-07-08 23:45 ` Thiago Nunes
2010-07-09 1:02 ` Res: " Raphael MD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox