Hello, the cross.sumocfg file is in the data subdirectory so you must load it like
subprocess.Popen([sumoBinary, "-c", "*data/*cross.sumocfg", ... 2017-12-13 8:18 GMT+01:00 NAVEEN RAI via sumo-user < sumo-u...@lists.sourceforge.net>: > Hi All, > > I get this error when I run the runner.py file available form the SUMO > website and the SUMO-GUI shows > Error: Could not access configuration 'cross.sumocfg'. > Quitting (on error). > > The SUMO-GUI however opens but can’t access the configuration file. > > File > "C:\Users\NAVEEN\Downloads\sumo-0.29.0\docs\tutorial\traci_tls\runner1.py", > line 179, in <module> > run() > File > "C:\Users\NAVEEN\Downloads\sumo-0.29.0\docs\tutorial\traci_tls\runner1.py", > line 137, in run > traci.trafficlights.setPhase("0", 2) > File "C:\Users\NAVEEN\Downloads\sumo-0.29.0\tools\traci\_trafficlights.py", > line 193, in setPhase > self._connection._sendIntCmd( > AttributeError: 'NoneType' object has no attribute '_sendIntCmd' > > I have attached the runner1.py file and I have created a different python > script to generate the route file and included that in the cross.sumocfg. > It is similar to the generate_function(). > > All I want to do is to load my first TRACI file, which happens to be > runner.py. > > > Regards, > Naveen Rai > > > Sent from Mail for Windows 10 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > sumo-u...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user