我已成功检出svn中的pyata并配置了路径变量。但是现在当我按照教程here中的指定运行example.py时,它会给我这个错误消息:
initializing server.pd...
Error connecting to localhost:3000: [Errno 10061] No connection could be made because the target machine actively refused it
Traceback (most recent call last):
File "example.py", line 60, in <module>
pd.init()
File "C:\Users\Fredrik\Anaconda\pyata\src\Pd.py", line 37, in init
self.clear()
File "C:\Users\Fredrik\Anaconda\pyata\src\Pd.py", line 59, in clear
self.c.send_pd(Box.canvas + "clear ; ")
File "C:\Users\Fredrik\Anaconda\pyata\src\communication.py", line 125, in send_pd
print "Error sending message %s : %s" % (message, err)
NameError: global name 'message' is not defined
生成错误的代码:
#sending a command to pd
def send_pd(self, commands):
try:
self.snd_socket.send(commands)
return True
except error, err:
print "Error sending message %s : %s" % (message, err)
return False
有人知道如何解决这个问题吗?