<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Apparently the release of the plugin is not be compatible with QGIS
master,<br>
which is not surprising as API breaks are allowed on master branch
for QGIS 3.0.<br>
<br>
Here is some hints to work with QGIS master :<br>
<br>
* do not install QGIS master system wide, better install it in
your home directory.<br>
<br>
* QGIS master use plugins from in $HOME/.qgis-dev/python/plugins
directory<br>
so you could clone the plugin master branch, build it if
necessary and install it to $HOME/.qgis-dev/python/plugins directory<br>
and propose pull request on the plugin repo if <span
class="gt-baf-word-clickable">suitable</span><br>
<br>
Hope this helps.<br>
<br>
<pre class="moz-signature" cols="72">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
<a class="moz-txt-link-freetext" href="http://www.camptocamp.com">http://www.camptocamp.com</a></pre>
<div class="moz-cite-prefix">Le 13/09/2016 15:44, Eugenio Trumpy a
écrit :<br>
</div>
<blockquote
cite="mid:VI1PR0602MB28324FDB1F6DADF91EB90AACE5FE0@VI1PR0602MB2832.eurprd06.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Before make install command I remove qgis dir from
/usr/local/share,</p>
<p>after make install (now without error) qgis runs correctly,
but I have not any plugin.</p>
<p>So I started to reinstall those important for me...someone
(e.g lizmap) gave me this message in the error box:</p>
<p><br>
</p>
<p>The plugin is broken. Python said: <br>
</p>
<p>global name 'Qgis' is not defined<br>
</p>
<br>
<p>hints?</p>
<p><br>
</p>
<p>E.<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>Da:</b>
Alexander Bruy <a class="moz-txt-link-rfc2396E" href="mailto:alexander.bruy@gmail.com"><alexander.bruy@gmail.com></a><br>
<b>Inviato:</b> martedì 13 settembre 2016 15.12<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: [Qgis-developer] Couldn't load plugin
fTools</font>
<div> </div>
</div>
<div>
<div dir="ltr">I was talking about *installation* directory,
not repo.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-09-13 16:05 GMT+03:00
Eugenio Trumpy <span dir="ltr">
<<a moz-do-not-send="true"
href="mailto:frippe12573@hotmail.com"
target="_blank">frippe12573@hotmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000;
background-color:#ffffff;
font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Alexander,</p>
<p><br>
</p>
<p>I just clone newly the qgis repo, I started
from scratch.</p>
<p>What kind of old file do you mean?</p>
<p><br>
</p>
<p>E.<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>Da:</b>
Alexander Bruy <<a
moz-do-not-send="true"
href="mailto:alexander.bruy@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:alexander.bruy@gmail.com">alexander.bruy@gmail.com</a></a>><br>
<b>Inviato:</b> martedì 13 settembre 2016
14.40<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a moz-do-not-send="true"
href="mailto:qgis-developer@lists.osgeo.org"
target="_blank">qgis-developer@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: [Qgis-developer]
Couldn't load plugin fTools</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div>
<div>
<div class="h5">Seems you trying to
install QGIS master on the top of
existing QGIS<br>
installation without removing old
files. fTools plugin was removed in<br>
QGIS 2.16.<br>
<br>
Please perform clean install (remove
all old files first)<br>
<br>
2016-09-13 15:07 GMT+03:00 Eugenio
Trumpy <<a moz-do-not-send="true"
href="mailto:frippe12573@hotmail.com"
target="_blank">frippe12573@hotmail.com</a>>:<br>
> Hi all,<br>
><br>
><br>
> I just compiled without error
qgis master 2.99.0-master d265f33 on
ubuntu<br>
> 16.04.<br>
><br>
> However I got this error on
launching the application:<br>
><br>
><br>
> Couldn't load plugin fTools due
to an error when calling its
classFactory()<br>
> method<br>
><br>
> ImportError: cannot import name
QGis<br>
><br>
> Traceback (most recent call
last):<br>
> File
"/usr/local/share/qgis/python/<wbr>qgis/utils.py",
line 333, in<br>
> startPlugin<br>
> plugins[packageName] =
package.classFactory(iface)<br>
> File
"/usr/local/share/qgis/python/<wbr>plugins/fTools/__init__.py",
line 33,<br>
> in classFactory<br>
> from .fTools import
fToolsPlugin<br>
> File
"/usr/local/share/qgis/python/<wbr>qgis/utils.py",
line 642, in _import<br>
> mod = _builtin_import(name,
globals, locals, fromlist, level)<br>
> File
"/usr/local/share/qgis/python/<wbr>plugins/fTools/fTools.py",
line 33, in<br>
> from qgis.core import QGis<br>
> ImportError: cannot import name
QGis<br>
><br>
><br>
> Python version: 2.7.12 (default,
Jul 1 2016, 15:12:24) [GCC 5.4.0
20160609]<br>
> QGIS version: 2.99.0-Master
Master, d265f33<br>
><br>
> Python Path:<br>
><br>
> /usr/local/share/qgis/python/<wbr>plugins/processing<br>
> /usr/local/share/qgis/python<br>
> /home/eugenio/.qgis-dev//<wbr>python<br>
> /home/eugenio/.qgis-dev//<wbr>python/plugins<br>
> /usr/local/share/qgis/python/<wbr>plugins<br>
> /usr/lib/python2.7<br>
> /usr/lib/python2.7/plat-x86_<wbr>64-linux-gnu<br>
> /usr/lib/python2.7/lib-tk<br>
> /usr/lib/python2.7/lib-old<br>
> /usr/lib/python2.7/lib-dynload<br>
> /usr/local/lib/python2.7/dist-<wbr>packages<br>
> /usr/lib/python2.7/dist-<wbr>packages<br>
> /usr/lib/python2.7/dist-<wbr>packages/PILcompat<br>
> /usr/lib/python2.7/dist-<wbr>packages/gtk-2.0<br>
> /usr/lib/python2.7/dist-<wbr>packages/ubuntu-sso-client<br>
> /usr/lib/python2.7/dist-<wbr>packages/wx-3.0-gtk2<br>
> /home/eugenio/.qgis-dev//<wbr>python<br>
><br>
> After that qgis start normally,
but all the python plugin were not
loaded.<br>
><br>
><br>
> Any hints on this regard?<br>
><br>
><br>
> Eugenio<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Qgis-developer@lists.osgeo.org"
target="_blank">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a
moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank">
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/">http://lists.osgeo.org/</a><wbr>mailman/listinfo/qgis-<wbr>developer</a>
</div>
</div>
<div style="margin-bottom:20px;
overflow:auto; width:100%;
text-indent:0px">
<table style="width:90%;
background-color:rgb(255,255,255);
overflow:auto; padding-top:20px;
padding-bottom:20px; margin-top:20px;
border-top:1px dotted
rgb(200,200,200); border-bottom:1px
dotted rgb(200,200,200)"
cellspacing="0">
<tbody>
<tr style="border-spacing:0px"
valign="top">
<td colspan="2"
style="vertical-align:top;
padding:0px; display:table-cell">
<div style="color:rgb(0,75,139);
font-weight:400;
font-size:21px;
font-family:"wf_segoe-ui_light","Segoe
UI Light","Segoe WP
Light","Segoe
UI","Segoe
WP",Tahoma,Arial,sans-serif;
line-height:21px">
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank"
style="text-decoration:none">Qgis-developer
Info Page - lists.osgeo.org
Mailing Lists</a></div>
<div style="margin:10px 0px
16px; color:rgb(102,102,102);
font-weight:400;
font-family:"wf_segoe-ui_normal","Segoe
UI","Segoe
WP",Tahoma,Arial,sans-serif;
font-size:14px;
line-height:14px">
<a moz-do-not-send="true"
href="http://lists.osgeo.org"
target="_blank">lists.osgeo.org</a></div>
<div style="display:block;
color:rgb(102,102,102);
font-weight:400;
font-family:"wf_segoe-ui_normal","Segoe
UI","Segoe
WP",Tahoma,Arial,sans-serif;
font-size:14px;
line-height:20px;
max-height:100px;
overflow:hidden">
Discussion of all things QGIS
development related. To see
the collection of prior
postings to the list, visit
the Qgis-developer Archives.</div>
</td>
</tr>
</tbody>
</table>
</div>
<span class=""><br>
> Unsubscribe: <a
moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
target="_blank">
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/">http://lists.osgeo.org/</a><wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
<br>
<br>
<br>
-- <br>
Alexander Bruy<br>
</span></div>
</span></font></div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature">Alexander Bruy</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</body>
</html>