Great!
Yes, the solution is removing the /usr/share/qgis/python/qgis directory
and I think your hypothesis is absolutely correct!
Many thanks!
Martin Dobias wrote:
I'm getting the idea what probably happened. There are two ways where
PyQGIS modules can be put. First possibility (default when
On Wed, May 21, 2008 at 2:47 PM, Michele Ferretto
<[EMAIL PROTECTED]> wrote:
>> But I'm wondering why importing the bindings doesn't fail if you set
>> python path to /usr/share/qgis. Maybe the python modules are installed
>> in /usr/lib/python2.5/site-packages or
>> /usr/local/lib/python2.5/site-p
Martin Dobias wrote:
ls /usr/share/qgis/python
plugins qgis
and contents of /usr/share/qgis/python/qgis? :-)
ls /usr/share/qgis/python/qgis/
__init__.pyc
So here's the problem - in that directory you should have also core.so
and gui.so files which are python modules for QGIS. Please paste her
On Wed, May 21, 2008 at 1:54 PM, Michele Ferretto
<[EMAIL PROTECTED]> wrote:
> Martin Dobias wrote:
>>
>> On Wed, May 21, 2008 at 8:57 AM, Michele Ferretto
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> ls /usr/share/qgis/python
>>> plugins qgis
>>
>> and contents of /usr/share/qgis/python/qgis? :-)
>
> ls
Martin Dobias wrote:
On Wed, May 21, 2008 at 8:57 AM, Michele Ferretto
<[EMAIL PROTECTED]> wrote:
ls /usr/share/qgis/python
plugins qgis
and contents of /usr/share/qgis/python/qgis? :-)
ls /usr/share/qgis/python/qgis/
__init__.pyc
ls /usr/share/qgis/python
doc grass i18n images pytho
On Wed, May 21, 2008 at 8:57 AM, Michele Ferretto
<[EMAIL PROTECTED]> wrote:
> ls /usr/share/qgis/python
> plugins qgis
and contents of /usr/share/qgis/python/qgis? :-)
> ls /usr/share/qgis/python
> doc grass i18n images python resources svg themes
That's contents of /usr/share/qgis, isn
ls /usr/share/qgis/python
plugins qgis
ls /usr/share/qgis/python
doc grass i18n images python resources svg themes
print sys.path
['', '/usr/share/qgis', '/usr/lib/python25.zip', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib
On Tue, May 20, 2008 at 8:01 PM, Michele Ferretto
<[EMAIL PROTECTED]> wrote:
> if I set
>
> export PYTHONPATH=/usr/share/qgis/python/
>
> I have got an error
>
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No module named gui
>
> if I set
>
> export PYTHONPATH=/usr/sha
if I set
export PYTHONPATH=/usr/share/qgis/python/
I have got an error
Traceback (most recent call last):
File "", line 1, in
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 Ferre
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
__
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 wh
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 PYTHON
2008/5/20 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> 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 ?
The last time it happened to me I modifi
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
14 matches
Mail list logo