0

I have successfully checked out pyata from the svn and configured the path variable. But now when I run example.py, as specified in the tutorial here, it gives me this error message:

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

The code generating the error:

#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

Anybody know how to fix this?

gefdel
  • 59
  • 1
  • 7
  • Have you tried disabling your firewall? Have you tried a different port? – Max N Oct 25 '15 at 13:29
  • 1
    please also post the source-code that is raising the error – umläute Oct 28 '15 at 12:02
  • I have tried disabling the firewall. I haven't tried a different port, the specified port should be the correct one. I wouldn't know which other one to try? – gefdel Oct 29 '15 at 13:14
  • On a Linux system there should be the file /etc/services that contains all the ports and their registered services. No idea how that works on Windows though. Just try a few. – Max N Nov 12 '15 at 14:20

0 Answers0