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 compiling
from source) is that modules are put to
(prefix)/share/qgis/python/qgis path, second possibility (which is
more suitable for packagers) is that the modules are put to python's
site-packages directory (which is often used as place for custom
python modules).
I guess previously you have installed qgis 0.9.x (which supposedly
used first variant) and then installed qgis 0.10. For some reason (I
expect that once you've run qgis as root) python created __init__.pyc
in /usr/share/qgis/python/qgis so uninstall of qgis 0.9 didn't delete
this directory. Now, when qgis 0.10 finds this dir it thinks it
contains PyQGIS modules which are in fact present elsewhere (but this
directory has preference). Is my hypothesis correct? ;-)
Regarding the correction of your problem - the best way is to leave
contents of /usr/lib/python2.5/site-packages untouched and just delete
/usr/share/qgis/python/qgis directory as root. Please confirm if that
works for you.
Bye,
Martin
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user