Re: [cgkit-user] Setting up rendering
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2010-10-26 21:12:56
|
Hi Greg, On 26.10.10 01:31, Greg Friedland wrote: > I'd appreciate your help with an issue I'm having. I just setup up cgkit > and have the viewer working but rendering with the RenderMain apis is > not working. When I run render.py I get the error: > > Exporting main.rib... > Traceback (most recent call last): > File "./render.py", line 361, in <module> > render.run() > [...] > File > "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/cgkit/ribexport.py", > line 172, 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 This is an error in PyProtocols (I guess it's just a bug inside the C code of PyProtocols), I also get that here. The workaround is to install PyProtocols without those speedups so that it's just a pure Python module. You can do that by passing a special option to the setup script (I think it's called --without-speedups or something like that. Have a look into the install docs). My longer term plan is to get rid of PyProtocols at some time, but that's not a quick task so don't hold your breath. Cheers, - Matthias - |