Category archives: Snaking
Discussions of programming, particularly of programming Python
Argh, two hours wasted (Testing is useless if the app you're using to record results crashes...)
Written by
on
in
Snaking.
Spent almost 2 solid hours running tests for OpenGL-ctypes on AMD64 Linux this afternoon. Unfortunately, NVU crashed as I was entering the result for the second-to-last test. Argh. Apparently I didn't save during the entire period, so the recorded tests are at exactly the same point they were yesterday.
I'm going to skip doing the ...!-->!-->
Bit of project maintenance work on OpenGL (Before and after work...)
Written by
on
in
Snaking.
Integrated a patch from Marco and answered various project-related emails this morning. Then started writing a "Using OpenGL in Python" document for the new release. Lastly started going through the demos and creating an up-to-date table showing passing/failing demos for each platform (well, just the one at the moment, but with space for the others). ...
A lesson from years of PyOpenGL (Not quite Zen, but oh well...)
Written by
on
in
Snaking.
I took over managing the PyOpenGL project a very long time ago. Over that period it's had a complete rewrite (two if you count OpenGL-ctypes) and has dramatically grown in complexity. However, for the most part it has "just worked"... once you got it installed.
Over the years, however, we've been dogged by extensive problems ...!-->!-->
Reversal on Ubuntu (I know they don't build from source very often, but really...)
Written by
on
in
Snaking.
I sat down briefly at Soni's last night to try to test OpenGL-ctypes, and OpenGLContext. After a bit of wrestling to get a non-admin setuptools install I realised that Soni didn't have ctypes installed. Okay, so download and build ctypes... except that the libffi failed to build (compilation errors).
I was too sick/out-of-it to think ...!-->!-->
A weekend of little tasks (Bits and pieces but no great accomplishments)
Written by
on
in
Snaking,
Vindaloo.
I took a 4 day weekend intending to spend the entire time on OpenGL-ctypes and related projects, trying to get the whole enchilada moved to an alpha release. Somehow out of the entire weekend I only seemed to get about 1 day of hacking in.
During that short period I ported SimpleParse and TTFQuery to ...!-->!-->
VRML97 converted to use numpy or Numeric (and setuptools...)
Written by
on
in
Snaking.
I've converted the VRML97 scenegraph accellerator modules to use numpy (preferred) or Numeric. I also discovered a subtle import error, I had used from
ctypes import * in one of the modules and as a result it was shadowing a Numeric/numpy function (resize). I'll have to go through and eliminate all from ctypes import * ...
Don't get anywhere particularly useful on Win32 (Do get past the particular failure)
Written by
on
in
Snaking.
The proximate failure on Win32 appears to be a problem with how distutils handles "spawning" processes. If I replace the spawning code with os.system calls then SimpleParse builds correctly from distutils.
However, there's no Numeric for Python 2.5 against which to build, and I eventually just got tired of trying to figure out what I ...!-->!-->
SimpleParse has a Win32 Python 2.5 binary (Egads what a pain...)
Written by
on
in
Snaking.
Managed to convince the MSToolkit toolchain to create a binary for SimpleParse, though it required manually copying the individual commands distutils was spitting out and running them from the command line. Bah.
Apparently the MSToolkit as I have it set up always tries to run the linker and fails. There is also some problem with ...!-->!-->
Bit of work with TurboGears (Have to work with it more often)
Written by
on
in
Snaking.
Spent the day doing mock-up of a Voicemail configuration and "viewing" web-site in Turbogears. Still just early moments, such little things as actually hooking it up to Asterisk realtime and the like haven't been touched, I'm just populating the tables it requires. I like the jsonify mechanism, makes it easy to define how to linearise ...
Win32 goes reasonably well (With a few annoyances...)
Written by
on
in
Snaking.
A few changes to the Win32 platform module and a few tweaks to deal with problems on Win32 (particularly with one of the image-packing settings that gets rejected as invalid, but which is just a belt-and-suspenders setting anyway).
Considerable number of the OpenGLContext demos are now working on Win32. I'll need to get various (compiled) ...!-->!-->