[Qgis-user] TauDEM works in prompt but not in QGIS

Goyo goyodiaz at gmail.com
Thu Sep 12 14:47:27 PDT 2013


2013/9/12 miguel_lagos <miguel.lagos.z at gmail.com>:

>   File
> "C:/Users/SONY/.qgis//python/plugins\sextante\parameters\ParameterRaster.py",
> line 76, in setValue
>     return os.path.exists(self.value)
> NameError: global name 'os' is not defined

Looks like a bug in sextante plugin. If updating it does not solve the
issue try editing
C:/Users/SONY/.qgis//python/plugins\sextante\parameters\ParameterRaster.py
and add "import os" after the license notice and before __author__,
like this:

................
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
"""
import os

__author__ = 'Victor Olaya'
................

Goyo



More information about the Qgis-user mailing list