[GRASS-dev] Re: [GRASS GIS] #1374: psmap window does not open

GRASS GIS trac at osgeo.org
Sat May 28 13:54:32 EDT 2011


#1374: psmap window does not open
----------------------+-----------------------------------------------------
 Reporter:  timmie    |       Owner:  martinl            
     Type:  defect    |      Status:  assigned           
 Priority:  normal    |   Milestone:  6.4.2              
Component:  wxGUI     |     Version:  svn-releasebranch64
 Keywords:  wx.psmap  |    Platform:  Linux              
      Cpu:  x86-32    |  
----------------------+-----------------------------------------------------

Comment(by timmie):

 Please help me to understand:

 In regular GRASS shell I get:
 GRASS 6.4.2svn (North-Carolina):~ > g.version
 GRASS 6.4.2svn (2011)

 In IPython outside the GRASS shell:

 $$$ python
 Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
 [GCC 4.5.2] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys

 >>> sys.path.append("/usr/lib/grass64/etc/python")
 >>> import grass.script as grass
 >>> grass.version()
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/grass64/etc/python/grass/script/core.py", line 1094, in
 version
     flags = 'rg')
   File "/usr/lib/grass64/etc/python/grass/script/core.py", line 265, in
 parse_command
     res = read_command(*args, **kwargs)
   File "/usr/lib/grass64/etc/python/grass/script/core.py", line 235, in
 read_command
     ps = pipe_command(*args, **kwargs)
   File "/usr/lib/grass64/etc/python/grass/script/core.py", line 212, in
 pipe_command
     return start_command(*args, **kwargs)
   File "/usr/lib/grass64/etc/python/grass/script/core.py", line 174, in
 start_command
     return Popen(args, **popts)
   File "/usr/lib/grass64/etc/python/grass/script/core.py", line 56, in
 __init__
     startupinfo, creationflags)
   File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
     errread, errwrite)
   File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
     raise child_exception
 OSError: [Errno 2] No such file or directory

 Then I tried from inside GRASS shell:

 GRASS 6.4.2svn (North-Carolina):~/src/coding/grass/scripts > python
 Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
 [GCC 4.5.2] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from grass.script import core as grass
 >>> grass.version()
 {}
 >>>


 Something seems to be wrong here.

 Please help.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1374#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list