-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
v.clean UnicodeDecodeError when special character (German Umlaute) in path #29845
Comments
I faced similar problems, I changed the language from regional settings in Windows but still I cannot run the tools from GRASS toolbox. Actually, I got the following message:
I tried to save the output without spaces etc but again it does not work. Do you know how can I fix it? |
works fine on QGIS 3.10.8 in german on a win 10 system in german. |
I got the same issue with QGIS 3.20 that is shipped with GRASS 7.8.5. The modules that would fail are "r.sun.incidout", "r.sun.insoltime", "r.sunhours", and others which create an internal temporary shell script file (batch job file) to execute some GRASS functions. There's no way in which the user can touch the encode of that temporary file. So, "don't use non-ascii" is not a helpful advice.
The environment is Windows 10 Professional 64-bit. "cp932" is "Shift-JIS" used in Japanese version. I've checked "Grass7Utils.py" and found that the error occurs in the following way:
So, I have to say it again, "Be careful about the path name" or "Don't use non-ascii characters" are not helpful at all in this issue. |
Author Name: Wolfgang Meinolf (Wolfgang Meinolf)
Original Redmine Issue: 22031
Affected QGIS version: 3.6.2
Redmine category:processing/grass
v.clean stops processing with following error statement:
Traceback (most recent call last):
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 427, in processAlgorithm1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", line 393, in executeGrassGrass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
File "C:/OSGEO4
for line in iter(proc.stdout.readline, ''):
File "C:\OSGEO4~1\apps\Python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 179: character maps to
Path to .qgz and .gpkg files contains the word Thüringen(C:\User.........\Work\Thüringen\1905...). Once, the path name is changed to Thueringen C:\User.........\Work\Thueringen\190508 Neue Analysegebiete, no error occurrs.
The text was updated successfully, but these errors were encountered: