First time here? Check out the FAQ!
1

WingWare and PyOpenGL

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?

Thanks,

Ed H.

Edward Harmon's avatar
11
Edward Harmon
asked 2017-04-30 12:33:00 -0600
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 10:19:12 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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
print(sys.executable())​

  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)

Wingware Support's avatar
4k
Wingware Support
answered 2017-05-01 08:58:00 -0600
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 07:11:05 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer