Hi,

I has the same issue.
Check your ComSpec system variable (Windows Environment Variables). It should 
have only one entry 

%systemroot%\system32\cmd.exe

In my case I had to remove a tailing semicolon which caused the problem. I also 
heard of people with more than one entry. If this is legal than this is a bug 
in the subprocess.py
Workaround is to remove everything else from the variable than the entry 
mentioned above.

Hope this helps and best Regards,

Marcus


> Am 25.03.2015 um 18:28 schrieb amir nasiri <[email protected]>:
> 
> Hello everyone,
> When I run this script, it results to the following error:
> 
> Traceback (most recent call last):
>  File
> "C:\Users\Amirreza\Src\sumo-0.22.0\docs\tutorial\traci_tls\runner.py", line
> 127, in <module>
>    sumoProcess = subprocess.Popen([sumoBinary, "-c", "data/cross.sumocfg",
> "--tripinfo-output", "tripinfo.xml", "--remote-port", str(PORT)],
> stdout=sys.stdout, stderr=sys.stderr)
>  File "C:\Python27\lib\subprocess.py", line 702, in __init__
>    errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
>  File "C:\Python27\lib\subprocess.py", line 849, in _get_handles
>    c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
> UnsupportedOperation: fileno
> 
> How to resolve this problem or what is wrong with the running this script?
> Any help would greatly be appreciated.
> 
> -- 
> *Good luck to you.*
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to