Re: [Qgis-user] ubuntu 8.04 and python bindings

2008-05-20 Thread Martin Dobias
Hi,

ok let's try to track down the problem. Do you use some package
(which?) or do you compile qgis from source? Do you have any previous
versions of QGIS installed on the system?

What happens when you open console and type (supposing that your qgis
installation is in /usr/local):
$ export PYTHONPATH=/usr/local/share/qgis/python
$ python

then in python console do:
 from qgis.core import *

Will it show some error?

Martin

On Tue, May 20, 2008 at 5:13 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I know it's an issue discussed many times but my qgis 0.10 can't load
 the python bindings.
 I have sip4 and pyqt installed.
 Any idea about path to set or how can I resolve or understand the
 problem ?

 Thanks,
 Michele



 ___

 Migliaia di prodotti nuovi e usati a partire da 1 euro!
 http://rover.ebay.com/rover/1/724-7199-4110-179/4/?id=2

 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ubuntu 8.04 and python bindings

2008-05-20 Thread Michele Ferretto

Martin Dobias wrote:

Hi,

ok let's try to track down the problem. Do you use some package
(which?) or do you compile qgis from source? Do you have any previous
versions of QGIS installed on the system?


I installed qgis from the repositories; I purged the previous installation



What happens when you open console and type (supposing that your qgis
installation is in /usr/local):
$ export PYTHONPATH=/usr/local/share/qgis/python
$ python

then in python console do:

from qgis.core import *


Will it show some error?

Martin


No, I don't see any error
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ubuntu 8.04 and python bindings

2008-05-20 Thread Martin Dobias
On Tue, May 20, 2008 at 7:08 PM, Michele Ferretto
[EMAIL PROTECTED] wrote:

 then in python console do:

 from qgis.core import *

 Will it show some error?

 Martin

 No, I don't see any error

And what about this, does it work too?
 from qgis.gui import *

Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ubuntu 8.04 and python bindings

2008-05-20 Thread Michele Ferretto

if I set

export PYTHONPATH=/usr/share/qgis/python/

I have got an error

Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: No module named gui

if I set

export PYTHONPATH=/usr/share/qgis/

I have no error


Martin Dobias wrote:

On Tue, May 20, 2008 at 7:08 PM, Michele Ferretto
[EMAIL PROTECTED] wrote:


then in python console do:

from qgis.core import *

Will it show some error?

Martin

No, I don't see any error


And what about this, does it work too?

from qgis.gui import *


Martin


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user