Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] cross.sumocfg's error

Hello,
Python 3.9.0 is installed on my system. By double-clicking on runner.py in "C:\Program Files (x86)\Eclipse\Sumo\doc\tutorial\traci_tls", nothing is changed. On the other hand, I tried to run it by the editor which the result is :

  File "C:\Program Files (x86)\Eclipse\Sumo\doc\tutorial\traci_tls\runner.py", line 47, in generate_routefile
    with open("data/cross.rou.xml", "w") as routes:

PermissionError: [Errno 13] Permission denied: 'data/cross.rou.xml'. So it is clear that the matter is cross.rou.xml as you mentioned.
I don't know where the problem is.

Yours faithfully,
Ali




On Fri, Mar 12, 2021 at 5:06 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
The sumocfg tries to load traffic demand (cross.rou.xml).
However, this file is not included in the tutorial. Instead, it is generated when calling runner.py.
If python is installed on your machine, then double-clicking the runner.py should be enough.


Am Fr., 12. März 2021 um 12:41 Uhr schrieb ali mirzaei <alimrz222@xxxxxxxxx>:
Hello,
As far as I understand, there are two conditions. The first condition is a common junction(cross. sumocfg) that I am not able to run from the SUMO package and encountered that error mentioned earlier. The second one is the same junction with a detector activated by runner.py to make the lights green through passing emergency vehicles, etc, which unfortunately didn't run too. 
1- Did I get the conditions correctly?
2- To run the files, another SUMO package must be downloaded and inserted in another path?
3- Why am I not able to run the first condition? Should it be started by the other tool instead of GUI? Does it have to do with the path of the SUMO package?
4- To run the second condition, should I start with cmd? If so, how?

Best regards,
Ali 
 

On Fri, Mar 12, 2021 at 1:30 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
This is a traci tutorial so you need to execute runner.py instead of opening the sumocfg (requires python to be installed).

Am Do., 11. März 2021 um 23:24 Uhr schrieb ali mirzaei <alimrz222@xxxxxxxxx>:
Hello, 
According to https://sumo.dlr.de/docs/Tutorials/index.html, I downloaded the complete sumo package for using examples from the test suit. When I open GUI and call the cross.sumocfg file from the downloaded and unzipped sumo, the error below makes the running stopped.
Error: The route file 'D:\ali mirzaei\app\sumo zip files\sumo-1.8.0\docs\tutorial\traci_tls\data\cross.rou.xml' is not accessible.
Quitting (on error).
What's wrong with it?

Regards,
Ali
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top