Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: argument of type 'NoneType' is not iterable since v1.7.0 #212

Closed
IdrissaD opened this issue Jan 8, 2024 · 2 comments · Fixed by #213
Closed

TypeError: argument of type 'NoneType' is not iterable since v1.7.0 #212

IdrissaD opened this issue Jan 8, 2024 · 2 comments · Fixed by #213

Comments

@IdrissaD
Copy link

IdrissaD commented Jan 8, 2024

Here's what I did

Trying to calculate a route since upgrading to last ORS Tools version (v1.7.0)

image

Point 0: 3.940661, 44.239974
Point 1: 3.941208, 44.239852
Point 2: 3.942292, 44.239086

Here's what I got

Following error and no calculated route:

TypeError: argument of type 'NoneType' is not iterable 
Traceback (most recent call last):
  File "C:\Users/idrissa.djepa-creutz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\gui\ORStoolsDialog.py", line 251, in run_gui_control
    if my_new_path not in svg_paths:
TypeError: argument of type 'NoneType' is not iterable


Version de Python : 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
Version de QGIS : 3.28.5-Firenze Firenze, 50adba36f2 

Chemin Python :
C:/PROGRA~1/QGIS32~1.5/apps/qgis-ltr/./python
C:/Users/idrissa.djepa-creutz/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/idrissa.djepa-creutz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS32~1.5/apps/qgis-ltr/./python/plugins
C:\PROGRA~1\QGIS32~1.5\apps\grass\grass82\etc\python
C:\Users\thomas.montagne\Documents
C:\Program Files\QGIS 3.28.5\bin\python39.zip
C:\PROGRA~1\QGIS32~1.5\apps\Python39\DLLs
C:\PROGRA~1\QGIS32~1.5\apps\Python39\lib
C:\Program Files\QGIS 3.28.5\bin
C:\PROGRA~1\QGIS32~1.5\apps\Python39
C:\PROGRA~1\QGIS32~1.5\apps\Python39\lib\site-packages
C:\PROGRA~1\QGIS32~1.5\apps\Python39\lib\site-packages\win32
C:\PROGRA~1\QGIS32~1.5\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS32~1.5\apps\Python39\lib\site-packages\Pythonwin
C:/Users/idrissa.djepa-creutz/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\idrissa.djepa-creutz\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs
C:/Users/idrissa.djepa-creutz/Documents/QGIS/projets

Here's what I was expecting

No error? And the generated route.

@koebi
Copy link
Collaborator

koebi commented Jan 9, 2024

Hey,
thank you for reporting.

Could you check if the fix works for you by changing C:\Users/idrissa.djepa-creutz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\gui\ORStoolsDialog.py in line 251, adding the 5 characters or [] at the end of the line?

That'd be great - and the fastest way to fix this issue ;)

@IdrissaD
Copy link
Author

Perfect! (and nice upgrade of the symbology of generated route)

koebi added a commit that referenced this issue Jan 15, 2024
Users may not have SVG Paths set, which leads to the Error described.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants