[Qgis-developer] Do Python plugins already work with QGIS 3?

Andreas Neumann a.neumann at carto.net
Tue Dec 13 08:26:58 PST 2016


ah - yes, now it works after Martins fix.

So a side-effect of your refactoring.

No problem

Thanks all who gave me hints. I should be fine now.

Andreas


On 13.12.2016 17:21, Martin Dobias wrote:
> On Wed, Dec 14, 2016 at 12:00 AM, Andreas Neumann <a.neumann at carto.net> wrote:
>> However, db manager still fails to start with error message:
>>
>> ----------------------
>>
>> 2016-12-13T16:53:21    1    Traceback (most recent call last):
>>                File
>> "/usr/local/share/qgis/python/plugins/db_manager/db_manager_plugin.py", line
>> 108, in run
>>                  from .db_manager import DBManager
>>                File "/usr/local/share/qgis/python/qgis/utils.py", line 647,
>> in _import
>>                  mod = _builtin_import(name, globals, locals, fromlist,
>> level)
>>                File
>> "/usr/local/share/qgis/python/plugins/db_manager/db_manager.py", line 36, in
>> <module>
>>                  from .layer_preview import LayerPreview
>>                File "/usr/local/share/qgis/python/qgis/utils.py", line 647,
>> in _import
>>                  mod = _builtin_import(name, globals, locals, fromlist,
>> level)
>>                File
>> "/usr/local/share/qgis/python/plugins/db_manager/layer_preview.py", line 27,
>> in <module>
>>                  from qgis.gui import QgsMapCanvas, QgsMapCanvasLayer,
>> QgsMessageBar
>>              ImportError: cannot import name 'QgsMapCanvasLayer'
> My bad - should be fixed now in latest master.
>
> Cheers
> Martin



More information about the Qgis-developer mailing list