[ pyopengl-Support Requests-1944190 ] GL support for Python UCS4

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Support Requests item #1944190, was opened at 2008-04-16 09:40
Message generated for change (Comment added) made by infojbbs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=205988&aid=1944190&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brody (infojbbs)
Assigned to: Nobody/Anonymous (nobody)
Summary: GL support for Python UCS4

Initial Comment:
If you build python with the --enable-unicode=ucs4 as with several large 3d packages, (Maya, Houdini on linux64) You can not use the full opengl module.  Example below

Python 2.5.1 (r251:54863, Apr  8 2008, 11:09:35) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenGL
>>> import OpenGL.GL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/imd/tool/app/python/packages/OpenGL/OpenGL-3.0.0b1/python-2.5.1/linux64/OpenGL/GL/__init__.py", line 2, in <module>
    from OpenGL.raw.GL import *
  File "/imd/tool/app/python/packages/OpenGL/OpenGL-3.0.0b1/python-2.5.1/linux64/OpenGL/raw/GL/__init__.py", line 6, in <module>
    from OpenGL.raw.GL.constants import *
  File "/imd/tool/app/python/packages/OpenGL/OpenGL-3.0.0b1/python-2.5.1/linux64/OpenGL/raw/GL/constants.py", line 7, in <module>
    from OpenGL import platform, arrays
  File "/imd/tool/app/python/packages/OpenGL/OpenGL-3.0.0b1/python-2.5.1/linux64/OpenGL/platform/__init__.py", line 57, in <module>
    _load()
  File "/imd/tool/app/python/packages/OpenGL/OpenGL-3.0.0b1/python-2.5.1/linux64/OpenGL/platform/__init__.py", line 53, in _load
    sys.platform, os.name,
RuntimeError: Unable to find an implementation for the 'linux2' ('posix') platform
>>> 

----------------------------------------------------------------------

>Comment By: Brody (infojbbs)
Date: 2008-04-16 14:55

Message:
Logged In: YES 
user_id=2064872
Originator: YES

So it turns out that I am just a fool and I need to make sure that I am
building with python that has ez_setup.py tools already installed.  This
was specifically for running pyopengl from with in maya 2008 linux 64.  So
I have fixed this by using the ez-setup.py with the mayapy.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=205988&aid=1944190&group_id=5988

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.