<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<span style="font-variant-ligatures: no-common-ligatures" class="">Hello
</span><span style="font-variant-ligatures: no-common-ligatures"
class="">Chris,<br>
</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">QgsMapLayerRegistry
does not exist anymore (since some weeks).<br>
It's methods have been moved to QgsProject to allow having
multiple project open at the same time.<br>
</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">So
the </span><span style="font-variant-ligatures:
no-common-ligatures" class="">GdalTools plugin does not seems up
to date or compatible with current master branch of QGIS.</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">I'm
not really aware of that plugin, but I do not see it in QGIS core
repository.</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">Maybe
this is an obsolete thing, and you could just remove it.</span><span
style="font-variant-ligatures: no-common-ligatures" class=""><br>
<br>
</span><span style="font-variant-ligatures: no-common-ligatures"
class="">Have you followed the install doc :
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/master/INSTALL">https://github.com/qgis/QGIS/blob/master/INSTALL</a></span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">For
using custom build of QGIS, you should :</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">
Change </span><span style="font-variant-ligatures:
no-common-ligatures" class="">CMAKE_INSTALL_PREFIX to some folder
in your home instead of default one in system folder<br>
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/master/INSTALL#L256">https://github.com/qgis/QGIS/blob/master/INSTALL#L256</a><br>
</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">
And run QGIS using :</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">
export QGIS_PREFIX_PATH=~/apps/qgis-master</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">
export LD_LIBRARY_PATH=$QGIS_PREFIX_PATH/lib</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">
$QGIS_PREFIX_PATH/bin/qgis</span><span
style="font-variant-ligatures: no-common-ligatures" class=""><br>
<br>
With a fresh build/install you should not get this error.<br>
</span><br>
<span style="font-variant-ligatures: no-common-ligatures" class="">Cheers<br>
</span>
<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 10/02/2017 à 04:39, Chris Nicholas a
écrit :<br>
</div>
<blockquote
cite="mid:B7EF5202-046B-4EDC-A967-4AA8EAB1FB1B@housecanary.com"
type="cite">I successfully built (or so it appeared from cmake…)
QGIS from source on Linux according to the instructions of:
<div class=""><a moz-do-not-send="true"
href="https://github.com/qgis/QGIS/blob/final-2_18_3/INSTALL"
class="">https://github.com/qgis/QGIS/blob/final-2_18_3/INSTALL</a> </div>
<div class=""><br class="">
</div>
<div class="">(….</div>
<div class="">
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">[100%]
Built target qgis_fieldcalculatortest_automoc</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">[100%]
Built target qgis_fieldcalculatortest</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">[100%]
Built target qgis_bench</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; color: rgb(83, 48, 225);" class=""><span
style="font-variant-ligatures: no-common-ligatures; color:
#34bd26" class=""><b class="">cgn@cgn-VirtualBox</b></span><span
style="font-variant-ligatures: no-common-ligatures; color:
#000000" class="">:</span><span
style="font-variant-ligatures: no-common-ligatures" class=""><b
class="">~/src/QGIS/build-master</b></span><span
style="font-variant-ligatures: no-common-ligatures; color:
#000000" class="">$</span></div>
</div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; color: rgb(83, 48, 225);" class=""><span
style="font-variant-ligatures: no-common-ligatures; color:
#000000" class="">…)</span></div>
<div class=""><br class="">
</div>
<div class="">after make install, now trying to run qgis:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; color: rgb(83, 48, 225);" class=""><span
style="font-variant-ligatures: no-common-ligatures; color:
#34bd26" class=""><b class="">cgn@cgn-VirtualBox</b></span><span
style="font-variant-ligatures: no-common-ligatures; color:
#000000" class="">:</span><span
style="font-variant-ligatures: no-common-ligatures" class=""><b
class="">~/src/QGIS/build-master</b></span><span
style="font-variant-ligatures: no-common-ligatures; color:
#000000" class="">$ which qgis</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/local/bin/qgis</span></div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">, but I get the following error message …. I’ve
looked everywhere but can’t find this stuff … where might it be?</div>
<div class=""><br class="">
</div>
<div class="">advise/RTFMs/etc welcomed…</div>
<div class=""><br class="">
</div>
<div class="">thanks!!!</div>
<div class="">Chris </div>
<div class=""><br class="">
</div>
<div class="">——————————————</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Couldn't
load plugin GdalTools due to an error when calling its
initGui() method </span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; min-height: 20px;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""></span><br
class="">
</div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">ImportError:
cannot import name 'QgsMapLayerRegistry' </span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Traceback
(most recent call last):</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
File "/usr/local/share/qgis/python/qgis/utils.py", line 347,
in startPlugin</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
plugins[packageName].initGui()</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
File
"/usr/local/share/qgis/python/plugins/GdalTools/GdalTools.py",
line 106, in initGui</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
from .tools.GdalTools_utils import GdalConfig,
LayerRegistry</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
File "/usr/local/share/qgis/python/qgis/utils.py", line 647,
in _import</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
mod = _builtin_import(name, globals, locals, fromlist,
level)</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
File
"/usr/local/share/qgis/python/plugins/GdalTools/tools/GdalTools_utils.py",
line 40, in </span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
from qgis.core import QgsApplication, QgsMapLayerRegistry,
QgsRectangle, QgsProviderRegistry, QgsLogger, QgsProject</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">ImportError:
cannot import name 'QgsMapLayerRegistry'</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; min-height: 20px;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""></span><br
class="">
</div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; min-height: 20px;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""></span><br
class="">
</div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Python
version: 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0
20160609] </span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">QGIS
version: 2.99.0-Master Master, 2c188b2 </span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo; min-height: 20px;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class=""></span><br
class="">
</div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">Python
Path:</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/local/share/qgis/python</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/home/cgn/.qgis3/python</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/home/cgn/.qgis3/python/plugins</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/local/share/qgis/python/plugins</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/local/share/qgis/python/qgis</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/home/cgn/src/QGIS/build-master/python</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/lib/python35.zip</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/lib/python3.5</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/lib/python3.5/plat-x86_64-linux-gnu</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/lib/python3.5/lib-dynload</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/local/lib/python3.5/dist-packages</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/usr/lib/python3/dist-packages</span></div>
<div style="margin: 0px; font-size: 17px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">/home/cgn/.qgis3//python</span></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="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</body>
</html>