[GRASS-dev] new osgeo4w-python and winGrass643RC3-standalone: error in GUI startup

Helmut Kudrnovsky hellik at web.de
Sat Apr 20 12:30:13 PDT 2013

while building winGrass643RC3-standalone installer, I've seen that osgeo4w
changed his python version:


Python 2.7.4 has been uploaded to the Osgeo4W download mirror and passes
install tests on my machine. Please test on yours.

**Changed:** Dropped `python-wrapper` as a separate package, merging it's
contents into `python-core` (namely the batch files for defining PYTHONHOME
etc., and for generating .bat files in .\bin for the .py files there).

**New:** the o4w python packages now mirror the selections of the regular
setup program:

    Python Core     =   python-core         5.5 mb
    Documentation   =   python-help         5.9 mb
    Tcl/Tk          =   python-tcltk        2.4 mb
    Utility Scripts =   python-tools        0.1 mb
    Test Suite      =   python-testsuite    1.6 mb
                                           15.2 mb

Selecting the `python` package in `osgeo4w-setup` or `apt` will install
everything. The other packages can be added and removed as desired,
`python-core` will always be installed with any selection.

now starting winGrass643RC3 within the osgeo4w-stack without any problem

BUT after builing and installing the winGrass643RC3-standalone installer,
there's an error in GUI startup:

Starting GRASS ...
Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 563, in <module>
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 545, in main
    known_paths = addusersitepackages(known_paths)
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 243, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sysconfig.py", line 472, in get_config_var
    return get_config_vars().get(name)
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sysconfig.py", line 405, in get_config_vars
    import re
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\re.py", line
105, in <module>
    import sre_compile
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sre_compile.py", line 14, in <module>
    import sre_parse
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sre_parse.py", line 17, in <module>
    from sre_constants import *
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
Error in GUI startup. If necessary, please

any idea?

best regards
View this message in context: http://osgeo-org.1560.x6.nabble.com/new-osgeo4w-python-and-winGrass643RC3-standalone-error-in-GUI-startup-tp5048496.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

More information about the grass-dev mailing list