[GRASS-dev] [GRASS GIS] #2973: i.pansharpen - python UnicodeEncodeError

#2973: i.pansharpen - python UnicodeEncodeError
---------------------+-------------------------
Reporter: alf | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.4
Component: Imagery | Version: 7.0.3
Keywords: | CPU: Unspecified
Platform: Linux |
---------------------+-------------------------
Hi,

unicode encode error arose from i.pansharpen. It exits with error both
from gui and cli.

...
Assigning grey equalized color tables to output images...
Traceback (most recent call last):
   File "/usr/lib/grass70/scripts/i.pansharpen", line 452, in <module>
     main()
   File "/usr/lib/grass70/scripts/i.pansharpen", line 319, in main
     flags="e", col='grey')
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 394, in
run_command
     return handle_errors(returncode, returncode, args, kwargs)
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 312, in
handle_errors
     returncode=returncode)
   File "/usr/lib/grass70/etc/python/grass/exceptions/__init__.py", line
68, in __init__
     msg = _("Module run %s %s ended with error") % (module, code)
   File "/usr/lib/python2.7/gettext.py", line 369, in lgettext
     return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 30: ordinal not in range(128)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 30: ordinal not in range(128)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2973&gt;
GRASS GIS <https://grass.osgeo.org>

#2973: i.pansharpen - python UnicodeEncodeError
--------------------------+--------------------------
  Reporter: alf | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.4
Component: Imagery | Version: 7.0.3
Resolution: | Keywords: i.pansharpen
       CPU: Unspecified | Platform: Linux
--------------------------+--------------------------
Changes (by martinl):

* keywords: => i.pansharpen

Old description:

Hi,

unicode encode error arose from i.pansharpen. It exits with error both
from gui and cli.

...
Assigning grey equalized color tables to output images...
Traceback (most recent call last):
  File "/usr/lib/grass70/scripts/i.pansharpen", line 452, in <module>
    main()
  File "/usr/lib/grass70/scripts/i.pansharpen", line 319, in main
    flags="e", col='grey')
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 394, in
run_command
    return handle_errors(returncode, returncode, args, kwargs)
  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 312, in
handle_errors
    returncode=returncode)
  File "/usr/lib/grass70/etc/python/grass/exceptions/__init__.py", line
68, in __init__
    msg = _("Module run %s %s ended with error") % (module, code)
  File "/usr/lib/python2.7/gettext.py", line 369, in lgettext
    return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 30: ordinal not in range(128)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 30: ordinal not in range(128)

New description:

Hi,

unicode encode error arose from i.pansharpen. It exits with error both
from gui and cli.

{{{
...
Assigning grey equalized color tables to output images...
Traceback (most recent call last):
   File "/usr/lib/grass70/scripts/i.pansharpen", line 452, in <module>
     main()
   File "/usr/lib/grass70/scripts/i.pansharpen", line 319, in main
     flags="e", col='grey')
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 394, in
run_command
     return handle_errors(returncode, returncode, args, kwargs)
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 312, in
handle_errors
     returncode=returncode)
   File "/usr/lib/grass70/etc/python/grass/exceptions/__init__.py", line
68, in __init__
     msg = _("Module run %s %s ended with error") % (module, code)
   File "/usr/lib/python2.7/gettext.py", line 369, in lgettext
     return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 30: ordinal not in range(128)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in
position 30: ordinal not in range(128)
}}}

--

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2973#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2973: i.pansharpen - python UnicodeEncodeError
--------------------------+--------------------------
  Reporter: alf | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.4
Component: Imagery | Version: 7.0.3
Resolution: | Keywords: i.pansharpen
       CPU: Unspecified | Platform: Linux
--------------------------+--------------------------

Comment (by cmbarton):

Could you specify what you were doing (the exact command with arguments
and flags) when it gave this error? Thanks

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2973#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2973: i.pansharpen - python UnicodeEncodeError
--------------------------+--------------------------
  Reporter: alf | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Imagery | Version: 7.0.3
Resolution: | Keywords: i.pansharpen
       CPU: Unspecified | Platform: Linux
--------------------------+--------------------------

Comment (by mlennert):

Still an issue ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2973#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

#2973: i.pansharpen - python UnicodeEncodeError
--------------------------+--------------------------
  Reporter: alf | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.7
Component: Imagery | Version: 7.0.3
Resolution: wontfix | Keywords: i.pansharpen
       CPU: Unspecified | Platform: Linux
--------------------------+--------------------------
Changes (by martinl):

* status: new => closed
* resolution: => wontfix

Comment:

No activity.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2973#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>