enricofer / go2mapillary

a plugin for displaying and extracting information from Mapillary street level imagery with QGIS (3.0)
GNU General Public License v3.0
34 stars 14 forks source link

Python traceback while clicking on the icon #14

Closed Gustry closed 6 years ago

Gustry commented 6 years ago

Hi, I have an issue on both QGIS 3.2 and QGIS 3.3: As soon as I click on the mapillary icon: screenshot from 2018-07-05 07-47-47

Stacktrace:

An error has occurred while executing Python code: 

TypeError: 'method' object is not connected 
Traceback (most recent call last):
  File "/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_explorer.py", line 373, in run
    self.canvas.extentsChanged.disconnect(self.mapChanged)
TypeError: 'method' object is not connected

Python version: 3.6.5 (default, Apr  1 2018, 05:46:30) [GCC 7.3.0] 
QGIS version: 3.2.0-Bonn Bonn, bc43194061 

Python Path:
/home/trimaille/dev/qgis/build-qgis-3_2/output/python
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/home/trimaille/dev/qgis/build-qgis-3_2/output/python/plugins
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/usr/local/lib/python3.6/dist-packages
/usr/lib/python3/dist-packages
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/inasafe
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe_extras/parameters
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/inasafe/safe_extras
/usr/lib/python3/dist-packages/IPython/extensions
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/vector_tiles_reader/ext-libs
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/extlibs
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary
/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary
/home/trimaille/Desktop/soufriere

In my logs:

2018-07-05T07:45:54     INFO    go2mapillary : loading vector tile [5385,7451,14]
2018-07-05T07:45:54     WARNING    Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.
2018-07-05T07:47:45     WARNING    Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.
              File "/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_explorer.py", line 362, in run
              self.mapRefreshed(force=True)
              File "/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_explorer.py", line 338, in mapRefreshed
              enabledLevels = self.coverage.update_coverage(force=force)
              File "/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_coverage.py", line 350, in update_coverage
              self.download_tiles(force=force)
              File "/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_coverage.py", line 273, in download_tiles
              json_data = mapbox_vector_tile.decode(mvt, quantize_bounds=tile_box)
             TypeError: decode() got an unexpected keyword argument 'quantize_bounds'

2018-07-05T07:47:45     WARNING    Traceback (most recent call last):
              File "/home/trimaille/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2mapillary/mapillary_explorer.py", line 373, in run
              self.canvas.extentsChanged.disconnect(self.mapChanged)
             TypeError: 'method' object is not connected
2018-07-05T07:43:33     INFO    CACHE_DIR/tmp/go2mapillary
2018-07-05T07:43:57     INFO    CACHE_DIR/tmp/go2mapillary
2018-07-05T07:45:45     INFO    CACHE_DIR/tmp/go2mapillary
2018-07-05T07:45:54     INFO    CACHE [5385,7451,14]

Thanks for your help

enricofer commented 6 years ago

No issues with the same platform here. I see that you have _..../vector_tilesreader/ext-libs in your paths. So I fear that there is some python modules adressing mismatch. Could you try to remove (not simply unload) vector_tiles_reader plugin and restart QGIS to check for embedded libraries incompatibilities ?

Gustry commented 6 years ago

I removed the folder vector_tiles_reader. Indeed it's working now. Is there a conflict in paths? Which plugin is guilty? ;-)

enricofer commented 6 years ago

vector_tiles_reader plugin is a more generic tool. Perhaphs it's better to rename the modules in go2mapillary to prevent these unwanted conflicts

enricofer commented 6 years ago

https://github.com/enricofer/go2mapillary/commit/8467409b64c40c5a122b5e5a1767f6c5fd56433b