[Qgis-developer] SOSI support in QGIS

Stott, James fmrojst at fylkesmannen.no
Sun Jul 6 06:53:57 PDT 2014


Hi again Jürgen

One other thing I have noticed on 64 bit is that gdal-python package has a different version number (1.11.0-3) than in 32 bit (1.11.0-2). This version number is different to all the other packages which are 1.11.0-2.

When opening QGIS 64 bit, I get an error message as follows (works fine in 32 bit for me):

 Unable to load GdalTools plugin. The required "osgeo [python-gdal]" module is missing. Install it and try again

The i get the python error as follows:

Couldn't load plugin 'processing' from ['C:/OSGEO4~1/apps/qgis/./python', 'C:/Users/James/.qgis2/python', 'C:/Users/James/.qgis2/python/plugins', 'C:/OSGEO4~1/apps/qgis/./python/plugins', 'C:\OSGEO4~1\bin\python27.zip', 'C:\OSGEO4~1\apps\Python27\DLLs', 'C:\OSGEO4~1\apps\Python27\lib', 'C:\OSGEO4~1\apps\Python27\lib\plat-win', 'C:\OSGEO4~1\apps\Python27\lib\lib-tk', 'C:\OSGEO4~1\bin', 'C:\OSGEO4~1\apps\Python27', 'C:\OSGEO4~1\apps\Python27\lib\site-packages', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\PIL', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\win32', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\OSGEO4~1\apps\qgis\python\plugins\fTools\tools']


Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 182, in loadPlugin
    __import__(packageName)
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\__init__.py", line 29, in 
    from processing.tools.general import *
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\general.py", line 29, in 
    from processing.core.Processing import Processing
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 49, in 
    from processing.algs.qgis.QGISAlgorithmProvider import QGISAlgorithmProvider
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\QGISAlgorithmProvider.py", line 78, in 
    from RasterLayerStatistics import RasterLayerStatistics
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\RasterLayerStatistics.py", line 36, in 
    from processing.tools import raster
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\raster.py", line 29, in 
    from osgeo import gdal
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 454, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named osgeo


Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]


QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a

Python path: ['C:/OSGEO4~1/apps/qgis/./python', u'C:/Users/James/.qgis2/python', u'C:/Users/James/.qgis2/python/plugins', 'C:/OSGEO4~1/apps/qgis/./python/plugins', 'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs', 'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\OSGEO4~1\\apps\\qgis\\python\\plugins\\fTools\\tools']
________________________________________
From: qgis-developer-bounces at lists.osgeo.org [qgis-developer-bounces at lists.osgeo.org] on behalf of Stott, James [fmrojst at fylkesmannen.no]
Sent: 06 July 2014 15:18
To: klausenlie; jef at norbit.de; qgis-developer at lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

@Tommy:
I have created a short blog post on how to enable SOSI support when installing QGIS using OSGeo4W.

http://jamesinnorway.net/2014/07/06/qgis-2-4-and-sosi/

I havent compiled anything from source for this.

Let me know if it helps.

@Jürgen:

I have had the sound issue before on my work machine (Windows 7), but it was only when the SOSI file wouldnt open. Now that the files open I do not get the problem on my home machine (Windows 8 - but never noticed if it was there before so cant comment on that).

James
________________________________________
From: qgis-developer-bounces at lists.osgeo.org [qgis-developer-bounces at lists.osgeo.org] on behalf of klausenlie [klausenlie at online.no]
Sent: 06 July 2014 14:42
To: qgis-developer at lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi Fischer and James!

What do I do now?
I don`t know how to use the patch link.
Sorry for this.

Tommy



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149834.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list