Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2020-03-25 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  closed
  Priority:  normal   |  Milestone:  7.8.3
 Component:  wxGUI|Version:  svn-trunk
Resolution:  fixed|   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-
Changes (by marisn):

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


Comment:

 You are right — this issue has been fixed at some point. Tested with
 current master.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2020-03-22 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.8.3
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by neteler):

 Does this still occur in 7.8.git?

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-17 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 I just tried the following using Python 2 both at trunk and at r74305.
 There were no tracebacks in either case.

 {{{
 $ LC_ALL=fr_FR.UTF-8 ./run_grass.sh ~/gdata2/nc_spm_full_v2alpha/PERMANENT
 --text
   __  ___   _____
  / / __ \/   | / ___/ ___/   / /  _/ ___/
 / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
/ /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
\/_/ |_/_/  |_///   \/___///

 Bienvenue dans le SIG GRASS 7.7.svn (exported)
 Page d'accueil du SIG GRASS :https://grass.osgeo.org
 Cette version fonctionne avec :  Z Shell (/usr/bin/zsh)
 L'aide est disponible par la commande :  g.manual -i
 Voir les termes de la licence avec : g.version -c
 Voir les termes de la licence avec : g.version -x
 Démarrer l'interface graphique avec :   g.gui wxpython
 Lors prêt pour la fermeture entrer :exit

 $ d.mon -l
 No monitors running

 $ d.mon start=wx0
 12:22:59: Warning: Mismatch between the program and library build versions
 detected.
 The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx
 containers,compatible with 2.8),
 and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1011,wx
 containers,compatible with 2.8).
 /usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py:16629:
 UserWarning: wxPython/wxWidgets release number mismatch
   warnings.warn("wxPython/wxWidgets release number mismatch")

 $ d.rast basin
  100%
 }}}

 Since the original traceback has been resolved, I would suggest opening a
 new ticket.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-16 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by marisn):

 Replying to [comment:11 pmav99]:
 > Dear Maris
 >
 > Could you please try the following patch:

 Yes, this patch solves most of problems. At least I can start GUI and do
 some simple things.

 I still see a new error when I try to run some raster modules with GUI
 (d.rast; d.rgb; r.lake):
 {{{
 'ascii' codec can't decode byte 0xc4 in position 3: ordinal not in
 range(128)
 }}}
 with following in the console:
 {{{
 Traceback (most recent call last):
   File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/gui_core/forms.py", line 2499, in
 OnUpdateDialog

 self.parent.updateValuesHook()
   File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/gui_core/forms.py", line 770, in
 updateValuesHook

 ignoreErrors=True)]))
 TypeError
 :
 'NoneType' object is not iterable
 }}}
 Still it is hard to say if it is related or a different set of problems.
 For sure before the r74307 they were absent.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-16 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 Dear Maris

 Could you please try the following patch:
 {{{
 index 1183e93b..0bd515b2 100644
 --- lib/python/__init__.py
 +++ lib/python/__init__.py
 @@ -1,6 +1,8 @@
  import gettext
  import os

 +import six
 +
  # Setup i18N
  #
  # Calling `gettext.install()` injects `_()` in the builtins namespace and
 @@ -17,9 +19,14 @@ import os
  # - https://www.wefearchange.org/2012/06/the-right-way-to-
 internationalize-your.html
  #
  _LOCALE_DIR = os.path.join(os.getenv("GISBASE"), 'locale')
 -gettext.install('grasslibs', _LOCALE_DIR)
 -gettext.install('grassmods', _LOCALE_DIR)
 -gettext.install('grasswxpy', _LOCALE_DIR)
 +if six.PY2:
 +gettext.install('grasslibs', _LOCALE_DIR, unicode=True)
 +gettext.install('grassmods', _LOCALE_DIR, unicode=True)
 +gettext.install('grasswxpy', _LOCALE_DIR, unicode=True)
 +else:
 +gettext.install('grasslibs', _LOCALE_DIR)
 +gettext.install('grassmods', _LOCALE_DIR)
 +gettext.install('grasswxpy', _LOCALE_DIR)


  __all__ = ["script", "temporal"]
 }}}

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-16 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by marisn):

 Replying to [comment:8 pmav99]:
 > and I still can't reproduce the error. The GUI opens without any
 tracebacks.
 Please try to run GRASS in a following way:LC_ALL=lv_LV.UTF-8
 LANG=lv_LV.UTF-8 LANGUAGE=lv_LV.UTF-8 grass77

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-16 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 Replying to [comment:6 annakrat]:
 > Yes, we need to support both Python 2 and 3, and wxPython 3 and 4, at
 least for some time.

 In that case, CI should build GRASS for all supported combinations.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-16 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 Just tried this with:

 - OS: Archlinux
 - Linux: 5.0.13
 - Python: 2.7.16
 - wxPython: 3.0.2.0.1
 - wxgtk**3**: 3.0.4-2

 and I still can't reproduce the error. The GUI opens without any
 tracebacks.

 I do get the same warning as @marisn:
 {{{
 Launching  GUI in the background, please wait...
 10:37:23: Warning: Mismatch between the program and library build versions
 detected.
 The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx
 containers,compatible with 2.8),
 and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1011,wx
 containers,compatible with 2.8).
 /usr/lib/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py:16629:
 UserWarning: wxPython/wxWidgets release number mismatch
   warnings.warn("wxPython/wxWidgets release number mismatch")
 }}}
 but this is related to the version mismatch between the installed versions
 of wxgtk3 and wxpython, which should not be relevant to the issue at hand.

 This might be related to GTK2 vs GKT3 after all. Those of you who can
 reproduce this, can you please post wxpython and GTK versions?

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-16 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 Replying to [comment:6 annakrat]:
 > Regarding this ticket, I believe it's Python 2 vs 3 problem, not wx 3 vs
 4.

 I could not reproduce this either on Python2 or Python3. That's why I
 suggested that it might be related to WX. I tried again on current trunk
 and I still can't reproduce it. I will try to install wx3 on my virtualenv
 and report back.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-15 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by annakrat):

 Replying to [comment:5 marisn]:
 > Replying to [comment:3 pmav99]:
 > > Q: Is it necessary to support multiple wxPython versions? Is there any
 problem with picking either v3 or v4 and moving forward?
 > There is no v4 in Gentoo and also Ubuntu LTS (only one year old) sits on
 v3. Due to required changes in various other packages using wxPython, v4
 widespread adoption will take some time.


 Yes, we need to support both Python 2 and 3, and wxPython 3 and 4, at
 least for some time.

 Regarding this ticket, I believe it's Python 2 vs 3 problem, not wx 3 vs
 4.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-15 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by marisn):

 Replying to [comment:3 pmav99]:
 > Q: Is it necessary to support multiple wxPython versions? Is there any
 problem with picking either v3 or v4 and moving forward?
 There is no v4 in Gentoo and also Ubuntu LTS (only one year old) sits on
 v3. Due to required changes in various other packages using wxPython, v4
 widespread adoption will take some time.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-10 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by mmetz):

 Replying to [comment:3 pmav99]:
 > Q: Is it necessary to support multiple wxPython versions? Is there any
 problem with picking either v3 or v4 and moving forward?

 On RHEL7, there is no wxPython4 available AFAICT, and RHEL7 will be an
 important production system until about 2024.

 IMHO, GRASS 7.x must run on RHEL7 and other currently supported production
 systems. We can break this with GRASS 8.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-10 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 Q: Is it necessary to support multiple wxPython versions? Is there any
 problem with picking either v3 or v4 and moving forward?

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-05 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by neteler):

 I think we do not want to revert r74307 but rather bisect the problem with
 wxPython 3. Maybe in a docker environment?

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3838: r74307 breaks GUI: UnicodeDecodeError

2019-05-02 Thread GRASS GIS
#3838: r74307 breaks GUI: UnicodeDecodeError
--+-
  Reporter:  marisn   |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:
 Component:  wxGUI|Version:  svn-trunk
Resolution:   |   Keywords:
   CPU:  Unspecified  |   Platform:  Linux
--+-

Comment (by pmav99):

 I can't reproduce this, but I am using wxPython 4:
 https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04/

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev