Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect GRASS path in package #31390

Closed
gubuntu opened this issue Aug 24, 2019 · 10 comments
Closed

incorrect GRASS path in package #31390

gubuntu opened this issue Aug 24, 2019 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS macOS

Comments

@gubuntu
Copy link

gubuntu commented Aug 24, 2019

Describe the bug

QGIS references the brew grass path that was used for packaging rather than the local installation path, so grass processing modules will not work with the grass that is installed with QGIS

How to Reproduce

  1. Set the Grass7 folder to '/Applications/QGIS3.4.app/Contents/Resources/grass7' in processing settings
  2. Try to run a grass process
  3. See error -->
2019-08-24T17:14:31     INFO    GRASS GIS 7 execution console output
             Cleaning up temporary files...
             
             Traceback (most recent call last):
             
              File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 2207, in 
             
              main()
             
              File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 2085, in main
             
              clean_temp()
             
              File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 1782, in clean_temp
             
              call([gpath("etc", "clean_temp")], stdout=nul)
             
              File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 247, in call
             
              return subprocess.call(cmd, **kwargs)
             
              File "/Applications/QGIS3.4.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 323, in call
             
              with Popen(*popenargs, **kwargs) as p:
             
              File "/Applications/QGIS3.4.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 775, in __init__
             
              restore_signals, start_new_session)
             
              File "/Applications/QGIS3.4.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 1522, in _execute_child
             
              raise child_exception_type(errno_num, err_msg, err_filename)
             
             FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/osgeo-grass/7.6.1_5/grass76/etc/clean_temp': '/usr/local/Cellar/osgeo-grass/7.6.1_5/grass76/etc/clean_temp'
             
             /Applications/QGIS3.4.app/Contents/Resources/grass7/grass76.sh: line 19: /private/var/folders/8b/12slfx955yj25xt6x1_zjz8m0000gn/T/processing_01bf769e38844b0e9d2cf07e5f659f24/grassdata/temp_location/PERMANENT: is a directory
             
             Cleaning up temporary files...
             Traceback (most recent call last):
             File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 2207, in 
             main()
             File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 2085, in main
             clean_temp()
             File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 1782, in clean_temp
             call([gpath("etc", "clean_temp")], stdout=nul)
             File "/Applications/QGIS3.4.app/Contents/Resources/grass7/bin/_grass76", line 247, in call
             return subprocess.call(cmd, **kwargs)
             File "/Applications/QGIS3.4.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 323, in call
             with Popen(*popenargs, **kwargs) as p:
             File "/Applications/QGIS3.4.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 775, in __init__
             restore_signals, start_new_session)
             File "/Applications/QGIS3.4.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/subprocess.py", line 1522, in _execute_child
             raise child_exception_type(errno_num, err_msg, err_filename)
             FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/osgeo-grass/7.6.1_5/grass76/etc/clean_temp': '/usr/local/Cellar/osgeo-grass/7.6.1_5/grass76/etc/clean_temp'
             /Applications/QGIS3.4.app/Contents/Resources/grass7/grass76.sh: line 19: /private/var/folders/8b/12slfx955yj25xt6x1_zjz8m0000gn/T/processing_01bf769e38844b0e9d2cf07e5f659f24/grassdata/temp_location/PERMANENT: is a directory

QGIS and OS versions

QGIS version 3.4.11-Madeira QGIS code revision 9a8a6d4
Compiled against Qt 5.12.3 Running against Qt 5.12.3
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.7.2-CAPI-1.11.2 Running against GEOS 3.7.2-CAPI-1.11.2 b55d2125
PostgreSQL Client Version 11.3 SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.1
Compiled against PROJ 520 Running against PROJ 5.2.0
@gubuntu gubuntu added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 24, 2019
@gubuntu
Copy link
Author

gubuntu commented Aug 24, 2019

same problem in

QGIS version 3.8.2-Zanzibar QGIS code revision 4470baa
Compiled against Qt 5.12.3 Running against Qt 5.12.3
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.7.2-CAPI-1.11.2 Running against GEOS 3.7.2-CAPI-1.11.2 b55d2125
PostgreSQL Client Version 11.3 SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.1
Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018
OS Version macOS Mojave (10.14)    

jef-n added a commit to qgis/QGIS-Mac-Packager that referenced this issue Aug 24, 2019
@gubuntu
Copy link
Author

gubuntu commented Aug 24, 2019

Same problem if Processing GRASS provider is set to an external one like /Applications/GRASS-7.6.app/Contents/MacOS

@spatialthoughts
Copy link
Contributor

Still persists in 3.10 package. And it references QGIS3.4.app

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/osgeo-grass/7.6.1_5/grass76/etc/lock': '/usr/local/Cellar/osgeo-grass/7.6.1_5/grass76/etc/lock'
/Applications/QGIS3.4.app/Contents/Resources/grass7/grass76.sh

@gioman gioman added the macOS label Nov 11, 2019
@AndrewAnnex
Copy link
Contributor

I think this issue is with the qgis mac packager repository, I've posted an issue there that should be investigated further qgis/QGIS-Mac-Packager#25

@MelnykAndriy
Copy link

Happens to me.

@soilphysics
Copy link

Same here. Please fix.

@rmseifried
Copy link

Fresh install of 3.10 today, still getting this error.

@citizenfish
Copy link
Contributor

Can confirm error still persists in 3.10 OSX

@gioman
Copy link
Contributor

gioman commented Jul 6, 2020

See:

#33206
#32511

@gioman gioman added the GRASS label Jul 6, 2020
@gioman
Copy link
Contributor

gioman commented Jul 7, 2020

merging with #32511

@gioman gioman closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS macOS
Projects
None yet
Development

No branches or pull requests

8 participants