HGV Routing failing


#1

Im trying to do a HGV routing for one to many and vice versa, however the plugin crashes and creates empty files, no attributes and no network. Im using version 1.0.7.

Heres the instruction thats placed

processing.run(“ORS Tools:directions_points”, {‘INPUT_PROVIDER’:0,‘INPUT_START_LAYER’:‘C:\Users\Ian Kirk-Ellis\Dropbox (ADC Infrastructure)\!!! ADC Projects\XXX\Calculations\Site Access Location.shp’,‘INPUT_START_FIELD’:‘id’,‘INPUT_END_LAYER’:‘file:///H:/GoogleDrive/TRAFFIC%20GENERAL/Freight/Freight%20Zone%20Lookup.csv?type=csv&trimFields=Yes&detectTypes=yes&decimalPoint=,&xField=EASTING&yField=NORTHING&crs=EPSG:27700&spatialIndex=yes&subsetIndex=yes&watchFile=no’,‘INPUT_END_FIELD’:‘ZoneID’,‘INPUT_PROFILE’:1,‘INPUT_PREFERENCE’:0,‘INPUT_MODE’:1,‘OUTPUT’:‘C:/Users/Ian Kirk-Ellis/Dropbox (ADC Infrastructure)/!!! ADC Projects/XXX/Calculations/190625 HGV Outbound.shp’})


#2

There’s no error message? Please have a look in QGIS log message as well.


#3

An error has occurred while executing Python code:

NameError: free variable ‘self’ referenced before assignment in enclosing scope

Traceback (most recent call last):
File “C:/PROGRA~1/QGIS 3.8/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py”, line 244, in on_complete
self.feedback.pushInfo(self.tr(‘Execution completed in {0:0.2f} seconds’).format(time.time() - start_time))
NameError: free variable ‘self’ referenced before assignment in enclosing scope

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.8.0-Zanzibar Zanzibar, 11aff65f10

Python Path:

  • C:/Users/Ian Kirk-Ellis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\networks
  • C:/Users/Ian Kirk-Ellis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\contour
  • C:\Users\Ian Kirk-Ellis\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\AequilibraE\aequilibrae
  • C:/PROGRA~1/QGIS 3.8/apps/qgis/./python
  • C:/Users/Ian Kirk-Ellis/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/Ian Kirk-Ellis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/PROGRA~1/QGIS 3.8/apps/qgis/./python/plugins
  • C:\Program Files\QGIS 3.8\bin\python37.zip
  • C:\PROGRA~1\QGIS 3.8\apps\Python37\DLLs
  • C:\PROGRA~1\QGIS 3.8\apps\Python37\lib
  • C:\Program Files\QGIS 3.8\bin
  • C:\PROGRA~1\QGIS 3.8\apps\Python37
  • C:\PROGRA~1\QGIS 3.8\apps\Python37\lib\site-packages
  • C:\PROGRA~1\QGIS 3.8\apps\Python37\lib\site-packages\win32
  • C:\PROGRA~1\QGIS 3.8\apps\Python37\lib\site-packages\win32\lib
  • C:\PROGRA~1\QGIS 3.8\apps\Python37\lib\site-packages\Pythonwin
  • C:/Users/Ian Kirk-Ellis/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\Ian Kirk-Ellis\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\AequilibraE\paths_procedures/aequilibrae/
  • C:\Users\Ian Kirk-Ellis\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms
  • C:/Users/Ian Kirk-Ellis/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\RoadEmissionCalculator\lib
  • .
  • C:/Users/Ian Kirk-Ellis/Dropbox (ADC Infrastructure)/!!! ADC Projects/ADC1787 Curver Way, Corby/Calculations

#5

Doesn’t look like this a problem of ORS Tools.

File “C:/PROGRA~1/QGIS 3.8/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py”, line 244, in on_complete
self.feedback.pushInfo(self.tr(‘Execution completed in {0:0.2f} seconds’).format(time.time() - start_time))

Not sure what’s going on, sorry.


#6

Thats Nils, noted. I wonder if anyone else is haing similar problems, Ive had issues for a couple of weeks now. Thanks


#7

If you have access to another QGIS installation, I’d try it there. Or a re-install. Sometimes it does strange things.


#8

Thanks Nils, will do although I tried before I upgraded and it didn’t work and I hoped the upgrade may fix it. Fortunately I’ve worked around it with some older runs for this task, but on looking at another fresh job, and using the LTR release of QGIS, ORS Tools seems to produce a blank dataset, but its fairly sizeable still.