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

grass algorithms in processing does not work (qgis 3.4.4 grass 7.6) #28991

Closed
qgib opened this issue Feb 5, 2019 · 6 comments
Closed

grass algorithms in processing does not work (qgis 3.4.4 grass 7.6) #28991

qgib opened this issue Feb 5, 2019 · 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

Comments

@qgib
Copy link
Contributor

qgib commented Feb 5, 2019

Author Name: Claas Leiner (@claasleiner)
Original Redmine Issue: 21173
Affected QGIS version: 3.4.4
Redmine category:processing/grass


The Grass algorithms in the toolbox does not work and stop with an error message.
e.g. v.buffer and v.overlay.

qgis 3.4.4 / grass 7.6 / Ubuntu 16.04.

2019-02-05T13:25:38 CRITICAL Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Algorithm.py", line 423, in processAlgorithm
Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
File "/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py", line 373, in executeGrass
startupinfo=si if isWindows() else None
TypeError: init() got an unexpected keyword argument 'encoding'


Related issue(s): #28705 (duplicates)
Redmine related issue(s): 20886


@qgib
Copy link
Contributor Author

qgib commented Feb 5, 2019

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from Open to Closed
  • resolution was changed from to duplicate

@qgib
Copy link
Contributor Author

qgib commented Feb 5, 2019

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2019

Author Name: Luigi Pirelli (@luipir)


tested on master with v.overlay and v.buffer and they works correctly

@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2019

Author Name: Marie Silvestre (@MarieSilvestre)


I have the exact same problem.

I'm running QGIS 3.4.5 with GRASS 7.6 on Ubuntu 16.04 Xenial (I have reinstalled QGIS from the ubuntugis-ltr repository today).
I also tried with QGIS 3.4.4 with GRASS 7.2 on a Debian strech.

I have no problem running GRASS in standalone but as soon as I try to run any GRASS algo from QGIS toolbox, I get this error: init() got an unexpected keyword argument 'encoding'

I have absolutely no idea how to solve this apart from maybe moving to Ubuntu 18 / Debian 10... or Windows...

Claas Leiner, have you solved your problem?

@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2019

Author Name: Claas Leiner (@claasleiner)


The problem persists.

My Workaroud:

Open the file

/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py

and delete every line with:

encoding="cp{}".format(Grass7Utils.getWindowsCodePage()) if isWindows() else None,

After that I can run Processing-Grass-Commands.

The problem does not seem to exist with all QGIS installation on Ubuntu. I use Ubuntu 16.04 and QGIS with unbuntugis dependencies.

Claas


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Mar 5, 2019

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset 5fca18c.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Reopened to Closed

@qgib qgib closed this as completed Mar 5, 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
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