Skip to content

QgsSingleSymbolRenderer(): not enough arguments  #261

@ved-ux

Description

@ved-ux

I'm encountering the error below when attempting to import namelist.wps. :-

An error has occurred while executing Python code:

TypeError: QgsSingleSymbolRenderer(): not enough arguments
Traceback (most recent call last):
File "/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/tab_simulation.py", line 106, in open_project_from_object
self.set_project_in_tabs()
File "/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/tab_simulation.py", line 73, in set_project_in_tabs
self.domain_tab.project = project
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/widget_domains.py", line 230, in project
self.populate_ui_from_project()
File "/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/widget_domains.py", line 286, in populate_ui_from_project
self.draw_bbox_and_grids(zoom_out=True)
File "/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/widget_domains.py", line 561, in draw_bbox_and_grids
update_domain_outline_layers(self.iface.mapCanvas(), project, zoom_out=zoom_out)
File "/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/geo.py", line 75, in update_domain_outline_layers
renderer = QgsSingleSymbolRenderer(sym) # Create the renderer with the symbol
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: QgsSingleSymbolRenderer(): not enough arguments

Python version: 3.11.4 | packaged by conda-forge | (main, Jun 10 2023, 18:26:14) [GCC 12.2.0]
QGIS version: 3.28.8-Firenze Firenze, exported

Python Path:
/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/generate_swmm_inp
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/share/qgis/python
/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python
/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/share/qgis/python/plugins
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/share/qgis/python/plugins
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/share/qgis/python
/home/wrf_hydro_fnl/WRF/WPS-4.5
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/lib/python311.zip
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/lib/python3.11
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/lib/python3.11/lib-dynload
/home/wrf_hydro_fnl/WRF/miniconda3/envs/qgis_stable.3.28.8/lib/python3.11/site-packages
/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python
/home/wrf_hydro_fnl/.local/share/gis4wrf/python311/lib/python3.11/site-packages
/home/wrf_hydro_fnl/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions