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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Edward Harmon's avatar
11
Edward Harmon
asked 7 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 6 years ago

Comments

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)

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 7 years ago
Wingware Admin's avatar
270
Wingware Admin
updated 6 years ago
link

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)