Error C/C++ al gene...
 
Notifications
Clear all

Error C/C++ al generar perfiles en composer


(@yennifer-cufino)
Active Member
Inscription: Il y a 5 ans
Posts: 10
Topic starter  

Hola, estoy intentando generar perfiles usando el composer que aparece en la herramienta de dibujo de perfiles, pero cuando selecciono el "template" y selecciono open composer, me encuentro con el error lineas abajo.

Como podría solucionarlo?

Gracias

An error has occurred while executing Python code:

RuntimeError: wrapped C/C++ object of type QgsPrintLayout has been deleted

Traceback (most recent call last):
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1595, in export_pdf
    self.generate_composer()
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1538, in generate_composer
    self.manage_profile_layout(comp_view, plugin_path)
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1558, in manage_profile_layout
    self.iface.openLayoutDesigner(layout)
RuntimeError: wrapped C/C++ object of type QgsPrintLayout has been deleted

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.10.8-A Coruña A Coruña, d09a4f2388

Python Path:

  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wnt
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\WaterNetAnalyzer-master
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\network_gt
  • C:/OSGEO4~1/apps/qgis-ltr/./python
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/OSGEO4~1/apps/qgis-ltr/./python/plugins
  • C:\OSGEO4~1\apps\Python37
  • C:\OSGEO4~1\apps\Python37\Scripts
  • C:\OSGeo4W64\bin\python37.zip
  • C:\OSGEO4~1\apps\Python37\DLLs
  • C:\OSGEO4~1\apps\Python37\lib
  • C:\OSGeo4W64\bin
  • C:\OSGEO4~1\apps\Python37\lib\site-packages
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32\lib
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\Pythonwin
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\cufino\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\giswater
  • C:\Users\cufino\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\giswater\ui\..
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportEpanetInpFiles/impcount.py
  • C:/Users/cufino/Documents/LETH

Quote
(@yennifer-cufino)
Active Member
Inscription: Il y a 5 ans
Posts: 10
Topic starter  
 

Hola,

Sigo teniendo este problema incluso ya al ubicar los templates ahora en la carpeta del plug in, pero con otro mensaje de error:

An error has occurred while executing Python code:

IndexError: list index out of range

Traceback (most recent call last):
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1594, in export_pdf
    self.execute_profiles_composer()
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1456, in execute_profiles_composer
    self.paint_event(self.arc_id, self.node_id)
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 503, in paint_event
    self.set_table_parameters()
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1136, in set_table_parameters
    self.min_top_elev = self.nodes[0].top_elev - self.nodes[0].ymax
IndexError: list index out of range

Alguna pista de como resolverlo?

Gracias.

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.10.8-A Coruña A Coruña, d09a4f2388

Python Path:

  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wnt
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\WaterNetAnalyzer-master
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\network_gt
  • C:/OSGEO4~1/apps/qgis-ltr/./python
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/OSGEO4~1/apps/qgis-ltr/./python/plugins
  • C:\OSGEO4~1\apps\Python37
  • C:\OSGEO4~1\apps\Python37\Scripts
  • C:\OSGeo4W64\bin\python37.zip
  • C:\OSGEO4~1\apps\Python37\DLLs
  • C:\OSGEO4~1\apps\Python37\lib
  • C:\OSGeo4W64\bin
  • C:\OSGEO4~1\apps\Python37\lib\site-packages
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32\lib
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\Pythonwin
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\cufino\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\giswater
  • C:\Users\cufino\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\giswater\ui\..
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportEpanetInpFiles/impcount.py
  • C:/Users/cufino/Documents/LETH
 
 
Respondido por: @yennifer-cufino

Hola, estoy intentando generar perfiles usando el composer que aparece en la herramienta de dibujo de perfiles, pero cuando selecciono el "template" y selecciono open composer, me encuentro con el error lineas abajo.

Como podría solucionarlo?

Gracias

An error has occurred while executing Python code:

RuntimeError: wrapped C/C++ object of type QgsPrintLayout has been deleted

Traceback (most recent call last):
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1595, in export_pdf
    self.generate_composer()
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1538, in generate_composer
    self.manage_profile_layout(comp_view, plugin_path)
  File "C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\giswater\map_tools\draw_profiles.py", line 1558, in manage_profile_layout
    self.iface.openLayoutDesigner(layout)
RuntimeError: wrapped C/C++ object of type QgsPrintLayout has been deleted

Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.10.8-A Coruña A Coruña, d09a4f2388

Python Path:

  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\wnt
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\WaterNetAnalyzer-master
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\network_gt
  • C:/OSGEO4~1/apps/qgis-ltr/./python
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/OSGEO4~1/apps/qgis-ltr/./python/plugins
  • C:\OSGEO4~1\apps\Python37
  • C:\OSGEO4~1\apps\Python37\Scripts
  • C:\OSGeo4W64\bin\python37.zip
  • C:\OSGEO4~1\apps\Python37\DLLs
  • C:\OSGEO4~1\apps\Python37\lib
  • C:\OSGeo4W64\bin
  • C:\OSGEO4~1\apps\Python37\lib\site-packages
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\win32\lib
  • C:\OSGEO4~1\apps\Python37\lib\site-packages\Pythonwin
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\cufino\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\giswater
  • C:\Users\cufino\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\giswater\ui\..
  • C:/Users/cufino/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportEpanetInpFiles/impcount.py
  • C:/Users/cufino/Documents/LETH

 


RépondreQuote
(@abofill)
Eminent Member
Inscription: Il y a 6 ans
Posts: 35
 

Hola,

Qué version de giswater estas utilizando?

En la versió 3.4 la herramienta de perfil no incorpora opción de abrir ningún composer. No entiendo a qué te refieres.

Un saludo,


RépondreQuote
Share: