Re: [sumo-user] Problem with xml2csv.py

2020-07-14 Thread MohamadReza-Haghani
Thank you very much Harald. I added "--separator=','", and the output csv file became in the correct format. I really appreciate your help. -Reza -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@ecli

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread Harald Schaefer
Hi Reza, it works for me (under Linux and with the latest development version). The delimiter is a semicolon. This is the output with schema: ==> tripinfo.csv <== tripinfo_id;tripinfo_depart;tripinfo_departLane;tripinfo_departPos;tripinfo_departPosLat;tripinfo_departSpeed;tripinfo_departDelay

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread MohamadReza-Haghani
Thanks. I did accordingly and installed lxml. Now when I run the command "python xml2csv.py tripinfo.xml --xsd=tripinfo.xsd --validation," it does not show any error. However, the same problem still exists that all of the attributes for a vehicle are in a single cell in the csv file. I would like t

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread Harald Schaefer
I think you must compile lxml or load a precompiled version, search in the internet for "windows adding lxml to python" Am 13.07.20 um 21:54 schrieb MohamadReza-Haghani: Thank you very much. I moved their folder to another address with permission to write and got the output. However, different

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread MohamadReza-Haghani
Thank you very much. I moved their folder to another address with permission to write and got the output. However, different attributes were in a single cell in the output csv file. Therefore, I added an schema (https://github.com/eclipse/sumo/blob/master/data/xsd/fcd_file.xsd) in xsd format to get

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread Michael Behrisch
Hi, it seems you have no writing permissions to the directory. Try to set an explicit output file with -o in a directory where you can write. Best regards, Michael Am 12.07.20 um 03:12 schrieb Reza: > Hi, > > I am using the following command in cmd to export an xml file to csv format. > > pyth

[sumo-user] Problem with xml2csv.py

2020-07-11 Thread Reza
Hi, I am using the following command in cmd to export an xml file to csv format. python xml2csv.py fcd.xml My working directory is "C:\Program Files (x86)\Eclipse\Sumo\tools\xml." I also put the "fcd.xml" file in this directory. I get the following message and no csv output when running the cod

[sumo-user] Problem with xml2csv.py

2020-07-11 Thread Reza
Hi, I am using the following command in cmd to export an xml file to csv format. python xml2csv.py fcd.xml My working directory is "C:\Program Files (x86)\Eclipse\Sumo\tools\xml." I also put the "fcd.xml" file in this directory. I get the following message and no csv output when running the cod

Re: [sumo-user] problem with xml2csv.py

2017-10-20 Thread Jakob Erdmann
Hello, run the tool using it's full path: python c:\\sumo\tools\xml\xml2csv.py (or whatever the path on your operating system is) regards, Jakob 2017-10-20 14:56 GMT+02:00 Natalia Liora via sumo-user < sumo-u...@lists.sourceforge.net>: > Hello, > > I have downloaded the version 0.3 of sumo. I a

[sumo-user] problem with xml2csv.py

2017-10-20 Thread Natalia Liora via sumo-user
Hello, I have downloaded the version 0.3 of sumo. I am trying to run the tool xml2csv but I get the error: "python: can't open file 'xml2csv.py': [Errno 2] No such file or directory”. The tool, however, exists in the directory sumo/tools/xml/. Thank you, Natalia --