Ask Your Question

WingWare and PyOpenGL

asked 2017-04-30 12:33:00 -0500

Edward Harmon's avatar

updated 2019-03-13 10:19:12 -0500

I'm using Windows 10, WingWare 101 V.6, Python 3.4 and PyOpenGL 3.1.1. I have a Python program that works when run from a command line or double clicking on the icon. When I try and run from inside WingWare from the Start/Continue menu I get the an Error with the line:

from OpenGL.GL import *

Any ideas?


Ed H.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-05-01 08:58:00 -0500

updated 2019-03-07 07:11:05 -0500

Wingware Admin's avatar

Most likely Wing is using a different Python version than the one where you installed PyOpenGL.  To fix this, go into that Python version or add the following to your code to see its output when you run it from the command line:

import sys

  Then take the full path this prints (without any quotes) and put it into the Python Executable in the Configure Python dialog (from the Source menu).

(In Wing Personal and Wing Pro this is instead in the Project Properties dialog, from the Project menu)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-04-30 12:33:00 -0500

Seen: 827 times

Last updated: Mar 07 '19