Skip to content

Problème parcours de graphe : getLayerDepFromTable

https://gitlab.bemapguest.eu/projets/sdeau50/-/issues/28

Traceback (most recent call last):
  File "C:\Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NetworkGraphPlugin\mainPlugin.py", line 240, in startGraph
    existing_graphs=self.findLastGraphs(graph_types[0])
  File "C:\Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NetworkGraphPlugin\mainPlugin.py", line 276, in findLastGraphs
    self.pipe_layer=self.getLayerDepFromTable(self.schema, r[column_names.index('tablename')], int(r[column_names.index('lvl')]))
  File "C:\Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\NetworkGraphPlugin\mainPlugin.py", line 154, in getLayerDepFromTable
    l_desc = json.loads((layer.dataComment() or '{}'))
  File "C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


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.34.1-Prizren Prizren, 133927424d
Chemin Python :

·                    C:/PROGRA~1/QGIS33~1.1/apps/qgis/./python
·                    C:/Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python
·                    C:/Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
·                    C:/PROGRA~1/QGIS33~1.1/apps/qgis/./python/plugins
·                    C:\PROGRA~1\QGIS33~1.1\apps\grass\grass83\etc\python
·                    X:\10-SIG
·                    C:\PROGRA~1\QGIS33~1.1\bin\python39.zip
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39\DLLs
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib
·                    C:\PROGRA~1\QGIS33~1.1\bin
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\site-packages
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\site-packages\win32
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\site-packages\win32\lib
·                    C:\PROGRA~1\QGIS33~1.1\apps\Python39\lib\site-packages\Pythonwin
·                    C:/Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python
·                    C:\Users/amiagat/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportEpanetInpFiles/impcount.py
X:/10-SIG
Modification effectuée par Alice Salsé