On 7/3/14 10:18 PM, Sidharth S wrote:
> Thanks for the response. I tried to do the same tutorial for SUMO 0.21
> in Windows and even I am getting the same issue. As soon as I run the
> script in the gui or non-gui mode. the status message shows: Starting
> server on port 8813 and doesn't proceed. Would be happy to know the
> solution to this!
I made two changes to vehicleControl.py:
1) add a line "import time" up near the top (I put it just after the
"import subprocess...")
2) add a line "time.sleep(2)" just after the call to Popen() and just
before the call to traci.init()
This is python so your line indenting must match the lines around the
new ones.
atm the runner.py program fails to properly run the second simulation,
giving an error that the traci server is terminating the simulation, but
each simulation runs fine by itself.
hth
- Tom
>
> Thanks,
> Sidharth S
>
>
> On Fri, Jul 4, 2014 at 2:48 AM, Thomas Lockhart
> <[email protected] <mailto:[email protected]>>
> wrote:
>
> On 7/2/14 11:20 PM, Jakob Erdmann wrote:
>> Hello,
>> the city_mobil scenario has not been dropped from the sumo
>> distro. For me it runs fine on windows and linux using version
>> 0.21.0
>> If it fails for you 0.21.0 please post the error message to the list.
>> Hower, it is also working for me with version 0.20.0.
> I do have a problem with the two simulations I have tried,
> including city_mobil in version 0.21.0 and one of my own adapted
> from a runner.py in another sumo simulation.
>
> When running on a Mac laptop at least, I need to put a
> "time.sleep(2)" in between when sumo or sumo-gui is started and
> when traci.init() is executed. Otherwise it seems that
> traci.init() waits forever for the sumo port to be available.
>
> Do others notice this issue? Would waiting between these two steps
> be acceptable for other platforms? If so I'll post patches...
>
> - Tom
>
>
>>
>> The error message by Sidarth S suggests that the SiMTraM
>> distribution has some incompatibilities. We have no control over
>> that distribution and since it is based on a very old version of
>> sumo (0.12.3 i think) problems are to be expected. Check out
>> https://sites.google.com/site/simtramsimulator/ which is based on
>> version 0.17.0 and seems to be better supported by their current
>> maintainers.
>>
>> regards,
>> Jakob
>>
>>
>> 2014-07-02 20:53 GMT+02:00 Thomas Lockhart
>> <[email protected] <mailto:[email protected]>>:
>>
>> On 7/2/14 6:12 AM, Sidharth S wrote:
>> > Hello everyone,
>> >
>> > I am trying to run the CityMobil simulation from the SUMO
>> tutorials. The
>> > .net file is getting loaded but I am getting the following
>> error message in
>> > the command prompt when I run the simplemanager.py or the
>> agentmanager.py
>> > script :
>> What version of sumo are you running? afaict CityMobil has
>> been dropped
>> from the distro and we have found compatibility problems (as
>> one might
>> expect) trying to run against a current version.
>>
>> fwiw we do have one of the parking lots generated by the
>> CityMobil
>> example, combined with our own routes, working with sumo-0.21.0.
>>
>> - Tom
>>
>> >
>> > *(121, 18, 255) Error Wrong position in requestMessage
>> after dispatching
>> > command. Expected command length was 35 but 31 Bytes were
>> read.*
>> >
>> > Traceback (most recent call last):
>> > File "E:\Sidharth\SiMTraMEdit\bin\simpleManager.py",
>> line 56, in <module>
>> > vehicleControl.init(SimpleManager())
>> > File "E:\Sidharth\SiMTraMEdit\bin\vehicleControl.py",
>> line 83, in init
>> > cmdClose()
>> > File "E:\Sidharth\SiMTraMEdit\bin\traciControl.py", line
>> 670, in cmdClose
>> > _sendExact()
>> > File "E:\Sidharth\SiMTraMEdit\bin\traciControl.py", line
>> 111, in
>> > _sendExact _socket.send(_message.string)
>> >
>> > *socket.error: [Errno 10053] An established connection was
>> aborted by the
>> > software in your host machine*
>> >
>> > Any suggestion would be of great help.
>> > Thanks in advance!
>> > *Sidharth S*
>> >
>>
>> ------------------------------------------------------------------------------
>> > Open source business process management suite built on Java
>> and Eclipse
>> > Turn processes into business applications with Bonita BPM
>> Community Edition
>> > Quickly connect people, data, and systems into organized
>> workflows
>> > Winner of BOSSIE, CODIE, OW2 and Gartner awards
>> > http://p.sf.net/sfu/Bonitasoft
>> > _______________________________________________
>> > sumo-user mailing list
>> > [email protected]
>> <mailto:[email protected]>
>> > https://lists.sourceforge.net/lists/listinfo/sumo-user
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Open source business process management suite built on Java
>> and Eclipse
>> Turn processes into business applications with Bonita BPM
>> Community Edition
>> Quickly connect people, data, and systems into organized
>> workflows
>> Winner of BOSSIE, CODIE, OW2 and Gartner awards
>> http://p.sf.net/sfu/Bonitasoft
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>
>>
>
>
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user