Look carefully at your quotation marks. The ones around 'best' are more
curly than the one after --trip-attributes=.
These typographic quotation marks are often inserted by text processing
applications.
Most likely the xml parsing brakes on these non-standard quotation marks.

2018-03-23 15:37 GMT+01:00 Jonathan Harper <jonathan.v.har...@gmail.com>:

> Hi Jakob,
>
>
>
> Upon doing ‘sumo –version’ I get back the version “SUMO Version
> v0_32_0+0567-75b159a203”. I am using 64 bit Windows 10 OS.
>
>
>
>    1. In my case the trip file is created, however, the route files are
>    not made (calling DUAROUTER by -r routes.xml in the randomTrips command).
>    2. This is the same in my case. When running the command ‘python
>     randomTrips.py -n map.net.xml --trip-attributes="departLane=\best\ "
>    -r routes.xml’ I have an error returned by DUAROUTER “Error: attribute
>    value expected” & “Quitting (on error)”. The issue is when a correct input
>    is passed, e.g. ‘python  randomTrips.py -n map.net.xml
>    --trip-attributes="departLane=\”best\” departPos=\”random\”" -r
>    routes.xml’ no error is returned and no routes.xml file is created.
>
>
>
> Interestingly, when passing one correct parameter, e.g. ‘python
>  randomTrips.py -n map.net.xml --trip-attributes="departLane=\”best\”” -r
> routes.xml’, the same error “Error: attribute value expected” occurs,
> whereas with multiple parameters for –trip-attributes produces no error
> (and subsequently no route file).
>
>
>
> Kind regards,
>
> Jonathan
>
>
>
> *From: *Jakob Erdmann <namdre.s...@googlemail.com>
> *Sent: *23 March 2018 11:24
> *To: *Jonathan Harper <jonathan.v.har...@gmail.com>; Sumo project User
> discussions <sumo-u...@eclipse.org>
> *Cc: *sumo-user@lists.sourceforge.net
> *Subject: *Re: [sumo-user] Error in randomTrips.py -> Routes with
> Inclusionof'--trip-attributes'
>
>
>
> Hello,
>
> I am unable to reproduce both of these problems using the latest version
> of sumo
>
> 1) with the given command a trip file with correct format is created
>
> 2) when passing a randomTrips command that creates trips with invalid
> attributes ( departLane=\best\ ) randomTrips aborts with an error from
> duarouter
>
> what version of sumo and what operating system are you using?
>
> regards,
>
> Jakob
>
>
>
>
>
> 2018-03-22 23:40 GMT+01:00 Jonathan Harper via sumo-user <
> sumo-user@lists.sourceforge.net>:
>
> Hello,
>
> I’m currently running a command to generated random trips to routes (using
> DUAROUTER). The command I am using is ‘python randomTrips.py -n
> input_net.net.xml --trip-attributes="departLane=\"best\"
> departSpeed=\"max\" departPos=\"random\""’, however, when appending the
> command ‘-r routes.xml’ DUAROUTER does not run (no success or failure, just
> no notification at all – this is confirmed as the file ‘routes.xml’ has not
> been created).
>
> When running command ‘duarouter -n input_net.net.xml –route-files
> trips.trips.xml -o routes_new.xml’ I receive the error “Error: attribute
> value expected”.
>
> When I remove any of the ‘—trips-attributes’ from the randomTrips.py
> command it is successful.
>
> An example trip in the trips.trips.xml file is as follow: <trip id="0"
> depart="0.00" from="499172074#1" to="496992868" departLane=\best\
> departSpeed=\max\ departPos=\random" --route-file hello.xml/>
>
> Kind regards,
> Jonathan
>
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> ------------------------------------------------------------
> ------------------
> 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-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> _______________________________________________
> sumo-user mailing list
> sumo-u...@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_7002783163884056472_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
------------------------------------------------------------------------------
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-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to