1) in houdini open the python script window
2) hou.hscript(“openport 8888”)
3) hcommand 8888 “<?xml version = ‘1.0’ ?><python_statements>x=1; print ‘hello !, x =’,x </python_statements>”
Works ok (message ‘hello …’ is received in the Houdini python script window
————–
hython or python from Win XP cmd prompt :
>>> s = houxmlrpc.ServerProxy('http://localhost:8888 [localhost]')
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “CHoudini10.0.528/houdini/scripts/python\houxmlrpc.py”, line 403, in _
init__
self._methods = self.system.listMethods()
File “C:\Houdini10.0.528\python\lib\xmlrpclib.py”, line 1147, in __call__
return self.__send(self.__name, args)
File “CHoudini10.0.528/houdini/scripts/python\houxmlrpc.py”, line 412, in _
request
response = xmlrpclib.ServerProxy.__request(self, methodname, params)
File “C:\Houdini10.0.528\python\lib\xmlrpclib.py”, line 1437, in __request
verbose=self.__verbose
File “C:\Houdini10.0.528\python\lib\xmlrpclib.py”, line 1183, in request
self.send_content(h, request_body)
File “C:\Houdini10.0.528\python\lib\xmlrpclib.py”, line 1297, in send_content
connection.endheaders()
File “C:\Houdini10.0.528\python\lib\httplib.py”, line 860, in endheaders
self._send_output()
File “C:\Houdini10.0.528\python\lib\httplib.py”, line 732, in _send_output
self.send(msg)
File “C:\Houdini10.0.528\python\lib\httplib.py”, line 699, in send
self.connect()
File “C:\Houdini10.0.528\python\lib\httplib.py”, line 683, in connect
raise socket.error, msg
socket.error: (10061, ‘Connection refused’)
houxmlrpc.ServerProxy fails from hython / python
2757 0 1- mstram
- Member
- 77 posts
- Joined: 7月 2005
- Offline
-
- Quick Links