fogleman / pg

Python OpenGL Graphics Framework

Home Page:http://pg.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run examples on OSX

kbrafford opened this issue · comments

commented

A fresh checkout on a new mac mini server running OSX gives this. All demos do the same thing:

(venv)miniserver:pg keith$ python main.py
Select an example to run:

  1. csg
  2. cuboids
  3. font
  4. moving_spheres
  5. poisson_spheres
  6. sphere
  7. temp
  8. terrain
  9. textured_sphere

    1
    Traceback (most recent call last):
    File "main.py", line 63, in
    main()
    File "main.py", line 58, in main
    module.Window()
    File "/Users/keith/pg/pg/core.py", line 305, in init
    self.call('setup')
    File "/Users/keith/pg/pg/core.py", line 372, in call
    getattr(listener, name)(_args, *_kwargs)
    File "/Users/keith/pg/examples/csg.py", line 17, in setup
    self.context.position = pg.VertexBuffer(position)
    File "/Users/keith/pg/pg/core.py", line 33, in init
    glGenBuffers(1, byref(handle))
    File "/Users/keith/GitHub/sandbox/venv/lib/python2.7/site-packages/OpenGL/latebind.py", line 45, in call
    return self._finalCall( _args, *_named )
    File "/Users/keith/GitHub/sandbox/venv/lib/python2.7/site-packages/OpenGL/wrapper.py", line 570, in wrapperCall
    pyArgs = tuple( calculate_pyArgs( args ))
    File "/Users/keith/GitHub/sandbox/venv/lib/python2.7/site-packages/OpenGL/wrapper.py", line 347, in calculate_pyArgs
    args
    ValueError: glGenBuffers requires 1 arguments (n), received 2: (1, <cparam 'P' (0x107f8ca30)>)
    (venv)miniserver:pg keith$