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

Processing toolbox: r.reclass failing on Windows #24040

Closed
qgib opened this issue Jan 29, 2017 · 6 comments
Closed

Processing toolbox: r.reclass failing on Windows #24040

qgib opened this issue Jan 29, 2017 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GRASS High Priority Regression Something which used to work, but doesn't anymore
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jan 29, 2017

Author Name: Markus Neteler (Markus Neteler)
Original Redmine Issue: 16128
Affected QGIS version: 2.18.23
Redmine category:processing/grass


From
https://gis.stackexchange.com/questions/225923/how-to-avoir-ioerror-errno-13-permission-denied-when-running-r-reclass-from

(also verified in 2.18 on Windows myself)

While it works fine on Linux, r.reclass is failing on Windows:

2017-01-26T12:25:14 2   Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 274, in processAlgorithm
                func(self)
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\algs\\grass7\\ext\
_reclass.py", line 45, in processCommand
                with open(tempRulesName, "w") as tempRules:
            IOError: [Errno 13] Permission denied: u'tmp1485429914724

It seems that the TEMP dir is not set properly.

@qgib
Copy link
Contributor Author

qgib commented Jan 31, 2017

Author Name: Markus Neteler (Markus Neteler)


Problematic code is here:

https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/ext/r_reclass.py#L45

Maybe this is missing:

from processing.tools.system import getTempFilename

(I compared to https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/ext/r_category.py )

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2017

Author Name: Alexander Bruy (@alexbruy)


  • category_id was changed from Processing/Core to Processing/GRASS

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2017

Author Name: Alexander Bruy (@alexbruy)


Fixed in changeset "2c188b2b0f00595ed4e2b3f0851250812b563456".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Sep 20, 2018

Author Name: matteo ghetta (@ghtmtt)


Issue still valid on Windows systems.


(also verified in 2.18 on Windows myself)

While it works fine on Linux, r.reclass is failing on Windows:

2017-01-26T12:25:14 2   Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 274, in processAlgorithm
                func(self)
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\algs\\grass7\\ext\
_reclass.py", line 45, in processCommand
                with open(tempRulesName, "w") as tempRules:
            IOError: [Errno 13] Permission denied: u'tmp1485429914724

It seems that the TEMP dir is not set properly. to From
https://gis.stackexchange.com/questions/225923/how-to-avoir-ioerror-errno-13-permission-denied-when-running-r-reclass-from

(also verified in 2.18 on Windows myself)

While it works fine on Linux, r.reclass is failing on Windows:

2017-01-26T12:25:14 2   Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\algs\\grass7\\Grass7Algorithm.py", line 274, in processAlgorithm
                func(self)
              File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins\\processing\\algs\\grass7\\ext\
_reclass.py", line 45, in processCommand
                with open(tempRulesName, "w") as tempRules:
            IOError: [Errno 13] Permission denied: u'tmp1485429914724

It seems that the TEMP dir is not set properly.

  • assigned_to_id removed Victor Olaya
  • regression was changed from 0 to 1
  • version was changed from 2.18.2 to 2.18.23

@qgib
Copy link
Contributor Author

qgib commented Sep 20, 2018

Author Name: Giovanni Manghi (@gioman)


matteo ghetta wrote:

Issue still valid on Windows systems.

I just tried on QGIS master and 2.18.24 on Windows 10 and it works as expected. Can you share the data and reclass rules?


  • status_id was changed from Reopened to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2019

Author Name: Alexander Bruy (@alexbruy)


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 22, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority GRASS Regression Something which used to work, but doesn't anymore labels May 25, 2019
@qgib qgib added this to the Version 2.18 milestone May 25, 2019
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 High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant