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

Uncaught AttributeError: 'QgsRuleBasedRenderer' object has no attribute 'symbol' #23

Open
UrbanPlan-LDB opened this issue Mar 13, 2023 · 0 comments

Comments

@UrbanPlan-LDB
Copy link

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:\Users/Lucio De Benedictis/AppData/Roaming/QGIS/QGIS3\profiles\Lucio_02_23/python/plugins\GlobeBuilder\ui\globe_builder_dockwidget.py", line 205, in on_pushButtonRun_clicked
    self.load_data_to_globe(False)
  File "C:\Users/Lucio De Benedictis/AppData/Roaming/QGIS/QGIS3\profiles\Lucio_02_23/python/plugins\GlobeBuilder\ui\globe_builder_dockwidget.py", line 268, in load_data_to_globe
    self.globe.load_data(self.checkBoxS2cloudless.isChecked(), self.checkBoxCountries.isChecked(),
  File "C:\Users/Lucio De Benedictis/AppData/Roaming/QGIS/QGIS3\profiles\Lucio_02_23/python/plugins\GlobeBuilder\core\globe.py", line 113, in load_data
    self.load_natural_earth_data(ne_data)
  File "C:\Users/Lucio De Benedictis/AppData/Roaming/QGIS/QGIS3\profiles\Lucio_02_23/python/plugins\GlobeBuilder\core\globe.py", line 155, in load_natural_earth_data
    styling_method(layer)
  File "C:\Users/Lucio De Benedictis/AppData/Roaming/QGIS/QGIS3\profiles\Lucio_02_23/python/plugins\GlobeBuilder\core\globe.py", line 110, in <lambda>
    'ne_{}_admin_0_countries.geojson'.format(counties_res), lambda l: style_countries(l))
  File "C:\Users/Lucio De Benedictis/AppData/Roaming/QGIS/QGIS3\profiles\Lucio_02_23/python/plugins\GlobeBuilder\core\globe.py", line 102, in style_countries
    layer.renderer().symbol().setColor(countries_color)
AttributeError: 'QgsRuleBasedRenderer' object has no attribute 'symbol'

GlobeBuilder v0.6.0, QGIS 3.28.4-Firenze on Windows 10

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