Should SVN be in a working state? Everything's broken

4 views
Skip to first unread message

mark kimsal

unread,
Mar 19, 2009, 10:06:35 AM3/19/09
to PYGGEL-dev
I can't get any of the examples to work. Should svn be in a working
state?

cd /opt/pyggel-read-only/Robocalypto
PYTHONPATH=../build/lib/pyggel/ python ./run_game.py
File "/opt/pyggel-read-only/pyggel/view.py", line 297, in
require_init
raise TypeError, "pyggel.init must be called before this action
can occur"

There seems to be some mixup between view.init() and pyggel.init(),
even after adding pyggel.init() and/or pyggel.view.init() to
run_game.py it still gives the same error

cd ../pyggel/test/
PYTHONPATH=../../build/lib/pyggel/ python ./scene.py
from OpenGL import error
ImportError: cannot import name error

Python-OpenGL module has no attribute error. Is this an extremely old
or extremely new version of python-opengl? This error plagues pretty
much ever example since it happens in "view.py".

PYTHONPATH=../../build/lib/pyggel/ python ./shadows.py
File "./shadows.py", line 2, in <module>
from OpenGL.GL.ARB.shadow import *
ImportError: No module named shadow

Same question as above, extremely old or extremely new versions?

Python-ogre and Pyglet demos work fine (so I assume my python-opengl
installation is not 100% broken).

RB[0]

unread,
Mar 19, 2009, 10:47:49 AM3/19/09
to PYGGEL-dev
Well, I was mid-way through the gui/theme integration last night - so
anything relying on that code is broken, apologies.

pyggel.init = pyggel.view.init - it is just a pointer to that
function, mainly because at a later date other things may need to be
initiated so pyggel.init() should do all of them - for now though it
is just view.

For myself, I am using the most current release (I think) of ctypes
pyopengl.
For me I have an invalid syntax error when I run test.py - due to the
gui being messed up currently.

pyggel.init() must be called before almost any other pyggel code is
called, at teh very least anything having to do with loading/creating/
rendering of images/textures.

If your OpenGL has no module named error - then your opengl "is" in a
problematic state - neither Ogre nor pyglet use pyopengl (or python-
opengl), so you should try reinstalling it...

Otherwise, I will check into this more fully once I get the known
issues of not running no matter what done :)
Thanks for the report :)

RB[0]

unread,
Mar 19, 2009, 10:52:20 AM3/19/09
to PYGGEL-dev
Whoops!
My bad, once I fixed the silly syntax error in eh gui, I realized that
the gui is building a theme at init time to test, but this is
happening before you even can call pyggel. DOH!
Apologies, mate :S I was kinda out of it last night :S

But as far as opengl - that still is a problem I gotta look into :S

RB[0]

unread,
Mar 19, 2009, 12:05:09 PM3/19/09
to PYGGEL-dev
Alright - the theme system is done (I think) I tested and updated tests and it appears to be working correctly - if you could try to run now that would be great though :)

mark kimsal

unread,
Mar 19, 2009, 6:25:21 PM3/19/09
to PYGGEL-dev
Okay, had to install pyopengl 3.0. I had 2. But I checked the
reference docs, and there was no mention of an error module in 2 or 3,
so I wasn't sure that was the problem. I also didn't check the dates
of the download files on SF until just now, version 2 is a little out
of date.

Holy cow, did not know that pyglet didn't use pyopengl, I knew python-
ogre did not but...

Okay, robopocolyptico works.

On Mar 19, 12:05 pm, "RB[0]" <roeb...@gmail.com> wrote:
> Alright - the theme system is done (I think) I tested and updated tests and
> it appears to be working correctly - if you could try to run now that would
> be great though :)
>

pymike

unread,
Mar 19, 2009, 7:09:58 PM3/19/09
to pygge...@googlegroups.com
LOL "robopocolyptico"
--
- pymike
"Python eggs me on."

RB[0]

unread,
Mar 19, 2009, 10:34:29 PM3/19/09
to pygge...@googlegroups.com
Ok, thank you mark :)
Glad it fixed it for you :)

Yeah, we considered going over to pyglet, for it's 2d capability, but it just always seemed buggy for me, and just odd in how it worked - probably just a style thing, I dunno :S
Reply all
Reply to author
Forward
0 new messages