Hello, 1) have you tried using different port numbers? (make sure that the port number in your python script matches the port number given to sume with the option --remote port) 2) could it be related to some sort of firewall / network security which is active on your mac? (disclaimer: I have pretty much 0 experience with OS X) regards, Jakob
2014-02-06 22:15 GMT+01:00 Dario Zubillaga <[email protected]>: > Hello, > > I'm a student working with SUMO to test different kinds of models for > traffic lights. One model in particular uses data from detectors which I > get from traci. I recently installed SUMO (the svn version) in a Mac OS X > 10.9.1. I can use both sumo and sumo-gui but I can't get TraCI to work. > I've been using a modified version of the TraCI tutorial code ( > http://sumo-sim.org/userdoc/Tutorials/TraCI4Traffic_Lights.html) but I get > two types of errors for which I haven't found an answer in the forums. Both > errors occur when I launch the python script on the command line: first > one, and when I try again, the other. > > The first error is documented but I haven't found a way to solve it. It > looks like this: > > Loading configuration... done. > > Traceback (most recent call last): > > File "runner.py", line 377, in <module> > > traci.init(PORT) > > File "~/sumo-svn/tools/traci/__init__.py", line 391, in init > > return getVersion() > > File "~/sumo-svn/tools/traci/__init__.py", line 413, in getVersion > > result = _sendExact() > > File "~/sumo-svn/tools/traci/__init__.py", line 235, in _sendExact > > _connections[""].send(length + _message.string) > > socket.error: [Errno 32] Broken pipe > > > I think the second error is related: > > > Error: tcpip::Socket::accept() Unable to create listening socket: Address > already in use > > Quitting (on error). > > > I've tried looking for other applications that uses any type of ports with > the 'ps' command without success. > > Also I used this same code on a computer working with Ubuntu and it worked > fine, but right now I don't have it and I need it to work in a computer > with Mac. > > Any comments or suggestions will be greatly appreciated. > > > Best Regards, > > Dario > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-devel > ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ sumo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-devel
