Hello,

I am using the toolbox (convert_vissimXML_flows_statRoutes.py) to convert
vissim to sumo route file and here is result:

Namespace(SUMO_net='net.net.xml', output_file='outputfile',
vissim_input='robust_hmt_matlabhoz.inpx')

---

* loading VISSIM net:
         robust_hmt_matlabhoz.inpx
---

* loading SUMO net:
         net.net.xml
Traceback (most recent call last):
  File 
"/home/phuong/Downloads/sumo-svn/tools/import/vissim/convert_vissimXML_flows_statRoutes.py",
line 380, in <module>
    validate_rel_flow(routes_by_start_d)
  File 
"/home/phuong/Downloads/sumo-svn/tools/import/vissim/convert_vissimXML_flows_statRoutes.py",
line 234, in validate_rel_flow
    route["rel_flow"][:, 0]) == False:
IndexError: too many indices for array

Can you please give me some ideas/suggestions to fix this error?

Thank you very much.

Best regards,

Phuong.


On Mon, Oct 2, 2017 at 7:56 AM, Phuong Nguyen <[email protected]>
wrote:

> Good morning,
>
> Thank you for your instruction.
>
> Have a good day.
>
> Best regards,
>
> Phuong.
>
> On Sun, Oct 1, 2017 at 9:40 PM, Jakob Erdmann <[email protected]>
> wrote:
>
>> Hello,
>> the toolbox is part of the sumo download.
>> to import routes make sure you have a working python 2.7 installation (
>> https://www.python.org/downloads/) and run the tool below (in
>> sumo/tools/import/vissim)
>>
>> convert_vissimXML_flows_statRoutes.py -V <vissim-file> -S 
>> <sumo-network-file> -o <output-filename>
>>
>>
>> regards,
>> Jakob
>>
>> 2017-10-01 21:37 GMT+02:00 Phuong Nguyen <[email protected]>:
>>
>>> Dear Jakob,
>>>
>>> Thank you so much for your kindly help.
>>> I have successfully converted vissim inpx file to sumo (net.xml) file.
>>> However, in order to run the scenario using sumo, I need to convert route
>>> file as well. I found from http://sumo.dlr.de/wiki/N
>>> etworks/Import/Vissim that I can use Vissim Import Toolbox to convert
>>> route file but unfortunately it is described in Germany. Is this toolbox
>>> exist and if so, where can I download it?
>>>
>>> Thank you very much.
>>>
>>> Best regards,
>>>
>>> Phuong.
>>>
>>>
>>> On Thu, Sep 28, 2017 at 11:18 AM, Jakob Erdmann <
>>> [email protected]> wrote:
>>>
>>>> Thank you for providing the input file.
>>>> The error was due to a bug in netconvert which has now been fixed
>>>> (revision [26264]).
>>>> You can either build this from source on linux or download the updated
>>>> windows binaries tomorrow (http://sumo.dlr.de/wiki/Downl
>>>> oads#SUMO_-_Latest_Development_Version)
>>>>
>>>> regards,
>>>> Jakob
>>>>
>>>> 2017-09-28 9:41 GMT+02:00 Jakob Erdmann <[email protected]>:
>>>>
>>>>> Please send me the input inpx file so I can take a look myself.
>>>>> regards,
>>>>> Jakob
>>>>>
>>>>> 2017-09-27 9:40 GMT+02:00 Phuong Nguyen <[email protected]>
>>>>> :
>>>>>
>>>>>> Good morning,
>>>>>>
>>>>>> I am so sorry for not explaining the report in detail.
>>>>>> I did replaced all empty values of xml attributes in the inpx file.
>>>>>> After that, I run the netconvert command again but the result was the 
>>>>>> same
>>>>>> with it before I replace empty values of xml attributes.
>>>>>> Here it is:
>>>>>>
>>>>>> warning: Environment variable SUMO_HOME is not set, using built in
>>>>>> type maps.
>>>>>> 85
>>>>>> 2
>>>>>> 211.74
>>>>>> -1221.07, -1531.35 -1220.78, -1530.12 -1202.48, -1346.63 -1201.82,
>>>>>> -1332.38 -1201.37, -1320.59
>>>>>> Error: Runtime error: Empty data while parsing 'robust.inpx'
>>>>>> Error: No nodes loaded.
>>>>>> Quitting (on error).
>>>>>>
>>>>>> So, there is nothing different before and after I remove empty values
>>>>>> of xml attributes in the inpx file.
>>>>>>
>>>>>> Can you please give me any suggestion about this problem?
>>>>>>
>>>>>> Many thanks and have a good day.
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Phuong.
>>>>>>
>>>>>> On Tue, Sep 26, 2017 at 8:41 PM, Jakob Erdmann <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Please extend your report of "it does not work" with some details
>>>>>>> (i.e. an error message or other failure symptoms).
>>>>>>>
>>>>>>> 2017-09-26 18:47 GMT+02:00 Phuong Nguyen <
>>>>>>> [email protected]>:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Thank you so much for your suggestion. I have replaced all empty
>>>>>>>> values of xml attributes in the inpx file but it does not work.
>>>>>>>> Can you please give me more suggestions?
>>>>>>>>
>>>>>>>> Thank you very much.
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> Phuong.
>>>>>>>>
>>>>>>>> On Tue, Sep 26, 2017 at 1:44 PM, Jakob Erdmann <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Somewhere in your inpx file is an xml attribute with an empty
>>>>>>>>> value (someAttribute=""). This is not expected by the importer.
>>>>>>>>> Search for "" in your file and try to remove the attribute (or set
>>>>>>>>> an appropriate value).
>>>>>>>>> regards,
>>>>>>>>> Jakob
>>>>>>>>>
>>>>>>>>> 2017-09-26 14:34 GMT+02:00 Phuong Nguyen via sumo-user <
>>>>>>>>> [email protected]>:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> I am trying to convert a vissim file to sumo using below command:
>>>>>>>>>>
>>>>>>>>>> netconvert --vissim-file=robust.inpx
>>>>>>>>>> --output-file=mySumofile.net.xml
>>>>>>>>>>
>>>>>>>>>> and here is result:
>>>>>>>>>> warning: Environment variable SUMO_HOME is not set, using built
>>>>>>>>>> in type
>>>>>>>>>> maps.
>>>>>>>>>> 85
>>>>>>>>>> 2
>>>>>>>>>> 211.74
>>>>>>>>>> -1221.07, -1531.35 -1220.78, -1530.12 -1202.48, -1346.63
>>>>>>>>>> -1201.82, -1332.38
>>>>>>>>>> -1201.37, -1320.59
>>>>>>>>>> Error: Runtime error: Empty data while parsing 'robust.inpx'
>>>>>>>>>> Error: No nodes loaded.
>>>>>>>>>> Quitting (on error).
>>>>>>>>>>
>>>>>>>>>> Can you please give me any suggestion with this problem.
>>>>>>>>>>
>>>>>>>>>> Thank you very  much indeed.
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>>
>>>>>>>>>> Phuong.
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Ms. Phuong Thi Mai Nguyen
>>>>>>>>>> PhD student, De Montfort University,
>>>>>>>>>> Leicester, UK.
>>>>>>>>>> Email: <email%[email protected]>
>>>>>>>>>> [email protected]
>>>>>>>>>>           [email protected]
>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>> ------------------
>>>>>>>>>> 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
>>>>>>>>>> [email protected]
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>>>>>>>> _______________________________________________
>>>>>>>>>> sumo-user mailing list
>>>>>>>>>> [email protected]
>>>>>>>>>> To change your delivery options, retrieve your password, or
>>>>>>>>>> unsubscribe from this list, visit
>>>>>>>>>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ms. Phuong Thi Mai Nguyen
>>>>>>>> PhD student, De Montfort University,
>>>>>>>> Leicester, UK.
>>>>>>>> Email: <email%[email protected]> [email protected]
>>>>>>>>           [email protected]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ms. Phuong Thi Mai Nguyen
>>>>>> PhD student, De Montfort University,
>>>>>> Leicester, UK.
>>>>>> Email: <email%[email protected]> [email protected]
>>>>>>           [email protected]
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Ms. Phuong Thi Mai Nguyen
>>> PhD student, De Montfort University,
>>> Leicester, UK.
>>> Email: <email%[email protected]> [email protected]
>>>           [email protected]
>>>
>>>
>>>
>>
>
>
> --
> Ms. Phuong Thi Mai Nguyen
> PhD student, De Montfort University,
> Leicester, UK.
> Email: <email%[email protected]> [email protected]
>           [email protected]
>
>
>


-- 
Ms. Phuong Thi Mai Nguyen
PhD student, De Montfort University,
Leicester, UK.
Email: <email%[email protected]> [email protected]
          [email protected]
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to