[GRASS-dev] [GRASS GIS] #2015: Missing file association dialog pops up all the time

GRASS GIS trac at osgeo.org
Tue Jun 25 20:03:44 PDT 2013

#2015: Missing file association dialog pops up all the time
 Reporter:  wenzeslaus  |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  normal      |   Milestone:  7.0.0                    
Component:  Python      |     Version:  svn-trunk                
 Keywords:  wingrass    |    Platform:  MSWindows 7              
      Cpu:  All         |  

Comment(by hamish):

 A couple quoting fixes around GRASS_PYTHON in r56927-9, but that's all
 start-up, nothing to do with file associations AFAICT.

 Tested most recent nightly build of grass7 (r56911) with those fixes
 applied by hand on a fresh install of XP (so no parallel installs of other
 python versions), seems to be working for me.

 Displaying a raster map, starting the carto composer tool worked fine for
 me, although an error I did see was the mapswipe tool complaining when I
 clicked the help button about `'NoneType' object has no attribute 'Help'`.

 If I do `echo %PATHEXT%` at a regular C:\> prompt outside of grass7 I have
 no .PY on the list, from a grass7 command line session I do. Do you have
 the same?

 also try:

  C:\> ftype Python.File
  C:\> ftype | grep -i python
  C:\> assoc | grep -i py

 from within the GRASS session and look for anomalies. (maybe compare with
 outside a grass session, but grep might not work without extrabin in the

 see also
  - http://stackoverflow.com/questions/9037346/making-python-scripts-run-
  - http://stackoverflow.com/questions/4727480/how-do-i-make-my-perl-

 hmm, Raster -> r.mask
 Traceback (most recent call last):
   File "C:\Program Files\GRASS GIS
 7.0.svn\etc\gui\wxpython\lmgr\frame.py", line 737, in

 cmd = self.GetMenuCmd(event)
   File "C:\Program Files\GRASS GIS
 7.0.svn\etc\gui\wxpython\lmgr\frame.py", line 722, in

 input = GUI().GetCommandInputMapParamKey(cmdlist[0])
   File "C:\Program Files\GRASS GIS
 7.0.svn\etc\gui\wxpython\gui_core\forms.py", line 2310, in

 tree =
   File "C:\Program Files\GRASS GIS
 7.0.svn\etc\python\grass\script\task.py", line 461, in

 "\n\nDetails: %(det)s") % { 'cmd' : cmd, 'det' :
 decode(cmderr) }
 Unable to fetch interface description for command 'r.mask'.
 Details: C:\Program Files\GRASS GIS
 7.0.svn\extrabin\python.exe: can't open file 'r.mask':
 [Errno 2] No such file or directory

 but now restarting GRASS and restarting it works fine, so I'm not sure,
 maybe that r.mask error was just a temporary glitch(?).


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

More information about the grass-dev mailing list