Re: [Qgis-user] python import errors

2008-11-14 Thread José María Michia
2008/11/13 Martin Dobias <[EMAIL PROTECTED]>:
> On Thu, Nov 13, 2008 at 2:15 AM, José María Michia
> <[EMAIL PROTECTED]> wrote:
>> I have noticed that "/usr/local/lib/libqgispython.so.0.11" is out of
>> date. I deleted the older version of the file "/
>> usr/local/lib/libqgispython.so.0.11" (and also libqgisgrass) QGIS and
>> now works fine (without python and without grass, I guess).
>>
>> I think QGIS has not been properly compiled. I remember a message on
>> ccmake said that "Python is not being built," but imagine that it was
>> not serious. Return to the compilation process and send a message with
>> this problem.
>
> Ok, so this means that outdated libqgispython.so was from previous 
> installation.
>
> I think some python-related configuration parameters for QGIS haven't
> been updated since the upgrade. The simplest way to fix it is remove
> the whole build directory and then build QGIS again (check messages
> from cmake whether it's going to build python support).

Problem solved after reinstalling qt, SIP and pyqt (using "emerge"),
and then remove the directory of QGIS and having built again.

Thanks all
José María

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


Re: [Qgis-user] python import errors

2008-11-13 Thread Martin Dobias
On Thu, Nov 13, 2008 at 2:15 AM, José María Michia
<[EMAIL PROTECTED]> wrote:
> I have noticed that "/usr/local/lib/libqgispython.so.0.11" is out of
> date. I deleted the older version of the file "/
> usr/local/lib/libqgispython.so.0.11" (and also libqgisgrass) QGIS and
> now works fine (without python and without grass, I guess).
>
> I think QGIS has not been properly compiled. I remember a message on
> ccmake said that "Python is not being built," but imagine that it was
> not serious. Return to the compilation process and send a message with
> this problem.

Ok, so this means that outdated libqgispython.so was from previous installation.

I think some python-related configuration parameters for QGIS haven't
been updated since the upgrade. The simplest way to fix it is remove
the whole build directory and then build QGIS again (check messages
from cmake whether it's going to build python support).

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


Re: [Qgis-user] python import errors

2008-11-12 Thread José María Michia
2008/11/12 Martin Dobias <[EMAIL PROTECTED]>
>
> Hi,
>
> On Thu, Nov 13, 2008 at 12:39 AM, José María Michia
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've compiled QGIS 0.11 again, because I've updated Python to version 2.5.
> >
> > Now, when I go to a shell and execute qgis, I obtain some python errors:
> >
> > "An error occured during execution of following code:
> > import traceback
> > can't import cStringIO"
> >
> > "An error occured during execution of following code:
> >
> > import __main__
> > can't import cStringIO"
> >
> > "Couldn't load SIP module.
> > Python support will be disabled.
> > can't import cStringIO"
> >
> > After this messages, QGIS exits.
> >
> > In python shell, the imports mentioned in error messages work correctly:
> >
> > $ python
>  import traceback
>  import cStringIO
>  import sip
> 
> > Everything was functioning normally before upgrading Python. I suppose I
> > have to modify some system variable, like PYTHONPATH, but I can not find
> > which one.
> >
> > I'm using gentoo. Python 2.5 installed using emerge. The previous
> > installation of QGIS, that function correctly, compiled manually.
>
> there must be still some mismatch with your python versions...
> - do you have only one version of python installed or more? (check:
> equery l python)

I only have installed Python version 2.5 . I've deleted previous versions.

> - what version do you get if you run: python -v

Python 2.5.2 (r252, Oct 16 2008, 10:28:16)

> - what python version does libqgispython.so link to (using command ldd)

"ldd /usr/local/lib/libqgispython.so.0.11" does not show anything
resembling "libpython ..."

> - on gentoo there's a command python-updater. maybe there are some
> updates pending?

I've run python-updater, and the problem persists.

I have noticed that "/usr/local/lib/libqgispython.so.0.11" is out of
date. I deleted the older version of the file "/
usr/local/lib/libqgispython.so.0.11" (and also libqgisgrass) QGIS and
now works fine (without python and without grass, I guess).

I think QGIS has not been properly compiled. I remember a message on
ccmake said that "Python is not being built," but imagine that it was
not serious. Return to the compilation process and send a message with
this problem.

Thanks Martin
José María
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] python import errors

2008-11-12 Thread Martin Dobias
Hi,

On Thu, Nov 13, 2008 at 12:39 AM, José María Michia
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've compiled QGIS 0.11 again, because I've updated Python to version 2.5.
>
> Now, when I go to a shell and execute qgis, I obtain some python errors:
>
> "An error occured during execution of following code:
> import traceback
> can't import cStringIO"
>
> "An error occured during execution of following code:
>
> import __main__
> can't import cStringIO"
>
> "Couldn't load SIP module.
> Python support will be disabled.
> can't import cStringIO"
>
> After this messages, QGIS exits.
>
> In python shell, the imports mentioned in error messages work correctly:
>
> $ python
 import traceback
 import cStringIO
 import sip

> Everything was functioning normally before upgrading Python. I suppose I
> have to modify some system variable, like PYTHONPATH, but I can not find
> which one.
>
> I'm using gentoo. Python 2.5 installed using emerge. The previous
> installation of QGIS, that function correctly, compiled manually.

there must be still some mismatch with your python versions...
- do you have only one version of python installed or more? (check:
equery l python)
- what version do you get if you run: python -v
- what python version does libqgispython.so link to (using command ldd)
- on gentoo there's a command python-updater. maybe there are some
updates pending?

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


[Qgis-user] python import errors

2008-11-12 Thread José María Michia
Hi,

I've compiled QGIS 0.11 again, because I've updated Python to version 2.5.

Now, when I go to a shell and execute qgis, I obtain some python errors:

"An error occured during execution of following code:
import traceback
can't import cStringIO"

"An error occured during execution of following code:

import __main__
can't import cStringIO"

"Couldn't load SIP module.
Python support will be disabled.
can't import cStringIO"

After this messages, QGIS exits.

In python shell, the imports mentioned in error messages work correctly:

$ python
>>> import traceback
>>> import cStringIO
>>> import sip
>>>
Everything was functioning normally before upgrading Python. I suppose I
have to modify some system variable, like PYTHONPATH, but I can not find
which one.

I'm using gentoo. Python 2.5 installed using emerge. The previous
installation of QGIS, that function correctly, compiled manually.

Thanks for any advice.
José María
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user