Message 1 of 1
Open Socket in Maya using Python?
Not applicable
01-07-2012
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
I am trying to open a socket in Maya for sending information out of Maya. I am trying the following code...
However, I keep getting the following error...
I'm not sure what the problem is. I only get the error if I execute the maya.connect line. Can someone please point me in the right direction?
Thanks,
Wes
I am trying to open a socket in Maya for sending information out of Maya. I am trying the following code...
import socket, sys
maya = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
maya.connect(("localhost", 5055))
However, I keep getting the following error...
error: file <string> line 1: 61 #
I'm not sure what the problem is. I only get the error if I execute the maya.connect line. Can someone please point me in the right direction?
Thanks,
Wes