#1026: Problems starting grass7 from tcsh
---------------------+------------------------------------------------------
Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Keywords: tcsh | Platform: Linux
Cpu: x86-32 |
---------------------+------------------------------------------------------
I am unable to start grass from tcsh.
The following error occurs:
{{{
Traceback (most recent call last):
File "../../dist.i686-pc-linux-gnu/grass70.tmp", line 941, in <module>
csh_startup()
File "../../dist.i686-pc-linux-gnu/grass70.tmp", line 670, in
csh_startup
mail_re = re.compile(r"^ *set *mail *= *")
NameError: global name 're' is not defined
}}}
This may be related to a missing regular expression module import?
{{{
import re
}}}
will fix the bug on my system.
Getting grass7 started in a tcsh using the fix above and trying to start
the gui result in an error:
{{{
> r.info
No protocol specified
Unable to access the X Display, is $DISPLAY set properly?
#1026: Problems starting grass7 from tcsh
----------------------+-----------------------------------------------------
Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords: tcsh
Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Comment (by glynn):
Replying to [ticket:1026 huhabla]:
> I am unable to start grass from tcsh.
> The following error occurs:
>
{{{
mail_re = re.compile(r"^ *set *mail *= *")
NameError: global name 're' is not defined
}}}
>
> This may be related to a missing regular expression module import?
Yep. This should be fixed by r41652.
> Getting grass7 started in a tcsh using the fix above and trying to start
the gui result in an error:
{{{
> r.info
No protocol specified
Unable to access the X Display, is $DISPLAY set properly?
> echo $DISPLAY
:0
}}}
This is a separate issue. However, you might try:
{{{
export DISPLAY=unix:0
}}}
If that fixes it, it would appear to be an issue with your version of
wxWidgets (possibly using xcb directly rather than Xlib?).
#1026: Problems starting grass7 from tcsh
----------------------+-----------------------------------------------------
Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords: tcsh
Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Comment (by huhabla):
Setting the display variable unfortunately does not help:
{{{
grass_dev/grass_trunk> r.buffer
No protocol specified
Unable to access the X Display, is $DISPLAY set properly?
grass_dev/grass_trunk> echo $DISPLAY
:0
grass_dev/grass_trunk> setenv DISPLAY unix:0
grass_dev/grass_trunk> echo $DISPLAY
unix:0
grass_dev/grass_trunk> r.buffer
No protocol specified
Unable to access the X Display, is $DISPLAY set properly?
grass_dev/grass_trunk> setenv DISPLAY `hostname`:0
grass_dev/grass_trunk> r.buffer
Unable to access the X Display, is $DISPLAY set properly?
grass_dev/grass_trunk>
grass_dev/grass_trunk> wx-config --version-full
2.8.10.1
grass_dev/grass_trunk> cat /etc/SuSE-release
openSUSE 11.2 (i586)
VERSION = 11.2
grass_dev/grass_trunk>
}}}
As default the variable DISPLAY set to :0 in my shell, which works with
any other programs outside of grass.