[Qgis-user] installing 1.7 standalone Win XP: Couldn't load PyQGIS., Python support will be disabled.

Saber razmjooeis at faunalia.co.uk
Thu Jun 23 02:23:32 PDT 2011


With osgeo4w you can download all the packages locally (under advanced installation) and use those to install to other PCs.


Janneke Qgis <janneke.qgis at gmail.com> wrote:

>Hi Milo,
>
>I've tried the osgeo4w installer on Vista, which works. So I can give 
>that a try on XP as well. However, I need to be able to work with the 
>standalone installer, as our internet connection here (Tanzania) is very 
>unreliable and rather slow, and a lot of our clients don't have an 
>internet connection.
>
>But you got me thinking about why it would be overruled by an older 
>version: I'd uninstalled 1.6, but still had a version 1.5 installed. 
>After uninstalling 1.5 as well there is no problem. I've now also 
>re-installed 1.6 (standalone installer) and that now seems to work 
>without problems (at least I can start up without error messages...).
>
>Thanks for your help!
>Janneke
>
>On 23/06/2011 11:39, Milo van der Linden wrote:
>> Janneke,
>>
>> It probably ships with the correct python sip, but perhaps it is not
>> on your path or overruled by an older version of sip. Have you tried
>> the osgeo4w installer, or did you install from the qGIS standalone
>> installer? Perhaps the osgeo4w installation process can help as it
>> will also install dependencies on the go
>>
>> http://trac.osgeo.org/osgeo4w/
>>
>> 2011/6/23 Janneke Qgis<janneke.qgis at gmail.com>:
>>> Thanks, Milo, I'll give it a try. I need the python bindings. It looks a bit
>>> daunting though, last time I tried building things I got completely stuck.
>>>
>>> I'm a bit surprised that the standalone installer doesn't come with the
>>> corresponding python sip - I hoped it would've worked out of the box. Is it
>>> supposed to?
>>>
>>> greetings,
>>> Janneke
>>>
>>> On 23/06/2011 11:02, Milo van der Linden wrote:
>>>> Hello Janneke,
>>>>
>>>> I think I remember that qGIS can run without pyQGIS, so you should be
>>>> good on "regular" functionality with qGIS.
>>>>
>>>> However, for python support you need a more recent version of python
>>>> sip. Instructions for installing that can be found here:
>>>> http://www.riverbankcomputing.co.uk/static/Docs/sip4/installation.html
>>>>
>>>> Good luck!
>>>>
>>>> Milo van der Linden
>>>>
>>>>
>>>> 2011/6/23 Janneke Qgis<janneke.qgis at gmail.com>:
>>>>> Dear all,
>>>>>
>>>>> I've just tried installing the standalone version of Qgis 1.7 on XP, and
>>>>> after starting the program I get the following error message:
>>>>> --------------------------
>>>>> Couldn't load PyQGIS.
>>>>> Python support will be disabled.
>>>>>
>>>>>
>>>>> Traceback (most recent call last):
>>>>>   File "", line 1, in
>>>>> RuntimeError: the sip module implements API v5.0 but the qgis.core
>>>>> module requires API v8.1
>>>>>
>>>>>
>>>>> Python version:
>>>>> 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
>>>>>
>>>>> QGIS version:
>>>>> 1.7.0-Wroclaw 'Wroclaw', 63ecdd7
>>>>>
>>>>> Python path:
>>>>> ['C:/PROGRA~1/QUANTU~2/apps/qgis/./python', 'C:/Documents and
>>>>> Settings/Admin/.qgis/python', 'C:/Documents and
>>>>> Settings/Admin/.qgis/python/plugins',
>>>>> 'C:/PROGRA~1/QUANTU~2/apps/qgis/./python/plugins', 'C:\\Program
>>>>> Files\\ArcGIS\\bin', 'C:\\Qgis\\apps\\qgis\\python',
>>>>> 'C:\\Qgis\\apps\\Python25\\Lib\\site-packages',
>>>>> 'C:\\WINDOWS\\system32\\python25.zip',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\DLLs',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\plat-win',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\lib-tk',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\qgis\\bin',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\site-packages',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\site-packages\\win32',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\site-packages\\win32\\lib',
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\site-packages\\Pythonwin',
>>>>>
>>>>> 'C:\\PROGRA~1\\QUANTU~2\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode']
>>>>> ---------------------------
>>>>>
>>>>> Is there anything else I should install or set? I've also sent it to the
>>>>> developer list yesterday.
>>>>>
>>>>> greetings,
>>>>> Janneke
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Qgis-user mailing list
>>>>> Qgis-user at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>
>>>
>
>_______________________________________________
>Qgis-user mailing list
>Qgis-user at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the Qgis-user mailing list