Skip to content

The example does not work #3

@SaturnHafen

Description

@SaturnHafen

When trying to run the example, the program crashes with an AtributeError.

Stack trace:

saturnhafen@pop-os:~/Code/Bachelorprojekt/yaramo-testing/sumo-exporter/examples$ poetry run python example.py 
--------------------------------------------------
----- Warnings -- count: 3 -----
Warning: Value "Notstromaggregat_NEA_stationaer" near line 50 does not match xsd enumeration restriction on ENUMEV_Art
Warning: Value "1" does not match xsd pattern restrictions: [['^([0-9]{2})$']]
Warning: Value "4" does not match xsd pattern restrictions: [['^([0-9]{2})$']]
--------------------------------------------------
Traceback (most recent call last):
  File "/home/saturnhafen/Code/Bachelorprojekt/yaramo-testing/sumo-exporter/examples/example.py", line 12, in <module>
    sumo_exporter.convert()
  File "/home/saturnhafen/Code/Bachelorprojekt/yaramo-testing/sumo-exporter/sumoexporter/sumoexporter.py", line 19, in convert
    self.convert_topology()
  File "/home/saturnhafen/Code/Bachelorprojekt/yaramo-testing/sumo-exporter/sumoexporter/sumoexporter.py", line 26, in convert_topology
    point_obj = Point(yaramo_node.uuid, yaramo_node.geo_node.uuid)
AttributeError: 'NoneType' object has no attribute 'uuid'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions