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
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to