[Qgis-user] Problem using Grass 7 functions in Processing Toolbox

Jonathan Moules jonathanmoules at warwickshire.gov.uk
Tue Jul 22 05:51:09 PDT 2014


I confirm this. On the Advanced Interface, the "GRASS commands" all appear
to be fine, but anything under "GRASS GIS 7 commands" fails with a wall of
Python error:

An error has occured while executing Python code:
> Traceback (most recent call last):
>   File
> "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py",
> line 181, in executeAlgorithm
>     message = alg.checkBeforeOpeningParametersDialog()
>   File
> "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py",
> line 511, in checkBeforeOpeningParametersDialog
>     msg = Grass7Utils.checkGrass7IsInstalled()
>   File
> "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py",
> line 361, in checkGrass7IsInstalled
>     cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
>   File "C:\PROGRA~1\QGISCH~1\apps\Python27\lib\ntpath.py", line 96, in join
>     assert len(path) > 0
> TypeError: object of type 'NoneType' has no len()
> Python version:
> 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
>
> QGIS version:
> 2.4.0-Chugiak Chugiak, 8fdd08a
> Python path:
> ['C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\\processing',
> 'C:/PROGRA~1/QGISCH~1/apps/qgis/./python', u'C:/Users/jmou1/.qgis2/python',
> u'C:/Users/jmou1/.qgis2/python/plugins',
> 'C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins',
> 'C:\\PROGRA~1\\QGISCH~1\\bin\\python27.zip',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\DLLs',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\plat-win',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\lib-tk',
> 'C:\\PROGRA~1\\QGISCH~1\\bin', 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\PIL',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\win32',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg',
> 'C:\\PROGRA~1\\QGISCH~1\\apps\\qgis\\python\\plugins\\fTools\\tools']



This is QGIS 2.4 64bit, Windows 7 64bit. Using the standalone installer
package.

Cheers,
Jonathan



On 4 July 2014 18:24, mtreg <mtreglia at gmail.com> wrote:

> Hi All,
>
> I was trying to access some GRASS 7 functions through the Processing
> toolbox
> in QGIS 2.4 (32 bit), but none work (see error message below).  The other
> packages I've tied in the Processing toolbox seem to work fine. My machine
> is running Win7 64 bit. I've gotten this with versions installed from both
> OSGEO4W and the basic QGIS installer.  I've tried suggestions recommended
> in
> this bug report thread with no success: http://hub.qgis.org/issues/10714
>
> Any suggestions or useful interpretations in of the error message?
>
> Thanks!
> Mike
>
> Here is the entirety of the error message that pops up:
>
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>   File
>
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py",
> line 181, in executeAlgorithm
>     message = alg.checkBeforeOpeningParametersDialog()
>   File
>
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py",
> line 511, in checkBeforeOpeningParametersDialog
>     msg = Grass7Utils.checkGrass7IsInstalled()
>   File
>
> "C:/OSGeo4W/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py",
> line 361, in checkGrass7IsInstalled
>     cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
>   File "C:\OSGeo4W\apps\Python27\lib\ntpath.py", line 96, in join
>     assert len(path) > 0
> TypeError: object of type 'NoneType' has no len()
>
>
> Python version:
> 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
>
>
> QGIS version:
> 2.4.0-Chugiak Chugiak, 8fdd08a
>
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Problem-using-Grass-7-functions-in-Processing-Toolbox-tp5149668.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>

-- 
This transmission is intended for the named addressee(s) only and may 
contain confidential, sensitive or personal information and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this transmission in error please notify 
the sender immediately. All email traffic sent to or from us, including 
without limitation all GCSX traffic, may be subject to recording and/or 
monitoring in accordance with relevant legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140722/251812ac/attachment.html>


More information about the Qgis-user mailing list