Debian Bug report logs - #676190
grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path

version graph

Package: grass-gui; Maintainer for grass-gui is (unknown); Source for grass-gui is src:grass (PTS, buildd, popcon).

Reported by: Torsti Schulz <torsti.schulz@iki.fi>

Date: Tue, 5 Jun 2012 11:39:05 UTC

Severity: normal

Tags: confirmed, upstream

Found in versions grass/6.4.4-1, grass/7.0.1-2, grass/6.4.2-1, grass/7.0.3~rc2-1~exp1

Fixed in version grass/7.2.0~rc1-1~exp1

Done: Sebastiaan Couwenberg <sebastic@xs4all.nl>

Bug is archived. No further changes may be made.

Forwarded to https://trac.osgeo.org/grass/ticket/1672

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>:
Bug#676190; Package grass-gui. (Tue, 05 Jun 2012 11:39:08 GMT) (full text, mbox, link).


Acknowledgement sent to Torsti Schulz <torsti.schulz@iki.fi>:
New Bug report received and forwarded. Copy sent to Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>. (Tue, 05 Jun 2012 11:39:27 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Torsti Schulz <torsti.schulz@iki.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Tue, 05 Jun 2012 14:35:48 +0300
Package: grass-gui
Version: 6.4.2-1
Severity: normal

Hi,

Using the wxpython GUI Georectify tool is impossible if the path to the grass
data directory (e.g. GRASSDATA) contains non ascii characters (e.g.
'/home/user/Työpöytä/GRASSDATA'). Selecting the source location works, but
the 'Select source mapset:' dropdown menu remains greyed out. The command
console shows the following error message, after selecting the source location:

***
Traceback (most recent call last):
  File
"/usr/lib/grass64/etc/wxpython/gui_modules/gcpmanager.py",
line 377, in OnLocation

tmplist = os.listdir(os.path.join(self.grassdatabase,
self.xylocation))
  File "/usr/lib/python2.7/posixpath.py", line 71, in join

path += '/' + b
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xc3 in position 15: ordinal
not in range(128)
***

Changing the grass data directory path to only contain ascii characters (e.g.
'/home/user/GRASSDATA') makes the Georectify tool usable. This seems to an
issue with how the python code handles path names and unicode characters.

Cheers,
Torsti



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grass-gui depends on:
ii  gnome-terminal [x-terminal-emulator]  3.4.1.1-1
ii  grass-core                            6.4.2-1
ii  lesstif2                              1:0.95.2-1
ii  libc6                                 2.13-33
ii  libfreetype6                          2.4.9-1
ii  libgdal1                              1.9.0-2
ii  libgl1-mesa-glx [libgl1]              8.0.2-2
ii  libglu1-mesa [libglu1]                8.0.2-2
ii  libice6                               2:1.0.8-2
ii  libpng12-0                            1.2.49-1
ii  libsm6                                2:1.2.1-2
ii  libtiff5                              4.0.1-7
ii  libx11-6                              2:1.4.99.901-2
ii  libxext6                              2:1.3.1-2
ii  libxmu6                               2:1.1.1-1
ii  libxt6                                1:1.1.3-1
ii  python                                2.7.2-10
ii  python-opengl                         3.0.1-1
ii  python-wxgtk2.8                       2.8.12.1-11
ii  tcl8.5                                8.5.11-2
ii  tk8.5                                 8.5.11-2
ii  xterm [x-terminal-emulator]           278-1
ii  zlib1g                                1:1.2.7.dfsg-11

Versions of packages grass-gui recommends:
ii  ghostscript     9.05~dfsg-6
ii  python-imaging  1.1.7-4

grass-gui suggests no packages.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>:
Bug#676190; Package grass-gui. (Sat, 09 Jun 2012 04:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Hamish <hamish_b@yahoo.com>:
Extra info received and forwarded to list. Copy sent to Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>. (Sat, 09 Jun 2012 04:54:03 GMT) (full text, mbox, link).


Message #10 received at 676190@bugs.debian.org (full text, mbox, reply):

From: Hamish <hamish_b@yahoo.com>
To: 676190@bugs.debian.org
Subject: Re: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Fri, 8 Jun 2012 21:51:19 -0700 (PDT)
Hi,

filed as upstream grass bug #1672
  https://trac.osgeo.org/grass/ticket/1672

see also a similar class of bugs & their solution:
  https://trac.osgeo.org/grass/search?q=UnicodeEncodeError&noquickjump=1&ticket=on


thanks,
Hamish




Set Bug forwarded-to-address to 'https://trac.osgeo.org/grass/ticket/1672'. Request was from Hamish <hamish_b@yahoo.com> to control@bugs.debian.org. (Sat, 09 Jun 2012 04:57:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>:
Bug#676190; Package grass-gui. (Sun, 08 Nov 2015 13:03:08 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastiaan Couwenberg <sebastic@xs4all.nl>:
Extra info received and forwarded to list. Copy sent to Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>. (Sun, 08 Nov 2015 13:03:08 GMT) (full text, mbox, link).


Message #17 received at 676190@bugs.debian.org (full text, mbox, reply):

From: Sebastiaan Couwenberg <sebastic@xs4all.nl>
To: 676190@bugs.debian.org, Torsti Schulz <torsti.schulz@iki.fi>
Subject: Re: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Sun, 8 Nov 2015 14:00:13 +0100
Control: tags -1 upstream unreproducible moreinfo

Hi Torsti,

We've have GRASS 7 in testing/unstable for some time now, and while the
upstream issue is still open, it seems it has been fixed in GRASS 7.

I can successfully open a GRASS GIS database directory by selecting the
path /home/user/tmp/Työpöytä/grassdata/, selecting the 'spearfish60'
GRASS location, selecting either of the GRASS Mapsets and starting the
GRASS session.

Can you confirm that the issue is fixed in the GRASS 7 packages in
testing/unstable?

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Added tag(s) unreproducible, moreinfo, and upstream. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 676190-submit@bugs.debian.org. (Sun, 08 Nov 2015 13:03:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>:
Bug#676190; Package grass-gui. (Mon, 09 Nov 2015 05:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to Torsti Schulz <torsti.schulz@iki.fi>:
Extra info received and forwarded to list. Copy sent to Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>. (Mon, 09 Nov 2015 05:21:03 GMT) (full text, mbox, link).


Message #24 received at 676190@bugs.debian.org (full text, mbox, reply):

From: Torsti Schulz <torsti.schulz@iki.fi>
To: Sebastiaan Couwenberg <sebastic@xs4all.nl>, 676190@bugs.debian.org
Subject: Re: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Mon, 9 Nov 2015 07:17:20 +0200
Hi Bas,

I still get the same error as in the original bug report for GRASS 
6.4.1. when using the Georectifier.
Also changing mapset access does not work for me. So I can't confirm 
that the issue has been fixed in GRASS 7.0.1.


Thanks for the good work in the GIS team!

Best,
Torsti

On 08.11.2015 15:00, Sebastiaan Couwenberg wrote:
> Control: tags -1 upstream unreproducible moreinfo
>
> Hi Torsti,
>
> We've have GRASS 7 in testing/unstable for some time now, and while the
> upstream issue is still open, it seems it has been fixed in GRASS 7.
>
> I can successfully open a GRASS GIS database directory by selecting the
> path /home/user/tmp/Työpöytä/grassdata/, selecting the 'spearfish60'
> GRASS location, selecting either of the GRASS Mapsets and starting the
> GRASS session.
>
> Can you confirm that the issue is fixed in the GRASS 7 packages in
> testing/unstable?
>
> Kind Regards,
>
> Bas
>




Information forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>:
Bug#676190; Package grass-gui. (Fri, 13 Nov 2015 20:15:07 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastiaan Couwenberg <sebastic@xs4all.nl>:
Extra info received and forwarded to list. Copy sent to Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>. (Fri, 13 Nov 2015 20:15:07 GMT) (full text, mbox, link).


Message #29 received at 676190@bugs.debian.org (full text, mbox, reply):

From: Sebastiaan Couwenberg <sebastic@xs4all.nl>
To: Torsti Schulz <torsti.schulz@iki.fi>, 676190@bugs.debian.org
Subject: Re: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Fri, 13 Nov 2015 21:10:41 +0100
Control: tags -1 - moreinfo unreproducible
Control: tags -1 + confirmed
Control: found -1 grass/6.4.4-1
Control: found -1 grass/7.0.1-2

Hi Torsti,

On 09-11-15 06:17, Torsti Schulz wrote:
> On 08.11.2015 15:00, Sebastiaan Couwenberg wrote:
>> We've have GRASS 7 in testing/unstable for some time now, and while the
>> upstream issue is still open, it seems it has been fixed in GRASS 7.
>>
>> I can successfully open a GRASS GIS database directory by selecting the
>> path /home/user/tmp/Työpöytä/grassdata/, selecting the 'spearfish60'
>> GRASS location, selecting either of the GRASS Mapsets and starting the
>> GRASS session.
>>
>> Can you confirm that the issue is fixed in the GRASS 7 packages in
>> testing/unstable?
> 
> I still get the same error as in the original bug report for GRASS
> 6.4.1. when using the Georectifier.
> Also changing mapset access does not work for me. So I can't confirm
> that the issue has been fixed in GRASS 7.0.1.

My earlier testing was insufficient, I can confirm the issue with grass
6.4.4 on jessie and 7.0.1 on unstable.

On jessie the 'Select source mapset' dropdown is empty, on unstable the
dropdown is populated with empty options. When the same grassdata
directory only has ascii characters in its path, the dropdown is
populated with mapsets as expected.

I've updated the upstream issue noting that is still affects GRASS 7,
see: https://trac.osgeo.org/grass/ticket/1672#comment:3

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Removed tag(s) unreproducible and moreinfo. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 676190-submit@bugs.debian.org. (Fri, 13 Nov 2015 20:15:07 GMT) (full text, mbox, link).


Added tag(s) confirmed. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 676190-submit@bugs.debian.org. (Fri, 13 Nov 2015 20:15:08 GMT) (full text, mbox, link).


Marked as found in versions grass/6.4.4-1. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 676190-submit@bugs.debian.org. (Fri, 13 Nov 2015 20:15:08 GMT) (full text, mbox, link).


Marked as found in versions grass/7.0.1-2. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 676190-submit@bugs.debian.org. (Fri, 13 Nov 2015 20:15:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>:
Bug#676190; Package grass-gui. (Sun, 17 Jan 2016 16:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sebastiaan Couwenberg <sebastic@xs4all.nl>, 676190@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>. (Sun, 17 Jan 2016 16:30:03 GMT) (full text, mbox, link).


Message #42 received at 676190@bugs.debian.org (full text, mbox, reply):

From: Sebastiaan Couwenberg <sebastic@xs4all.nl>
To: Torsti Schulz <torsti.schulz@iki.fi>, 676190@bugs.debian.org
Subject: Re: Bug#676190: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Sun, 17 Jan 2016 17:26:53 +0100
Control: found -1 grass/7.0.3~rc2-1~exp1

As reported in the upstream issue, it should be fixed in trunk, but
those changes haven't found their way into the 7.0 branch as it's still
present in 7.0.3 RC2.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Marked as found in versions grass/7.0.3~rc2-1~exp1. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to 676190-submit@bugs.debian.org. (Sun, 17 Jan 2016 16:30:03 GMT) (full text, mbox, link).


Marked as fixed in versions grass/7.2.0~rc1-1~exp1. Request was from Sebastiaan Couwenberg <sebastic@xs4all.nl> to control@bugs.debian.org. (Sat, 10 Dec 2016 15:30:02 GMT) (full text, mbox, link).


Reply sent to Sebastiaan Couwenberg <sebastic@xs4all.nl>:
You have taken responsibility. (Sat, 10 Dec 2016 15:30:04 GMT) (full text, mbox, link).


Notification sent to Torsti Schulz <torsti.schulz@iki.fi>:
Bug acknowledged by developer. (Sat, 10 Dec 2016 15:30:04 GMT) (full text, mbox, link).


Message #51 received at 676190-done@bugs.debian.org (full text, mbox, reply):

From: Sebastiaan Couwenberg <sebastic@xs4all.nl>
To: 676190-done@bugs.debian.org, Torsti Schulz <torsti.schulz@iki.fi>
Subject: Re: Bug#676190: grass-gui: gcpmanager fails to list source mapsets if non-ascii characters in grass data dir path
Date: Sat, 10 Dec 2016 16:26:37 +0100
fixed 676190 7.2.0~rc1-1~exp1
thanks

Hi Torsti,

On Sun, 17 Jan 2016 17:26:53 +0100 Sebastiaan Couwenberg wrote:
> As reported in the upstream issue, it should be fixed in trunk, but
> those changes haven't found their way into the 7.0 branch as it's still
> present in 7.0.3 RC2.

The changes from trunk have found their way into GRASS 7.2, the issue is
fixed in the release candidate in experimental.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 05 Feb 2017 07:33:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Aug 11 21:21:42 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.