WGL__init__ missing

Help
James H.
2004-05-08
2013-04-09
  • James H.

    James H. - 2004-05-08

    I've installed version 0.95 on a machine running Mac OS 10.2.8 and XDarwin, but I get the following error:

    -----------------------------------------------------------------------------
    >>> from pyui import core
    >>> core.init(100,100)
    Traceback (most recent call last):
      File "main.py", line 48, in ?
        run()
      File "main.py", line 42, in run
        core.init(width, height)
      File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/pyui/core.py", line 65, in init
      File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/pyui/renderers/openglPygame.py", line 25, in ?
      File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/pyui/renderers/openglBase.py", line 49, in ?
      File "/opt/local/lib/python2.3/site-packages/OpenGL/WGL/__init__.py", line 2, in ?
        from WGL__init__ import *
    ImportError: No module named WGL__init__

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

    This may well be an installation problem, but all the dependencies seem to be in order.

     
    • Thomas Fullhart

      Thomas Fullhart - 2004-06-13

      I get the same error. I suspect that the problem is that pyui, in openglBase.py, is making some Win32-specific calls and that it shouldn't be trying to use WGL on non-Windows platforms.

      I'm using the following combination:
      MacOS X 10.3.4 (comes with Python 2.3)
      MacPython-Panther-2.3-2 (http://homepages.cwi.nl/~jack/macpython/)
      pygame 1.6 (installed from http://undefined.org/python/pimp/\)
      pyui 0.95

       
    • Gilles Leblanc

      Gilles Leblanc - 2005-02-26

      I have a very similar problem under Gentoo Linux ( running on a pc ).

        File "/root/projects/dawn/dawn/pyui/renderers/openglBase.py", line 49, in ?
          from OpenGL.WGL import wglUseFontBitmaps, wglGetCurrentDC
      ImportError: No module named WGL

      Does anyone have any idea of what to do ?

       
    • Brandon N

      Brandon N - 2005-04-15

      In case no one figured it out, I also encountered this issue in Gentoo.

      The (temporary) fix is to simply comment out everything in WGL/__init__.py as well as line 49 in openglBase

      I haven't read enough of the source to see if there are any issues with this, but as WGL is a windows specific API, Mac OS and *nix should have no need to import it.

      HTH.

       
      • Michael Dorsett

        Michael Dorsett - 2005-04-19

        If my memory is correct, GLX would be the WGL equivalent for most OpenGL extensions. I don't have any problems in Fedora, but I don't have any WGL calls in the version of PYUI I am running.

        Mike

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks