Samsonboadi / StreetSmart

GNU General Public License v3.0
0 stars 1 forks source link

Getting python exception: TypeError: QgsRubberBand(): argument 2 has unexpected type 'bool' #10

Closed Ammatarasu closed 6 months ago

Ammatarasu commented 10 months ago

Getting this error when trying to access panoramic views:


TypeError: QgsRubberBand(): argument 2 has unexpected type 'bool' 
Traceback (most recent call last):
  File "C:\Users/daandevries/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\street_smart.py", line 819, in __fetch_viewer_commands
    self.command_handler.fetch_commands()
  File "C:\Users/daandevries/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\qgis_command_handler.py", line 42, in fetch_commands
    self.cone_handler.handle(comm[1])
  File "C:\Users/daandevries/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\cone_handler.py", line 53, in handle
    self.create_and_draw_cone(transformed_point,
  File "C:\Users/daandevries/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\cone_handler.py", line 128, in create_and_draw_cone
    cone = QgsRubberBand(self.iface.mapCanvas(), True)
TypeError: QgsRubberBand(): argument 2 has unexpected type 'bool'

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.30.1-'s-Hertogenbosch 's-Hertogenbosch, 9035a01e 

The panorama viewer still starts and works fine, except now the button to add vector layers doesn't work. Giving me an error: There are no vector layers to be added to the viewer or Panorama viewer has not started yet.

Samsonboadi commented 10 months ago

@Ammatarasu we don't yet support Qgis version 3.30.1. use a lower version starting from 3.16 to 3.2... that works

MariaVad commented 7 months ago

We are planning start running QGIS 3.34 when it is set as LTR this february but I notice this problem too in 3.34 when I'm trying to add vector layers to the panorama view. Are you having plans on start supporting QGIS 3.34?

Samsonboadi commented 6 months ago

@MariaVad We have a new release of the Cyclomedia plugin. We have added support for 3.28 LTS versions. We dont support Qgis release until it becomes an LTS