[Qgis-user] Re: Installing QGIS 1.5 on Debian Lenny / Squeeze

Gary Smith gary.smith.rsa at gmail.com
Wed Aug 4 11:18:37 PDT 2010


Niccolo,

Thanks for the response.

I am trying to install on Squeeze. I have included Squeeze in the 
sources.list file. I usually use Synaptic but in order to present 
information for debugging I have used apt-get install. See below:

AspireOne:/home/gary# apt-get install qgis
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
   libqgis1.5.0 python-qgis python-qgis-common qgis-common 
qgis-plugin-grass-common
Recommended packages:
   qgis-plugin-grass
The following NEW packages will be installed:
   libqgis1.5.0 python-qgis python-qgis-common qgis qgis-common 
qgis-plugin-grass-common
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/13.9MB of archives.
After this operation, 44.8MB of additional disk space will be used.

Do you want to continue [Y/n]? y
Selecting previously deselected package libqgis1.5.0.
(Reading database ... 323370 files and directories currently installed.)
Unpacking libqgis1.5.0 (from 
.../libqgis1.5.0_1.5.0~svn20100411+gfossit60-2_i386.deb) ...
Selecting previously deselected package python-qgis-common.
Unpacking python-qgis-common (from 
.../python-qgis-common_1.5.0~svn20100411+gfossit60-2_all.deb) ...
Selecting previously deselected package python-qgis.
Unpacking python-qgis (from 
.../python-qgis_1.5.0~svn20100411+gfossit60-2_i386.deb) ...
Selecting previously deselected package qgis-common.
Unpacking qgis-common (from 
.../qgis-common_1.5.0~svn20100411+gfossit60-2_all.deb) ...
Selecting previously deselected package qgis.
Unpacking qgis (from .../qgis_1.5.0~svn20100411+gfossit60-2_i386.deb) ...
Selecting previously deselected package qgis-plugin-grass-common.
Unpacking qgis-plugin-grass-common (from 
.../qgis-plugin-grass-common_1.5.0~svn20100411+gfossit60-2_all.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for shared-mime-info ...
Setting up libqgis1.5.0 (1.5.0~svn20100411+gfossit60-2) ...
Setting up python-qgis-common (1.5.0~svn20100411+gfossit60-2) ...
Setting up python-qgis (1.5.0~svn20100411+gfossit60-2) ...
Setting up qgis-plugin-grass-common (1.5.0~svn20100411+gfossit60-2) ...
Setting up qgis-common (1.5.0~svn20100411+gfossit60-2) ...
Setting up qgis (1.5.0~svn20100411+gfossit60-2) ...
Processing triggers for menu ...
AspireOne:/home/gary#

Everything goes well except now when I run QGIS I get my old friend ...

Couldn't load PyQGIS.
Python support will be disabled.

Traceback (most recent call last):
   File "", line 1, in
RuntimeError: the sip module implements API v7.0 to v7.1 but the 
qgis.core module requires API v6.0

Python version:
2.5.5 (r255:77872, Apr 21 2010, 09:27:14)
[GCC 4.4.3]

QGIS version:
1.5.0-Trunk 'Trunk', exported

Python path:
['/usr/share/qgis/python', '/home/gary/.qgis/python', 
'/home/gary/.qgis/python/plugins', '/usr/share/qgis/python/plugins', 
'/usr/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg', 
'/usr/lib/python2.5/site-packages/Shapely-1.0.12-py2.5.egg', 
'/usr/lib/python2.5/site-packages/rpy2-2.0.7-py2.5-linux-i686.egg', 
'/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', 
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', 
'/usr/local/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages/PIL', 
'/usr/lib/python2.5/site-packages/gst-0.10', 
'/usr/lib/pymodules/python2.5', '/usr/lib/pymodules/python2.5/gtk-2.0', 
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']


I have Python 2.5 installed but the default python version is 2.6. I 
cannot revert python to 2.5. Again QGIS 1.4.0 from the Debian repository 
installs fine.

Also, note from the above that "qgis-plugin-grass" is not a dependency, 
it is a recommended package only. That is despite 
"qgis-plugin-grass-common" being a dependency. Is that correct?

I appreciate the assistance.

Rgds
Gary


On 04/08/2010 12:22, Niccolo Rigacci wrote:
> On Tue, Aug 03, 2010 at 07:25:01PM +0200, Gary Smith wrote:
>    
>> Nicollo,
>>
>> I get a segmentation fault. This occurs immediately the "Starting
>> Python" message is displayed on the Splash screen.
>>
>> Also, there also appears to be a dependency problem with the grass plugin.
>>      
> Check all the old packages/libraries you have installed and
> remove them manually:
>
> dpk --list | grep qgis
> dpkg --purge<package_name>  <package_name>  ...
>
> Then re-do the apt-get install.
>
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20100804/8bc6eba8/attachment.html>


More information about the Qgis-user mailing list