[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
 and
  C:\> ftype | grep -i python
 and
  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
 %PATH%)


 see also
  - http://stackoverflow.com/questions/9037346/making-python-scripts-run-
 on-windows-without-specifying-py-extension
  - http://stackoverflow.com/questions/4727480/how-do-i-make-my-perl-
 scripts-act-like-normal-programs-on-windows


 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
 OnMenuCmd

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

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

 tree =
 etree.fromstring(gtask.get_interface_description(cmd))
   File "C:\Program Files\GRASS GIS
 7.0.svn\etc\python\grass\script\task.py", line 461, in
 get_interface_description

 "\n\nDetails: %(det)s") % { 'cmd' : cmd, 'det' :
 decode(cmderr) }
 grass.script.core
 .
 ScriptError
 :
 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(?).


 Hamish

-- 
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