enricofer / go2streetview

22 stars 22 forks source link

error on startup #36

Closed antoniusz closed 4 years ago

antoniusz commented 6 years ago

I got this error on startup, but the plugin is working.

Hiba történt a Python kód végrehajtása közben:

AttributeError: 'NoneType' object has no attribute 'geometryType' Traceback (most recent call last): File "/home/toni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/go2streetview.py", line 374, in infoLayerDefinedAction self.writeInfoBuffer(self.transformToCurrentSRS(actualPoint)) File "/home/toni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/go2streetview.py", line 738, in writeInfoBuffer if self.infoBoxManager.getInfolayer().geometryType() == core.QgsWkbTypes.PointGeometry: AttributeError: 'NoneType' object has no attribute 'geometryType'

Python verzió: 3.6.4+ (default, Feb 12 2018, 08:25:03) [GCC 7.3.0] QGIS verzió 3.0.0-Girona Girona, ad6491d

enricofer commented 6 years ago

Did you tried to disable infolayer from "add info layer" menu and restart qgis ? screenshot 2018-03-16 12 14 23

antoniusz commented 6 years ago

Yes, and the error message disappeared.

enricofer commented 6 years ago

I don't get errors. Can you help me to replicate issue?

antoniusz commented 6 years ago

Yes. What should i do?

enricofer commented 6 years ago

simply list the actions that bring to error, so I can replicate and understand the issue and fix it

antoniusz commented 6 years ago

The cause of the error was, that I enabled the option, but haven't defined a layer for it.