Apparently the release of the plugin is not be compatible with QGIS master,
which is not surprising as API breaks are allowed on master branch for
QGIS 3.0.
Here is some hints to work with QGIS master :
* do not install QGIS master system wide, better install it in your
home directory.
* QGIS master use plugins from in $HOME/.qgis-dev/python/plugins
directory
so you could clone the plugin master branch, build it if
necessary and install it to $HOME/.qgis-dev/python/plugins directory
and propose pull request on the plugin repo if suitable
Hope this helps.
Arnaud Morvan
Ingénieur logiciel
Tél: +33 (0)4 58 48 20 32
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com
Le 13/09/2016 15:44, Eugenio Trumpy a écrit :
Before make install command I remove qgis dir from /usr/local/share,
after make install (now without error) qgis runs correctly, but I have
not any plugin.
So I started to reinstall those important for me...someone (e.g
lizmap) gave me this message in the error box:
The plugin is broken. Python said:
global name 'Qgis' is not defined
hints?
E.
------------------------------------------------------------------------
*Da:* Alexander Bruy <[email protected]>
*Inviato:* martedì 13 settembre 2016 15.12
*A:* Eugenio Trumpy
*Cc:* [email protected]
*Oggetto:* Re: [Qgis-developer] Couldn't load plugin fTools
I was talking about *installation* directory, not repo.
2016-09-13 16:05 GMT+03:00 Eugenio Trumpy <[email protected]
<mailto:[email protected]>>:
Hi Alexander,
I just clone newly the qgis repo, I started from scratch.
What kind of old file do you mean?
E.
------------------------------------------------------------------------
*Da:* Alexander Bruy <[email protected]
<mailto:[email protected]>>
*Inviato:* martedì 13 settembre 2016 14.40
*A:* Eugenio Trumpy
*Cc:* [email protected]
<mailto:[email protected]>
*Oggetto:* Re: [Qgis-developer] Couldn't load plugin fTools
Seems you trying to install QGIS master on the top of existing QGIS
installation without removing old files. fTools plugin was removed in
QGIS 2.16.
Please perform clean install (remove all old files first)
2016-09-13 15:07 GMT+03:00 Eugenio Trumpy <[email protected]
<mailto:[email protected]>>:
> Hi all,
>
>
> I just compiled without error qgis master 2.99.0-master d265f33
on ubuntu
> 16.04.
>
> However I got this error on launching the application:
>
>
> Couldn't load plugin fTools due to an error when calling its
classFactory()
> method
>
> ImportError: cannot import name QGis
>
> Traceback (most recent call last):
> File "/usr/local/share/qgis/python/qgis/utils.py", line 333, in
> startPlugin
> plugins[packageName] = package.classFactory(iface)
> File
"/usr/local/share/qgis/python/plugins/fTools/__init__.py", line 33,
> in classFactory
> from .fTools import fToolsPlugin
> File "/usr/local/share/qgis/python/qgis/utils.py", line 642,
in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> File "/usr/local/share/qgis/python/plugins/fTools/fTools.py",
line 33, in
> from qgis.core import QGis
> ImportError: cannot import name QGis
>
>
> Python version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC
5.4.0 20160609]
> QGIS version: 2.99.0-Master Master, d265f33
>
> Python Path:
>
> /usr/local/share/qgis/python/plugins/processing
> /usr/local/share/qgis/python
> /home/eugenio/.qgis-dev//python
> /home/eugenio/.qgis-dev//python/plugins
> /usr/local/share/qgis/python/plugins
> /usr/lib/python2.7
> /usr/lib/python2.7/plat-x86_64-linux-gnu
> /usr/lib/python2.7/lib-tk
> /usr/lib/python2.7/lib-old
> /usr/lib/python2.7/lib-dynload
> /usr/local/lib/python2.7/dist-packages
> /usr/lib/python2.7/dist-packages
> /usr/lib/python2.7/dist-packages/PILcompat
> /usr/lib/python2.7/dist-packages/gtk-2.0
> /usr/lib/python2.7/dist-packages/ubuntu-sso-client
> /usr/lib/python2.7/dist-packages/wx-3.0-gtk2
> /home/eugenio/.qgis-dev//python
>
> After that qgis start normally, but all the python plugin were
not loaded.
>
>
> Any hints on this regard?
>
>
> Eugenio
>
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
<mailto:[email protected]>
> List info:
http://lists.osgeo.org/mailman/listinfo/qgis-developer
<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
Qgis-developer Info Page - lists.osgeo.org Mailing Lists
<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
lists.osgeo.org <http://lists.osgeo.org>
Discussion of all things QGIS development related. To see the
collection of prior postings to the list, visit the Qgis-developer
Archives.
> Unsubscribe:
http://lists.osgeo.org/mailman/listinfo/qgis-developer
<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
--
Alexander Bruy
--
Alexander Bruy
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer