Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Programs won't run from NetEdit due to spaces in SUMO_HOME

In the upcoming release, spaces in SUMO_HOME will be handled automatically (https://github.com/eclipse/sumo/issues/13458)
As a workaround you can define the whole of SUMO_HOME with quotes:

set SUMO_HOME="path with space"


Am Mo., 19. Juni 2023 um 19:17 Uhr schrieb Doug Frasher <dhfrasher@xxxxxxxxx>:
In Windows, trying to execute a tool application from NetEdit results in an error complaining about the spaces in c:\Program Files (x86)\Eclipse ..

python C:\Program Files (x86)\Eclipse\Sumo/tools/randomTrips.py --net-file "C:\Users\dhfra\Sumo\experiment1.net.xml" --route-file "C:\Users\dhfra\Sumo\experiment1.rou.xml" starting process...
python: can't open file 'C:\\Program': [Errno 2] No such file or directory

process finished

I tried using "" around the space containing text in my definition of SUMO_HOME, which changes the error to:

python C:\"Program Files (x86)"\Eclipse\Sumo/tools/randomTrips.py --net-file "C:\Users\dhfra\Sumo\experiment1.net.xml" --route-file "C:\Users\dhfra\Sumo\experiment1.rou.xml" starting process...
python: can't open file 'C:\\Program Files (x86)\\Eclipse\\Sumo\\"Program': [Errno 22] Invalid argument
process finished



I understand I can manually run this in command prompt by first going to the directory where the app is located. I am wondering how to fix this problem with spaces in general however.

Searches show that this is an issue that appears to have many possible fixes but I can't find a general solution to what I assume is an inherent problem.

Thanks!
Doug
_______________________________________________
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