Error in [Traffic assignment] - [add traffic class to assignment] when checked "remove selected links from the graph"

56 views
Skip to first unread message

JesseE

unread,
Jul 8, 2025, 5:24:08 AMJul 8
to AequilibraE
Hello everyone ,

Thanks for your great work!

I'm using the example project of SiouxFalls, there is an error in [Traffic assignment] - [add traffic class to assignment] when checked "remove selected links from the graph", so I can't use sub-graph ( not all the links ) to assignment ( I have already selected some links by tool of QGIS) , I wander how to fix this?

1751966374324.jpg
Best regards,
Jesse

An error has occurred while executing Python code:

AttributeError: 'TrafficAssignmentDialog' object has no attribute 'link_layer' Traceback (most recent call last):
  File "C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\modules\paths_procedures\traffic_assignment_dialog.py", line 260, in _create_traffic_class
    idx = self.link_layer.dataProvider().fieldNameIndex("link_id")
          ^^^^^^^^^^^^^^^
AttributeError: 'TrafficAssignmentDialog' object has no attribute 'link_layer'


Python version: 3.12.11 (main, Jun 17 2025, 13:41:12) [MSC v.1943 64 bit (AMD64)]
QGIS version: 3.40.8-Bratislava Bratislava, efaf8952e0

Python Path:
  • C:\Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\packages
  • D:/Program Files/QGIS 3.40.8/apps/qgis-ltr/./python
  • C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • D:/Program Files/QGIS 3.40.8/apps/qgis-ltr/./python/plugins
  • D:\Program Files\QGIS 3.40.8\apps\grass\grass84\etc\python
  • C:\Users\Administrator\Documents
  • D:\Program Files\QGIS 3.40.8\bin\python312.zip
  • D:\Program Files\QGIS 3.40.8\apps\Python312\DLLs
  • D:\Program Files\QGIS 3.40.8\apps\Python312\Lib
  • D:\Program Files\QGIS 3.40.8\bin
  • D:\Program Files\QGIS 3.40.8\apps\Python312
  • D:\Program Files\QGIS 3.40.8\apps\Python312\Lib\site-packages
  • D:\Program Files\QGIS 3.40.8\apps\Python312\Lib\site-packages\win32
  • D:\Program Files\QGIS 3.40.8\apps\Python312\Lib\site-packages\win32\lib
  • D:\Program Files\QGIS 3.40.8\apps\Python312\Lib\site-packages\Pythonwin
  • C:/Users/Administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\Administrator\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qaequilibrae

Pedro Camargo

unread,
Jul 8, 2025, 5:38:35 AMJul 8
to aequi...@googlegroups.com
This looks like a bug, Jesse.  Can you report it on GitHub? 

Cheers, 
Pedro 




---- On Tue, 08 Jul 2025 19:23:28 +1000 jesse...@gmail.com wrote ----

--
You received this message because you are subscribed to the Google Groups "AequilibraE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aequilibrae...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/aequilibrae/76ffcc40-7af1-466a-b792-262e1ff95cb0n%40googlegroups.com.

Renata Imai

unread,
Jul 8, 2025, 1:32:13 PMJul 8
to Pedro Camargo, aequi...@googlegroups.com
Hi Jesse!

Thanks for reporting this bug. I managed to fix it and added a new test to our code to avoid this from happening again. The fix will be at our next QAequilibraE release.

Cheers, Renata.

JesseE

unread,
Jul 11, 2025, 1:09:05 AMJul 11
to AequilibraE
OK!
Thanks for your reply!

Best regards,
Jesse

JesseE

unread,
Jul 11, 2025, 1:09:10 AMJul 11
to AequilibraE
Thank you very much!
Reply all
Reply to author
Forward
0 new messages