[Bf-python] Fiber13 runs!

Jacques Guignot guignot at wanadoo.fr
Sat Jul 12 01:47:47 CEST 2003


nearly...


A weird thing occurs. Maybe python gurus, if any, will sove it.

Fiber13 needs a C module, named dynoise.so, and Blender does not want to 
load it...

When this module is loaded from python, no problemo, just a warning :

 >>> import dynoise
__main__:1: RuntimeWarning: Python C API version mismatch for module 
dynoise: This Python has API version 1011, module dynoise has version 1009.
 >>>

When the api wants to pass this warning to the module warning of python, 
this module generates an error, because it expects to find the name of 
the file in sys.argv[0]

A short and dirty workaround is to put the following lines before import 
dynoise :

import sys
sys.argv = []
sys.argv.append('dynoise.so')
import dynoise






More information about the Bf-python mailing list