The problem is solved changing:<div><br></div><div>- import sextante.ftools.Buffer as buff</div><div>+ from sextante.ftools import Buffer as buff</div><div><br></div><div>at [...]/sextante/ftools/FixedDistanceBuffer.py [12]</div>
<div><br></div><div>At first sight It could be a problem with the overloaded _builtin_import inside Qgis's utils.py... But it's too late to investigate it :)</div><div><br></div><div>giovanni<br><br><div class="gmail_quote">
2012/4/3 Pedro Venāncio <span dir="ltr"><<a href="mailto:pedrongvenancio@yahoo.com">pedrongvenancio@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:times new roman,new york,times,serif"><div><span>Hi,</span></div><div><span><br></span></div><div><span>Same problem here on Debian Squeeze.</span></div><div><br></div><div>Best regards,<br>
<span></span></div><div><span>Pedro Venāncio<br></span></div><div><br></div> <div style="font-family:times new roman,new york,times,serif;font-size:10pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold">From:</span></b> Paolo Cavallini <<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>><br> <b><span style="font-weight:bold">To:</span></b> <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a> <br>
<b><span style="font-weight:bold">Sent:</span></b> Tuesday, April 3, 2012 7:33 PM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Qgis-developer] Extending SEXTANTE
algorithms in QGIS (a new plugin/example)<br> </font> </div><div><div class="h5"> <br>
Il 03/04/2012 13:32, Victor Olaya ha scritto:<br>> Hi all<br>> <br>> As some people mentioned, is important to incorporate more algorithms<br>> into SEXTANTE to make it become some kind of standarized geoanalysis<br>
<br>Upgrading throws errors:<br><br>Impossibile caricare il plugin 'sextante' da<br>['/home/paolo/.qgis/python/plugins/GeoCoding',<br>'/home/paolo/.qgis/python/plugins/sextante',<br>'/home/paolo/.qgis/python/plugins/GeoCoding',<br>
'/home/paolo/.qgis/python/plugins/elevation',<br>'/home/paolo/.qgis/python/plugins/cswclient', '/usr/share/qgis/python',<br>'/home/paolo/.qgis/python', '/home/paolo/.qgis/python/plugins',<br>
'/usr/share/qgis/python/plugins', '/usr/lib/python2.7',<br>'/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',<br>'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',<br>
'/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages',<br>'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',<br>'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7',<br>'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '.',<br>
'/home/paolo/.qgis/python/plugins/ziplayers/logic',<br>'/home/paolo/.qgis/python/plugins/ziplayers/gui',<br>'/usr/share/qgis/python/plugins/fTools/tools',<br>'/home/paolo/.qgis/python/plugins/mmqgis/forms',<br>
'/home/paolo/.qgis/python/plugins/QuickMultiAttributeEdit/forms', '~/.qgis/python',<br>'.', '.']<br><br>Traceback (most recent call last):<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 143, in loadPlugin<br>
__import__(packageName)<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 309, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br> File "/home/paolo/.qgis/python/plugins/sextante/__init__.py", line 1, in<br>
from sextante.SextantePlugin
import SextantePlugin<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 309, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br> File "/home/paolo/.qgis/python/plugins/sextante/SextantePlugin.py", line 6, in<br>
from sextante.core.Sextante import Sextante<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 309, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br> File "/home/paolo/.qgis/python/plugins/sextante/core/Sextante.py", line 13, in<br>
from sextante.ftools.FToolsAlgorithmProvider import FToolsAlgorithmProvider<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 309, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br>
File "/home/paolo/.qgis/python/plugins/sextante/ftools/FToolsAlgorithmProvider.py",<br>line 21, in<br>
from sextante.ftools.FixedDistanceBuffer import FixedDistanceBuffer<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 309, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br>
File "/home/paolo/.qgis/python/plugins/sextante/ftools/FixedDistanceBuffer.py",<br>line 12, in<br> import sextante.ftools.Buffer as buff<br>AttributeError: 'module' object has no attribute 'ftools'<br>
===<br><br>and then:<br><br>===<br>Traceback (most recent call last):<br> File "/home/paolo/.qgis/python/plugins/plugin_installer/installer_gui.py", line<br>585, in upgradeAllClicked<br> self.installPlugin(key, quiet=True)<br>
File "/home/paolo/.qgis/python/plugins/plugin_installer/installer_gui.py", line<br>656, in installPlugin<br> reloadPlugin(key)<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 263, in reloadPlugin<br>
startPlugin(packageName)<br> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 158, in startPlugin<br> package = sys.modules[packageName]<br>KeyError: u'sextante'<br>===<br><br>Thanks.<br>
-- <br>Paolo Cavallini - Faunalia<br><a href="http://www.faunalia.eu" target="_blank">www.faunalia.eu</a><br>Full contact details at <a href="http://www.faunalia.eu/pc" target="_blank">www.faunalia.eu/pc</a><br>_______________________________________________<br>
Qgis-developer mailing list<br><a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br><br> </div></div></div> </div> </div></div><br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div>