[Qgis-developer] newbie build, run question

Chris Nicholas cnicholas at housecanary.com
Thu Feb 9 19:39:46 PST 2017


I successfully built (or so it appeared from cmake…)  QGIS from source on Linux according to the instructions of:
https://github.com/qgis/QGIS/blob/final-2_18_3/INSTALL <https://github.com/qgis/QGIS/blob/final-2_18_3/INSTALL>

(….
[100%] Built target qgis_fieldcalculatortest_automoc
[100%] Built target qgis_fieldcalculatortest
[100%] Built target qgis_bench
cgn at cgn-VirtualBox:~/src/QGIS/build-master$
…)

after make install, now trying to run qgis:

cgn at cgn-VirtualBox:~/src/QGIS/build-master$ which qgis
/usr/local/bin/qgis


, but I get the following error message …. I’ve looked everywhere but can’t find this stuff … where might it be?

advise/RTFMs/etc welcomed…

thanks!!!
Chris

——————————————

Couldn't load plugin GdalTools due to an error when calling its initGui() method

ImportError: cannot import name 'QgsMapLayerRegistry'
Traceback (most recent call last):
  File "/usr/local/share/qgis/python/qgis/utils.py", line 347, in startPlugin
    plugins[packageName].initGui()
  File "/usr/local/share/qgis/python/plugins/GdalTools/GdalTools.py", line 106, in initGui
    from .tools.GdalTools_utils import GdalConfig, LayerRegistry
  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/GdalTools/tools/GdalTools_utils.py", line 40, in
    from qgis.core import QgsApplication, QgsMapLayerRegistry, QgsRectangle, QgsProviderRegistry, QgsLogger, QgsProject
ImportError: cannot import name 'QgsMapLayerRegistry'


Python version: 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609]
QGIS version: 2.99.0-Master Master, 2c188b2

Python Path:
/usr/local/share/qgis/python
/home/cgn/.qgis3/python
/home/cgn/.qgis3/python/plugins
/usr/local/share/qgis/python/plugins
/usr/local/share/qgis/python/qgis
/home/cgn/src/QGIS/build-master/python
/usr/lib/python35.zip
/usr/lib/python3.5
/usr/lib/python3.5/plat-x86_64-linux-gnu
/usr/lib/python3.5/lib-dynload
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
/home/cgn/.qgis3//python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170209/39b3074a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170209/39b3074a/attachment-0001.sig>


More information about the Qgis-developer mailing list