[GRASS-dev] [GRASS GIS] #1758: Disabling python support does not prevent entry into python directories during build

GRASS GIS trac at osgeo.org
Mon Feb 18 01:24:05 PST 2013


#1758: Disabling python support does not prevent entry into python directories
during build
------------------------+---------------------------------------------------
  Reporter:  brook      |       Owner:  grass-dev@…              
      Type:  defect     |      Status:  reopened                 
  Priority:  major      |   Milestone:  6.4.3                    
 Component:  Compiling  |     Version:  6.4.2                    
Resolution:             |    Keywords:  python, wxgui            
  Platform:  All        |         Cpu:  Unspecified              
------------------------+---------------------------------------------------

Comment(by hamish):

 I just tried 6.4.3svn again --without-python and --without-wxwidgets.

 The experience was the same. It still tried to `make` the wxwidgets gui,
 and failed with this error:

 {{{
 ...
 python -m py_compile /usr/local/src/grass/svn/releasebranch_6_4/dist.i686
 -pc-linux-gnu/etc/wxpython/wxplot/profile.py
 python -m py_compile /usr/local/src/grass/svn/releasebranch_6_4/dist.i686
 -pc-linux-gnu/etc/wxpython/gis_set.py
 python -m py_compile /usr/local/src/grass/svn/releasebranch_6_4/dist.i686
 -pc-linux-gnu/etc/wxpython/wxgui.py
 GISRC=/usr/local/src/grass/svn/releasebranch_6_4/dist.i686-pc-linux-
 gnu/demolocation/.grassrc64
 GISBASE=/usr/local/src/grass/svn/releasebranch_6_4/dist.i68
 6-pc-linux-gnu PATH="/usr/local/src/grass/svn/releasebranch_6_4/dist.i686
 -pc-linux-gnu/bin:$PATH"
 PYTHONPATH="/usr/local/src/grass/svn/releasebranch_6_4/di
 st.i686-pc-linux-gnu/etc/python:$PYTHONPATH"
 LD_LIBRARY_PATH="/usr/local/src/grass/svn/releasebranch_6_4/dist.i686-pc-
 linux-gnu/bin:/usr/local/src/grass/sv
 n/releasebranch_6_4/dist.i686-pc-linux-gnu/lib::" LC_ALL=C python
 core/menudata.py > menustrings.py
 Traceback (most recent call last):
   File "core/menudata.py", line 39, in ?
     import wx
 ImportError: No module named wx
 make[2]: *** [menustrings.py] Error 1
 make[2]: Leaving directory
 `/usr/local/src/grass/svn/releasebranch_6_4/gui/wxpython'
 make[1]: Leaving directory
 `/usr/local/src/grass/svn/releasebranch_6_4/gui'
 make[1]: Entering directory
 `/usr/local/src/grass/svn/releasebranch_6_4/imagery'
 ...
 }}}

 but after cd'ing into the dir and trying a second time it built ok.

 note python was present on the system (see lack of errors about that in
 the above log snippet), I'm not sure what would happen if it wasn't
 installed, e.g. with the attempted byte compiling of lib/python/ and
 population of dist.`arch`/etc/python/grass/lib/.
 Probably you'd get a non-fatal error about it listed in error.log.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1758#comment:7>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list