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

QgsSingleSymbolRenderer(): not enough arguments #261

Open
ved-ux opened this issue May 19, 2024 · 2 comments
Open

QgsSingleSymbolRenderer(): not enough arguments #261

ved-ux opened this issue May 19, 2024 · 2 comments

Comments

@ved-ux
Copy link

ved-ux commented May 19, 2024

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

@ved-ux
Copy link
Author

ved-ux commented Jun 4, 2024

Please suggest the required correction to be done . I am still getting the same error while importing 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

Thank you for your time

@ved-ux
Copy link
Author

ved-ux commented Jun 6, 2024

Dear developer

The details of the operating system are as follows:-

Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

Thank you for your time. Please check the error

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

No branches or pull requests

1 participant