Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Attribute 'from' is missing in definition of edge

Thanks Harald for previous help, it worked in the directory, although I also had to call python3 (I assume I have some issues with my python settings). 


I’m following the edge count tutorial from the last conference:https://www.youtube.com/watch?v=aiOQbaB-pWo in a different OSM setting.

Created custom net with random trips. 
Trips generated routes (successfully according to timestamp).
Added various edgecounts, as parameter “entered”. 

When loading 1.sumocfg file with edgecounts.xml I get error messages for all edges where I added parameters:

Error: Attribute 'from' is missing in definition of edge '63682699#1'.
Error: Attribute 'to' is missing in definition of edge '63682699#1’

Where and how was I supposed to add them?

Any help is much appreciated, thanks,

Peter.

Attached the files.

Attachment: NoBuildings.zip
Description: Zip archive



On 12 May 2021, at 19:14, Harald Schaefer <HaraldSchaefer@xxxxxxxxxxx> wrote:

Hi Peter,

you must run build.bat in the directory, where osm.net.xml is.

Start a bash

goto to your directory

    cd /Users/peter\ biczok/2021-05-12-11-55-22

Start the script

    bash build.bat

Greetings, Harald


Am 12.05.21 um 15:08 schrieb Peter Biczok via sumo-user:
Hi Users, 

could someone point me to a solutions to this, I am sure probably some silly mistake I made.

1. Downloaded network with webwizard
2. Edited and saved net in netedit (see change in osm.net.xml)
3. Then ran build.bat but receiving an error


MacBook-Pro ~ % bash /Users/peter\ biczok/2021-05-12-11-55-22/build.bat 
Traceback (most recent call last):
  File "/usr/local/opt/sumo/share/sumo/tools/randomTrips.py", line 628, in <module>
    if not main(get_options()):
  File "/usr/local/opt/sumo/share/sumo/tools/randomTrips.py", line 446, in main
    net = sumolib.net.readNet(options.netfile)
  File "/usr/local/Cellar/sumo/1.9.1/share/sumo/tools/sumolib/net/__init__.py", line 816, in readNet
    parse(filename, netreader)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 105, in parse
    source = saxutils.prepare_input_source(source)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/saxutils.py", line 349, in prepare_input_source
    f = urllib.urlopen(source.getSystemId())
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 215, in open
    return getattr(self, name)(url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 471, in open_file
    return self.open_local_file(url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 485, in open_local_file
    raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: 'osm.net.xml'


Any thoughts? 
Much appreciated,

Peter.


<Screenshot 2021-05-12 at 15.05.20.png>

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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