LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Error in GUI startup GRASS 6.4.1 and GRASS-QGIS plugin (http://www.linuxquestions.org/questions/slackware-14/error-in-gui-startup-grass-6-4-1-and-grass-qgis-plugin-898847/)

ecoslacker 08-22-2011 05:45 PM

Error in GUI startup GRASS 6.4.1 and GRASS-QGIS plugin
 
Hi! I'm using Slackware 13.37 in a HP G60 laptop, and it works almost perfect.

My problem is that I installed GRASS 6.4.1 and QGIS 1.6 weeks ago both from SlackBuilds.org, after install GRASS I do:

Code:

# echo /opt/grass/lib >> /etc/ld.so.conf && ldconfig
But when I try to use the grass-qgis plugin it never activates on QGIS. I try this many times uninstalling and reinstalling the QGIS package. In order to activate GRASS plugin in QGIS I just edit the SlackBuild of QGIS doing this:

Code:

WITHGRASS="/opt"
Because when I execute "ls" in /opt, there are two dirs: grass and grass-6.4.1. So I think grass is installed in that dir. I don't know if that is the correct way to activate QGIS with GRASS support, I need help with this.

So when I try to open GRASS to check that it works correctly, this appear in the screen:

Code:

Starting GRASS ...
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkOptionMenu::indicator-size' of type `GtkRequisition' from rc file value "0" of type `glong'
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkOptionMenu::indicator-spacing' of type `GtkBorder' from rc file value "0" of type `glong'
Traceback (most recent call last):
  File "/opt/grass/etc/wxpython/gis_set.py", line 858, in <module>
    GRASSStartUp = StartUp(0)
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/opt/grass/etc/wxpython/gis_set.py", line 829, in OnInit
    StartUp = GRASSStartup()
  File "/opt/grass/etc/wxpython/gis_set.py", line 166, in __init__
    self._set_properties()
  File "/opt/grass/etc/wxpython/gis_set.py", line 213, in _set_properties
    self.OnSetDatabase(None)
  File "/opt/grass/etc/wxpython/gis_set.py", line 690, in OnSetDatabase
    self.UpdateLocations(self.gisdbase)
  File "/opt/grass/etc/wxpython/gis_set.py", line 568, in UpdateLocations
    self.listOfLocations = utils.GetListOfLocations(dbase)
  File "/opt/grass-6.4.1/etc/wxpython/gui_modules/utils.py", line 589, in GetListOfLocations
    for location in glob.glob(os.path.join(dbase, "*")):
  File "/usr/lib/python2.6/glob.py", line 16, in glob
    return list(iglob(pathname))
  File "/usr/lib/python2.6/glob.py", line 43, in iglob
    yield os.path.join(dirname, name)
  File "/usr/lib/python2.6/posixpath.py", line 70, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcd in position 40: ordinal not in range(128)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.

So I need to solve this to try again with using GRASS in QGIS. I don't know if this helps but i change the language of my system to Mexican Spanish doing:

Code:

kdesu kwrite /etc/profile.d/lang.sh

And editing:

# en_US is the Slackware default locale:
export LANG=es_MX.utf8
export LANGUAGE=es_MX.utf8
export LINGUAS=es_MX.utf8
export LC_ALL=es_MX.utf8

Thanks!


All times are GMT -5. The time now is 12:58 PM.