Hello,

Thank you for your responses Michael and Jakob. I tried with different
ports but it was the same result. Also tried using netstat to see if
there's other process using the port but I didn't found anything. This are
the errors on the command line:
dazuma$ python runner.py
Loading configuration... done.
Traceback (most recent call last):
  File "runner.py", line 377, in <module>
    traci.init(PORT)
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/__init__.py", line
391, in init
    return getVersion()
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/__init__.py", line
413, in getVersion
    result = _sendExact()
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/__init__.py", line
235, in _sendExact
    _connections[""].send(length + _message.string)
socket.error: [Errno 32] Broken pipe

dazuma$ python runner.py
Loading configuration... done.
Error: tcpip::Socket::accept() Unable to create listening socket: Address
already in use
Quitting (on error).
delete after new[]: pointer 0x7fe1cdb33f40 (size 106)
at 0x7fff9353e7ef
originally allocated at 0x7fff96b7d81e
Traceback (most recent call last):
  File "runner.py", line 380, in <module>
    while step == 0 or traci.simulation.getMinExpectedNumber() > 0:
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/simulation.py", line
166, in getMinExpectedNumber
    return _getUniversal(tc.VAR_MIN_EXPECTED_VEHICLES)
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/simulation.py", line
48, in _getUniversal
    result = traci._sendReadOneStringCmd(tc.CMD_GET_SIM_VARIABLE, varID, "")
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/__init__.py", line
270, in _sendReadOneStringCmd
    return _checkResult(cmdID, varID, objID)
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/__init__.py", line
294, in _checkResult
    result = _sendExact()
  File "/Users/dazuma/Documents/sumo-svn/tools/traci/__init__.py", line
235, in _sendExact
    _connections[""].send(length_message.string)
KeyError: ''

When I used netstat while running sumo for the second time this is what
happened:
dyn-169-226-17-149:Intersecciones dazuma$ netstat | grep 8813
tcp4       0      0  localhost.8813         localhost.49793
 ESTABLISHED
tcp4       0      0  localhost.49793        localhost.8813
ESTABLISHED
dyn-169-226-17-149:Intersecciones dazuma$ netstat | grep 8813
tcp4       0      0  localhost.8813         localhost.49793
 ESTABLISHED
tcp4       0     14  localhost.49793        localhost.8813
ESTABLISHED
dyn-169-226-17-149:Intersecciones dazuma$ netstat | grep 8813
tcp4       0     30  localhost.8813         localhost.49793
 ESTABLISHED
tcp4       0      0  localhost.49793        localhost.8813
ESTABLISHED
dyn-169-226-17-149:Intersecciones dazuma$ netstat | grep 8813
tcp4       0     30  localhost.8813         localhost.49793
 ESTABLISHED
tcp4      26      0  localhost.49793        localhost.8813
ESTABLISHED
dyn-169-226-17-149:Intersecciones dazuma$ netstat | grep 8813
tcp4       0      0  localhost.8813         localhost.49793
 ESTABLISHED
tcp4       0      0  localhost.49793        localhost.8813
ESTABLISHED
dyn-169-226-17-149:Intersecciones dazuma$ netstat | grep 8813
tcp4       0      0  localhost.8813         localhost.49793
 ESTABLISHED
tcp4       0      0  localhost.49793        localhost.8813
ESTABLISHED

Any ideas?

Thanks in advance,
Dario


2014-02-09 15:12 GMT-05:00 Michael Behrisch <[email protected]>
:

> Hi,
> the second error most probably means that the server instance from the
> first try is still running. Are there no error mssages coming from sumo
> (anything besideds the python stack trace)? Another hint for finding
> open network sockets is to run "netstat -tulpen" in the terminal and
> look / grep for the ports you are interested in.
>
> Best regards,
> Michael
>
> Am 07.02.2014 00:18, schrieb Jakob Erdmann:
> > 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
> >
>
>
>
> ------------------------------------------------------------------------------
> 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

Reply via email to