l_man

l_man

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Python (external) strange error May 29, 2008, 9:49 a.m.

Hi there,
I can call HOM commands from the external python app use houxmlrpc server. For some strange reasons not is impossible to establish connections between nodes.


import houxmlrpc
s = houxmlrpc.ServerProxy('http://localhost:8888 [localhost]')
hou = s.hou

geo = hou.node('/obj').createNode('geo')
for child in geo.children():
child.destroy()
box = geo.createNode('box')
subd = geo.createNode('subdivide')

#subd.setFirstInput(box)


if I uncomment last line, this script will not work,
with this error:



Traceback (most recent call last):
File “C:\Documents and Settings\****\workspace\hud\src\houd\HMprocessor.py”, line 29, in <module>
box.setFirstInput(file)
File “C:\Program Files\Side Effects Software\Houdini 9.1.124\houdini\scripts\python\houxmlrpc.py”, line 343, in __call__
return m(*args)
File “C:\Python25\Lib\xmlrpclib.py”, line 1147, in __call__
return self.__send(self.__name, args)
File “C:\Program Files\Side Effects Software\Houdini 9.1.124\houdini\scripts\python\houxmlrpc.py”, line 405, in __request
response = xmlrpclib.ServerProxy.__request(self, methodname, params)
File “C:\Python25\Lib\xmlrpclib.py”, line 1431, in __request
allow_none=self.__allow_none)
File “C:\Python25\Lib\xmlrpclib.py”, line 1080, in dumps
data = m.dumps(params)
File “C:\Python25\Lib\xmlrpclib.py”, line 623, in dumps
dump(v, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 635, in __dump
f(self, value, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 750, in dump_instance
self.dump_struct(value.__dict__, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 716, in dump_struct
dump(v, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 635, in __dump
f(self, value, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 750, in dump_instance
self.dump_struct(value.__dict__, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 716, in dump_struct
dump(v, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 635, in __dump
f(self, value, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 750, in dump_instance
self.dump_struct(value.__dict__, write)
File “C:\Python25\Lib\xmlrpclib.py”, line 704, in dump_struct
raise TypeError, “cannot marshal recursive dictionaries”
TypeError: cannot marshal recursive dictionaries


Anyone know how I can fix it?