[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] PermissionError: [WinError 5] in Windows 8.1 when trying to do Traci Tutorial
|
I resend my mail unformatted this time:
would have worked this time, lol
The Tutorial code is as follows:
sumoBinary = r'C:\User\Desktop\MyGitRepo\swp-autonome-fahrzeuge-sose-2018\res\scenarios\duesseldorf'
sumoCmd = [sumoBinary, "-c", "duesseldorf.sumocfg"]
import traci
traci.start(sumoCmd)
step = 0
while step < 1000:
traci.simulationStep()
if traci.inductionloop.getLastStepVehicleNumber("0") > 0:
traci.trafficlight.setRedYellowGreenState("0", "GrGr")
step += 1
traci.close()
When I execute traci.start(sumoCmd) with Python 3.7.3 I receive the following error:
Traceback (most recent call last):
File "C:\User\Desktop\MyGitRepo\swp-autonome-fahrzeuge-sose-2018\test.py", line 14, in
traci.start(sumoCmd)
File "C:\User\Desktop\MyGitRepo\Sumo\tools\traci\main.py", line 125, in start
sumoProcess = subprocess.Popen(cmd2)
File "C:\User\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\User\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
PermissionError: [WinError 5] Zugriff verweigert
With Python 3.8.0 I get:
Traceback (most recent call last):
File "C:\User\Desktop\MyGitRepo\swp-autonome-fahrzeuge-sose-2018\test.py", line 14, in
traci.start(sumoCmd)
File "C:\User\Desktop\MyGitRepo\Sumo\tools\traci\main.py", line 125, in start
sumoProcess = subprocess.Popen(cmd2)
File "C:\User\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\User\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Zugriff verweigert
I also tried Python 2.7.14:
Traceback (most recent call last):
File "C:\User\Desktop\MyGitRepo\swp-autonome-fahrzeuge-sose-2018\test.py", line 14, in
traci.start(sumoCmd)
File "C:\User\Desktop\MyGitRepo\Sumo\tools\traci\main.py", line 125, in start
sumoProcess = subprocess.Popen(cmd2)
File "C:\Python27amd64\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27amd64\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 5] Zugriff verweigert
I tried to execute everything as admin already, I have permissions set in all the subfolders, nothing works.
I know that its not a problem with sumo, but did anyone else had this problem before and solved it?
This message was sent from valentin.klamka@xxxxxxxxxxxxxx to the sumo-user@xxxxxxxxxxx mailing list.
This message will not appear in this archive until it has been accepted by the mailing list. You may want to save a copy of this message in case it is not accepted.
Sent from the Sumo User Mailing List mailing list archive at Nabble.com.