After compiling
cgkit-2.0.0alpha8.tar.gz
on a Linux Slackware 12 box, when trying to render with pixie an imported obj file (that I'm able to preview) I get the following message
TM_faces/3D_models> render.py -v --renderer=pixie Roby.obj
Python 2.5.1 (r251:54863, May 4 2007, 16:52:23)
[GCC 4.1.2]
Environment variable RENDER_DEFAULT_OPTIONS not set.
Loading "Roby.obj"...
Time range: 0.00s - <inf> (frames 0 - <inf>)
From: brunelli@fbk.eu
No camera set, using a default camera.
Exporting main.rib...
Traceback (most recent call last):
File "/usr/bin/render.py", line 361, in <module>
render.run()
File "/usr/lib/python2.5/site-packages/cgkit/tool.py", line 198, in run
self.action()
File "/usr/bin/render.py", line 237, in action
bakestvar = bakestvar
File "/usr/lib/python2.5/site-packages/cgkit/cmds.py", line 981, in save
exp.exportFile(os.path.basename(filename), **options)
File "/usr/lib/python2.5/site-packages/cgkit/ribexport.py", line 170, in exportFile
explgt = protocols.adapt(obj, ILightSource)
File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 199, in _speedups.adapt
File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 188, in _speedups._adapt
TypeError: exceptions must be strings, classes, or instances, not AdaptationFailure
Logged In: YES
user_id=211477
Originator: NO
I have seen that before and I think it is a bug in PyProtocols. This problem does not occur when you use the pure Python version of PyProtocols which you can install by passing a special option to the setup script of PyProtocols (I think it was called NO-SPEEDUPS or something like this, have look at their docs).
I would recommend to contact the author of PyProtocols about this as well. If I get some time I will have a look at what exactly the problem is (it hasn't happened on earlier versions of PyProtocols) and maybe I can send them a patch. So for now, I will leave this bug report open even though it's not a bug in cgkit.