| Issue 55: | Small bug in oscAPI.py | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Run any example that will fail to bind to port 3333 on localhost 2. 3. What is the expected output? What do you see instead? This should be printed on the command line: "there was an error binding to ip 127.0.0.1 and port 3333 , maybe the port is already taken by another process?" What version of the product are you using? On what operating system? I just downloaded the source from svn today. Running on Windows XP Please provide any additional information below. It's a small bug on line 113: print 'there was an error binding to ip %s and port %i , maybe the port is already taken by another process?' % (ipAddr. port) should instead be: print 'there was an error binding to ip %s and port %i , maybe the port is already taken by another process?' % (ipAddr, port) I am however worried about the fact that many times the example apps fail to bind to my tBeta tracker port. I have no idea why that is happening, so any help is appreciated here.
Mar 29, 2009
#1
melinos....@gmail.com
Mar 29, 2009
If you are using createListener() method, it's not by us, and not really supported (as the comment say: "# OLD METHOD before chris implemented threads ## in case someone wants to use it .." Don't osc directly, use pymt TouchEventLoop !
Status:
Invalid
Mar 30, 2009
Please check the code again, the bug is inside the init method of the OSCServer, line 113. The same bug exists in the createListener method, which you have already removed as I have seen, because the print message was essentially copy-pasted I guess. My real problem however is the socket fails to bind " self.socket.bind( (ipAddr, port) )" which causes this unusual exception, when tBeta is sending TUIO events before the PyMT app is launched. All I did was try to run a few examples, a couple of tutorials. I apologise if you think my comment is irrelevant.
Mar 30, 2009
The osc code has been reworked, can you do these things : * remove your pymt installation from python folder * checkout the latest svn trunk * run setup.py build And test again ? If you got the same error, please provide a netstat info about what port are listening, Thanks ! Mathieu
Mar 30, 2009
Hi Melinos, Even i run pymt over windows xp, i dont face any problem, do this, 1. delete the entire svn folder and redownload the svn or update svn and delete "build" directory present in the svn folder 2. delete the pymt package from your python install directory. in my systems its here x:\Python26\Lib\site-packages delete both the folder and .egg file 3. run the setup.py file from the pymt svn folder. Let me know if this doesn't work, i'm sure this will solve it ~Sharath
Mar 31, 2009
Thanx for the help guys. It seems that the problem persists however. I checked out the latest svn trunk, removed pymt from the python site-packages and run setup.py again (I noticed the changes in oscAPI.py). But when I run tut2.py, I get this error: "[ERROR ] Address 127.0.0.1:3333 already in use, retry in 2 second". Here's the netstat info when I run netstat -a (if it's any help): Active Connections Proto Local Address Foreign Address State TCP cs5920:http cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:epmap cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:https cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:microsoft-ds cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:1045 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:1046 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:2115 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:mi-raysat_3dsmax9_32 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:8192 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:8193 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:8194 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:42413 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:netbios-ssn cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:1043 centaur.in.cs.ucy.ac.cy:8194 ESTABLISHED TCP cs5920:1044 cs5920.cs.ucy.ac.cy:8194 ESTABLISHED TCP cs5920:1046 cs5920.cs.ucy.ac.cy:1047 ESTABLISHED TCP cs5920:1047 cs5920.cs.ucy.ac.cy:1046 ESTABLISHED TCP cs5920:1070 by1msg5246612.phx.gbl:1863 ESTABLISHED TCP cs5920:1099 93.173.189.255:19926 ESTABLISHED TCP cs5920:1221 213-248-111-25.customer.teliacarrier.com:http CLOSE_WAIT TCP cs5920:2076 83-59-220.netrun.cytanet.com.cy:1667 ESTABLISHED TCP cs5920:2159 bw-in-f82.google.com:http CLOSE_WAIT TCP cs5920:8194 cs5920.cs.ucy.ac.cy:1044 ESTABLISHED TCP cs5920:1037 localhost:1038 ESTABLISHED TCP cs5920:1038 localhost:1037 ESTABLISHED TCP cs5920:1039 localhost:1041 ESTABLISHED TCP cs5920:1041 localhost:1039 ESTABLISHED TCP cs5920:1055 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:1075 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:1075 localhost:1079 ESTABLISHED TCP cs5920:1079 localhost:1075 ESTABLISHED TCP cs5920:2114 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:2114 localhost:2118 ESTABLISHED TCP cs5920:2115 localhost:2119 ESTABLISHED TCP cs5920:2118 localhost:2114 ESTABLISHED TCP cs5920:2119 localhost:2115 ESTABLISHED TCP cs5920:5152 cs5920.cs.ucy.ac.cy:0 LISTENING TCP cs5920:5152 localhost:2267 CLOSE_WAIT TCP cs5920:5354 cs5920.cs.ucy.ac.cy:0 LISTENING UDP cs5920:https *:* UDP cs5920:microsoft-ds *:* UDP cs5920:isakmp *:* UDP cs5920:1025 *:* UDP cs5920:ms-sql-m *:* UDP cs5920:2255 *:* UDP cs5920:4500 *:* UDP cs5920:42413 *:* UDP cs5920:discard *:* UDP cs5920:ntp *:* UDP cs5920:netbios-ns *:* UDP cs5920:netbios-dgm *:* UDP cs5920:1900 *:* UDP cs5920:5353 *:* UDP cs5920:ntp *:* UDP cs5920:1026 *:* UDP cs5920:1051 *:* UDP cs5920:1067 *:* UDP cs5920:1088 *:* UDP cs5920:1095 *:* UDP cs5920:1107 *:* UDP cs5920:1317 *:* UDP cs5920:1900 *:* UDP cs5920:2167 *:* UDP cs5920:3333 *:*
Apr 1, 2009
I finally got it. I am using PyDev in Eclipse as my python editor, and for some weird reason, the example that I run sometimes stays open even if I press terminate in Eclipse, causing the socket to stay binded. I think that's about it. Many thanks to everyone. (Btw is there some place I can post my questions/problems for example regarding some tutorials etc? )
Apr 1, 2009
Hi, Yes you can post your doubts/queries/problems here http://nuigroup.com/forums/viewforum/65/ :) or you are always welcome at the irc channel #pymt at freenode.net or you can use the mailing list too ~ Sharath |