LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-22-2011, 05:45 PM   #1
ecoslacker
LQ Newbie
 
Registered: Feb 2011
Location: Mexico
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
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!

Last edited by ecoslacker; 08-22-2011 at 05:57 PM.
 
  


Reply

Tags
error, gui, slackware 13.37


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installation problem in grass bharath1234 Linux - Software 15 01-12-2010 04:40 AM
GRASS GIS 6.2.2 BadAlloc Error Causes Crash on Previously Usable Data & Routine joek Linux - Software 0 09-22-2007 06:27 PM
GRASS and C seabiscuit Programming 1 03-22-2006 07:21 PM
Grass and qGIS problem (version 6.0 on suse 9.2) oldforce Linux - Software 0 03-31-2005 02:26 AM
Grass maddness DrD Linux - Software 4 11-17-2004 12:42 AM


All times are GMT -5. The time now is 01:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration