Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Type Error when using opengl in python

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2017

    Type Error when using opengl in python

    I got an error that writes:
    TypeError:must be int or slice,not VAO
    In python while using opengl.
    I am not sure which line causes the error. Just wanted to know what could have cause this.I know this is a python problem,not opengl,but I hope you can help me,because it contains opengl codes.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    This isn't really an OpenGL question, but your error suggests a problem indexing into a list or container in your app, where a VAO is provided instead of a valid index (or slice):

    e.g. list[ vao ] instead of list[ 1 ] or list[ 0..2 ].

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts