Bug report #16195
Updated by Giovanni Manghi over 7 years ago
I'm trying GRASS7 on Processing (OSGeo4W64bits QGIS master 2.99.0-7), and all GRASS algorithms give these errors:
Problem execunting algorithm
local variable 'filename' referenced before assignment See log for more details
<pre>
2017-02-15T09:39:16 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 216, in execute
self.processAlgorithm(feedback)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 281, in processAlgorithm
self.processInputs()
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 333, in processInputs
self.commands.append(self.exportVectorLayer(value))
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 526, in exportVectorLayer
command += ' input="' + os.path.dirname(filename) + '"'
UnboundLocalError: local variable 'filename' referenced before assignment
2017-02-15T09:39:16 1 There were errors executing the algorithm.
</pre>
must be str, not NoneType See log for more details
<pre>
2017-02-15T10:14:38 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 216, in execute
self.processAlgorithm(feedback)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 294, in processAlgorithm
Grass7Utils.executeGrass7(self.commands, feedback, self.outputCommands)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Utils.py", line 291, in executeGrass7
command, grassenv = Grass7Utils.prepareGrass7Execution(commands)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Utils.py", line 266, in prepareGrass7Execution
Grass7Utils.createGrass7Script(commands)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Utils.py", line 178, in createGrass7Script
output.write('set GRASS_VERSION=' + Grass7Utils.installedVersion() + '\
')
TypeError: must be str, not NoneType
2017-02-15T10:14:38 1 There were errors executing the algorithm.
</pre>
Problem execunting algorithm
local variable 'filename' referenced before assignment See log for more details
<pre>
2017-02-15T09:39:16 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 216, in execute
self.processAlgorithm(feedback)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 281, in processAlgorithm
self.processInputs()
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 333, in processInputs
self.commands.append(self.exportVectorLayer(value))
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 526, in exportVectorLayer
command += ' input="' + os.path.dirname(filename) + '"'
UnboundLocalError: local variable 'filename' referenced before assignment
2017-02-15T09:39:16 1 There were errors executing the algorithm.
</pre>
must be str, not NoneType See log for more details
<pre>
2017-02-15T10:14:38 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 216, in execute
self.processAlgorithm(feedback)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 294, in processAlgorithm
Grass7Utils.executeGrass7(self.commands, feedback, self.outputCommands)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Utils.py", line 291, in executeGrass7
command, grassenv = Grass7Utils.prepareGrass7Execution(commands)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Utils.py", line 266, in prepareGrass7Execution
Grass7Utils.createGrass7Script(commands)
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing\\algs\\grass7\\Grass7Utils.py", line 178, in createGrass7Script
output.write('set GRASS_VERSION=' + Grass7Utils.installedVersion() + '\
')
TypeError: must be str, not NoneType
2017-02-15T10:14:38 1 There were errors executing the algorithm.
</pre>