enricofer / go2streetview

22 stars 22 forks source link

go2streetview crash #21

Closed TheDude005 closed 4 years ago

TheDude005 commented 7 years ago

So when installing with Qgis 2.16 with python 2.7.12 go2streetview crashes and displays this stack trace Couldn't load plugin go2streetview due to an error when calling its initGui() method

TypeError: connect() failed between statusBarMessage(QString) and unislot() Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 342, in startPlugin plugins[packageName].initGui() File "/home/jordan/.qgis2/python/plugins/go2streetview/go2streetview.py", line 94, in initGui self.view.SV.page().statusBarMessage.connect(self.catchJSevents) TypeError: connect() failed between statusBarMessage(QString) and unislot()

Python version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] QGIS version: 2.16.0-Nødebo Nødebo, 2f9ed29

When clicking on the tool in the toolbar I get this stack trace An error has occurred while executing Python code:

AttributeError: 'NoneType' object has no attribute 'mainWindow' Traceback (most recent call last): File "/home/jordan/.qgis2/python/plugins/go2streetview/go2streetview.py", line 706, in StreetviewRun self.explore() File "/home/jordan/.qgis2/python/plugins/go2streetview/go2streetview.py", line 711, in explore iface.mainWindow().statusBar().showMessage(gsvMessage) AttributeError: 'NoneType' object has no attribute 'mainWindow'

Python version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] QGIS version: 2.16.0-Nødebo Nødebo, 2f9ed29

Then when clicking on the dockable window I get this stack trace An error has occurred while executing Python code:

AttributeError: 'NoneType' object has no attribute 'mainWindow' Traceback (most recent call last): File "/home/jordan/.qgis2/python/plugins/go2streetview/go2streetview.py", line 545, in clickOn self.explore() File "/home/jordan/.qgis2/python/plugins/go2streetview/go2streetview.py", line 711, in explore iface.mainWindow().statusBar().showMessage(gsvMessage) AttributeError: 'NoneType' object has no attribute 'mainWindow'

Not sure what the issue is I just updated to the new Qgis and the new Ubuntu Xenial.

enricofer commented 7 years ago

I can't reproduce issue on Ubuntu 14.04 Trusty. Everything is fine here with 2.16. I have no Xenial test system. Try to fix it removing and reinstalling qgis with http://qgis.org/debian repository

TheDude005 commented 7 years ago

I've tried it with both the debian and ubuntugis repositories. Makes me wonder if Xenial moved or changed something in the underlying Python packages.