#64226 closed defect (fixed)
qgis3 Permission Error
| Reported by: | abruto | Owned by: | Veence (Vincent) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ||
| Port: | qgis3 |
Description
I work on an Apple M1 with Monterey. When starting qgis this error comes up. It runs ok after that but every script in the program fails with a similar error
PermissionError: [Errno 13] Permission denied: '/opt/local/share/grass78/etc/colors/grass'
Traceback (most recent call last):
File "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/plugins/grassprovider/Grass7AlgorithmProvider.py", line 106, in loadAlgorithms
version = Grass7Utils.installedVersion(True)
File "/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/plugins/grassprovider/Grass7Utils.py", line 116, in installedVersion
with subprocess.Popen(
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/opt/local/share/grass78/etc/colors/grass'
Python-Version: 3.9.9 (main, Nov 16 2021, 07:57:58) [Clang 13.0.0 (clang-1300.0.29.3)]
QGIS-Version: 3.22.0-Białowieża Białowieża, exported
Python-Pfad:
/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python
/Users/constantin/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/constantin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/MacPorts/QGIS3.app/Contents/MacOS/../Resources/python/plugins
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python39.zip
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
/Users/constantin/Library/Application Support/QGIS/QGIS3/profiles/default/python
Change History (5)
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
| Keywords: | qgis3 Permission error removed |
|---|---|
| Owner: | set to Veence |
| Port: | qgis3 added |
| Status: | new → assigned |
comment:2 Changed 4 years ago by Veence (Vincent)
comment:3 follow-up: 4 Changed 4 years ago by abruto
this solves the error with grass78 indeed. however when using for example GDAL-Tools similar errors occur. Could this be solved the same way?
comment:4 Changed 4 years ago by abruto
adding /opt/local/bin: as a custom prepend environment variable named PATH under QGIS - Settings - System solves the problem.
Replying to abruto:
this solves the error with grass78 indeed. however when using for example GDAL-Tools similar errors occur. Could this be solved the same way?
comment:5 Changed 4 years ago by Veence (Vincent)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Yep, I did that too, but didn’t remember it had to do with this problem. I will document that in a note Thanks a bunch for figuring it out on your own.
Note: See
TracTickets for help on using
tickets.

Yeah, I know. This is caused by a bug somewhere in the Python script. There’s a simple workaround, namely linking ${prefix}/bin/grass78 into the ${prefix}/share/grass78 directory. I should probably implement the patch as a standard feature of the grass7 port, but I’m still waiting for my new MacBookPro to arrive :/